Skip to content

Conversation

@joshuaekingsbury
Copy link

@joshuaekingsbury joshuaekingsbury commented May 1, 2025

…LATEST_ACX version in init.py to allow download_acx2_emissivity_files() to be called; removed 'import curl'.

import __init__ gave error ModuleNotFoundError: No module named 'curl'. While pycurl is listed as a requirement for pyatomdb, it is not listed for ACX2. Installing pycurl did not resolve, nor curl from condaforge, and it was unclear if another python curl package was intended.

ACX2 emissivity files were not being installed by __init__.py with setups on two machines including Miniconda3 for both MacOS Intel x86 and macOS Apple Silicon ARM, and having HEASoft setup with PyXspec tested successfully.

Retrieved and placed ACX2 emissivity files manually with success. Thought I would propose this change though based on inclusion of requests package in docs/requirements.txt

After switching to Requests package, calling pip install -e . inside of the acx2 directory (containing setup.py) successfully installed acx2, and once in the Python interpreter, import acx2_xspec now lead to ACX2 emissivity files being installed successfully.

Edit; formatting, mentioning pycurl

…LATEST_ACX version in __init__.py to allow download_acx2_emissivity_files() to be called; removed 'import curl'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant