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

preparing for Numpy release 2.0 and python 3.12 dropping distutils #1531

Open
shimwell opened this issue Apr 25, 2024 · 0 comments
Open

preparing for Numpy release 2.0 and python 3.12 dropping distutils #1531

shimwell opened this issue Apr 25, 2024 · 0 comments
Assignees

Comments

@shimwell
Copy link
Contributor

Describe the Bug

while looking through the CI logs I spotted some deprecated warnings that we may want to fix before the numpy 2.0 and before python 3.12 drops support for distutils release.

The numpy 2.0 release has a few changes
https://numpy.org/devdocs/release/2.0.0-notes.html

Here is the only three warnings I spotted in the CI

  4.824 tests/test_activation_responses.py::test_response_hdf5_to_mesh
  4.824   /root/.local/lib/python3.10/site-packages/pyne/alara.py:1114: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  4.824     return np.dtype(

  #21 4.824 ../../../.local/lib/python3.10/site-packages/pyne/utils.py:6
  #21 4.824   /root/.local/lib/python3.10/site-packages/pyne/utils.py:6: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  #21 4.824     from distutils.dir_util import remove_tree
  #21 4.824 
  #21 4.824 tests/test_activation_responses.py::test_response_hdf5_to_mesh
  #21 4.824   /root/.local/lib/python3.10/site-packages/pyne/alara.py:1114: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  #21 4.824     return np.dtype(

To Reproduce

link to ci

Expected Behavior

no warnings should be raised

Screenshots or Code Snippets

If applicable, add screenshots or snippets of code and error messages to help explain your problem.
Note, please do not include screenshots or snippets of code that is export controlled.

Please complete the following information regarding your system:

  • PyNE Version: latest develop branchversion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants