Closed GernotMaier closed 1 month ago
I've changed the title as unit tests fail with the newest numpy installation (2.02):
FAILED tests/unit_tests/simtel/test_simulator_light_emission.py::test_plot_simtel_ctapipe - ImportError: cannot import name 'VisibleDeprecationWarning' from 'numpy' (/Users/maierg/micromamba/envs/simtools-dev/lib/python3.11/site-packages/numpy/__init...
ERROR tests/unit_tests/corsika/test_corsika_histograms.py
ERROR tests/unit_tests/io_operations/test_hdf5_handler.py
ERROR tests/unit_tests/simtel/test_simtel_io_histograms.py
ERROR tests/unit_tests/corsika/test_corsika_histograms_visualize.py::test_kernel_plot_2d_photons - ImportError: cannot import name 'VisibleDeprecationWarning' from 'numpy' (/Users/maierg/micromamba/envs/simtools-dev/lib/python3.11/site-packages/numpy/__init...
ERROR tests/unit_tests/corsika/test_corsika_histograms_visualize.py::test_plot_2ds - ImportError: cannot import name 'VisibleDeprecationWarning' from 'numpy' (/Users/maierg/micromamba/envs/simtools-dev/lib/python3.11/site-packages/numpy/__init...
ERROR tests/unit_tests/corsika/test_corsika_histograms_visualize.py::test_kernel_plot_1d_photons - ImportError: cannot import name 'VisibleDeprecationWarning' from 'numpy' (/Users/maierg/micromamba/envs/simtools-dev/lib/python3.11/site-packages/numpy/__init...
ERROR tests/unit_tests/corsika/test_corsika_histograms_visualize.py::test_plot_1ds - ImportError: cannot import name 'VisibleDeprecationWarning' from 'numpy' (/Users/maierg/micromamba/envs/simtools-dev/lib/python3.11/site-packages/numpy/__init...
ERROR tests/unit_tests/corsika/test_corsika_histograms_visualize.py::test_plot_event_headers - ImportError: cannot import name 'VisibleDeprecationWarning' from 'numpy' (/Users/maierg/micromamba/envs/simtools-dev/lib/python3.11/site-packages/numpy/__init...
ERROR tests/unit_tests/corsika/test_corsika_histograms_visualize.py::test_save_figs_to_pdf - ImportError: cannot import name 'VisibleDeprecationWarning' from 'numpy' (/Users/maierg/micromamba/envs/simtools-dev/lib/python3.11/site-packages/numpy/__init...
Related ctapipe issue: https://github.com/cta-observatory/ctapipe/issues/2621
Note that I made a mistake and warnings and errors are not connected with each other. Sorry for the mixup in one issue.
Note that the import errors has been solved. This was an issue of not getting the right package version when updating a conda environemnt.
See e.g. output at the integration test here: