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

numpy distutils depricated #144

Open
ElonOlsson opened this issue Aug 5, 2024 · 0 comments
Open

numpy distutils depricated #144

ElonOlsson opened this issue Aug 5, 2024 · 0 comments

Comments

@ElonOlsson
Copy link

numpy.distutils deprecated in NumPy 1.23 and removed in Python 3.12

I'm setting up Kamodo for the first time and testing to run
Kamodo/Validation/Notebooks/ModelReaderTesting_SWMFGM.ipynb
per Darrens recommendation.
In cell 2 I got error:

ModuleNotFoundError                       Traceback (most recent call last)
Cell In[6], [line 2](vscode-notebook-cell:?execution_count=6&line=2)
      [1](vscode-notebook-cell:?execution_count=6&line=1) # confirm MW functions work appropriately with model varnames dictionary
----> [2](vscode-notebook-cell:?execution_count=6&line=2) import kamodo_ccmc.flythrough.model_wrapper as MW
"ModuleNotFoundError: No module named 'numpy.distutils'"

I'm not sure where in kamodo_ccmc.flythrough.model_wrapper that numpy.distutils is used but if it is used more in Kamodo it might be a bigger issue for Python version >= 3.12 and numpy version >= 1.23

Here are migration advice from their webpage
https://numpy.org/doc/stable/reference/distutils_status_migration.html#distutils-status-migration

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