Chemformer icon indicating copy to clipboard operation
Chemformer copied to clipboard

install error with poetry

Open htalibart opened this issue 11 months ago • 2 comments

Hello,

As indicated in the README, I did:

conda env create -f env-dev.yml
conda activate chemformer
poetry install

but got the following error:

 RuntimeError                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                        
  The Poetry configuration is invalid:                                                                                                                                                                                                                  
    - Additional properties are not allowed ('group' was unexpected) 

I'm unfamiliar with poetry, could you help me solve this? The machine I want to install Chemformer on is on Ubuntu 22.04.2.

Thank you in advance!

htalibart avatar Jan 28 '25 08:01 htalibart

Hello, This might be helpful for your issue: https://stackoverflow.com/questions/73876790/poetry-configuration-is-invalid-additional-properties-are-not-allowed-group

anniewesterlund avatar Jan 29 '25 07:01 anniewesterlund

Hello,

Thank you for your answer, unfortunately that did not help because I'm using a conda environment and I don't have poetry installed locally. However I was able to fix it.

I noticed that the first line of poetry.lock says:

This file is automatically @generated by Poetry 1.5.1

while the conda environment file provided just says poetry<2.0

Before, I had tried changing it to poetry=1.5 and conda could not solve the environment, so I had tried changing the Python version but then poetry would complain.

What finally worked was installing poetry with pip instead of conda:

name: chemformer
channels:
  - conda-forge
  - defaults
dependencies:
  - python=3.7.11
  - pip
  - pip:
    - poetry==1.5

Could you fix the environment file to make sure it works for other users?

Thank you!

htalibart avatar Jan 29 '25 08:01 htalibart