Skip to content

numpy distutils depricated #144

Description

@ElonOlsson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions