Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kamodo import fails with Python 3.12 #9

Open
sapols opened this issue Jun 26, 2024 · 0 comments
Open

Kamodo import fails with Python 3.12 #9

sapols opened this issue Jun 26, 2024 · 0 comments

Comments

@sapols
Copy link
Contributor

sapols commented Jun 26, 2024

It succeeds just fine for Python 3.9–3.11, but with 3.12 we get this error:

Run python -c "import hapiclient"
  python -c "import hapiclient"
  python -c "import kamodo"
  python -c "import plasmapy"
  python -c "import pysat"
  python -c "import pyspedas"
  python -c "import spacepy"
  python -c "import sunpy"
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.12.4/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.4/x64/lib
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/kamodo/__init__.py", line 7, in <module>
    from kamodo.kamodo import *
  File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/kamodo/kamodo.py", line 45, in <module>
    from plotting import get_ranges
  File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/kamodo/plotting.py", line 13, in <module>
    from util import arg_to_latex, beautify_latex, cast_0_dim, get_defaults
  File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/kamodo/util.py", line 21, in <module>
    from numpy.distutils.exec_command import exec_command
ModuleNotFoundError: No module named 'numpy.distutils'
Error: Process completed with exit code 1.

The culprit is ModuleNotFoundError: No module named 'numpy.distutils'.

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

No branches or pull requests

1 participant