Closed chrisjonesBSU closed 1 year ago
I tried this on my local and confirm the behavior shown above. I will into this and see what cause the difference.
Updates: I think the issue is with how conda
and mamba
solve package constraint.
conda install pydantic
and mamba install pydantic
, both result in the latest version of pydantic
(1.9.1
) which is the expected behavior. conda install "pydantic<1.9.0"
and mamba install "pydantic<1.9.0"
, the first call returned pydantic=0.18.2
and the latter returned version v1.8.2
(correct) It's strange that the 3 numbers in the versions are the same; almost like it's a parsing or formatting error or something (I don't really know how conda does all this under the hood).
Maybe one solution is to pin the exact version of 1.8.2
in the gmso requirements rather than using <1.9.0
conda install pydantic=1.8.2
seems to work for me.
Bug summary
I'm not sure if this ultimately stems from the foyer or gmso conda packages.
Installing foyer from conda-forge has different behavior depending if you use
conda
ormamba
It looks like you get different versions of
pydantic
depending on which method you use.When installing with
conda
and trying to import foyer in python I get the following error:Installing with conda:
I get these versions of foyer, gmso and pydantic:
Installing with mamba:
I get these versions of foyer, gmso and pydantic:
Software versions mamba 0.24.0 conda 4.13.0 OS: Linux
I'm curious if anyone else can reproduce this. It's happened or myself and 2 other people in our lab.