-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Milestone
Description
Installing diffpy.pdffit2 via conda results in a package that cannot be loaded. I used this command to create a separate Python interpreter with PDFfit2:
conda create -n diffpy.pdffit2_env diffpy.pdffit2 -c conda-forge
This installs Py3.12, gsl, pycifrw, diffpy.structure and many more standard packages (such as numpy).
The package fails to be imported, with the following error:
(base) toby@BHT24 /tmp % conda activate diffpy.pdffit2_env
(diffpy.pdffit2_env) toby@BHT24 /tmp % python
Python 3.12.5 | packaged by conda-forge | (main, Aug 8 2024, 18:32:50) [Clang 16.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import diffpy.pdffit2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/tmp/G2PY11/envs/diffpy.pdffit2_env/lib/python3.12/site-packages/diffpy/pdffit2/__init__.py", line 25, in <module>
from diffpy.pdffit2.pdffit import PdfFit
File "/tmp/G2PY11/envs/diffpy.pdffit2_env/lib/python3.12/site-packages/diffpy/pdffit2/pdffit.py", line 29, in <module>
from diffpy.pdffit2 import pdffit2
ImportError: cannot import name 'pdffit2' from partially initialized module 'diffpy.pdffit2' (most likely due to a circular import) (/tmp/G2PY11/envs/diffpy.pdffit2_env/lib/python3.12/site-packages/diffpy/pdffit2/__init__.py)
>>>
The same error occurs (with different file paths) if I install diffpy.pdffit2 into the base Python using command
conda install diffpy.pdffit2 -c conda-forge
Metadata
Metadata
Assignees
Labels
No labels