Trouble using km3pipe. NumPy related problem ?
An error appears when trying to test in a terminal or to import whithin a python session, apparently related to the version of NumPy. I have the km3net_soft_env/2.5 module loaded. After installing the package locally, I just test it:
☁ ~ pip install km3pipe
Defaulting to user installation because normal site-packages is not writeable
Collecting km3pipe
Using cached km3pipe-9.13.12-py2.py3-none-any.whl.metadata (6.7 kB)
Requirement already satisfied: awkward>=1.4 in ./.local/lib/python3.9/site-packages (from km3pipe) (1.10.5)
Requirement already satisfied: docopt in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from km3pipe) (0.6.2)
Requirement already satisfied: h5py in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from km3pipe) (3.11.0)
Requirement already satisfied: km3db>=0.6.0 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from km3pipe) (0.14.1)
Requirement already satisfied: km3io>=0.28.0 in ./.local/lib/python3.9/site-packages (from km3pipe) (1.1.0)
Requirement already satisfied: matplotlib>=3.0.0 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from km3pipe) (3.9.2)
Requirement already satisfied: numba>=0.49.0 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from km3pipe) (0.60.0)
Requirement already satisfied: numpy>=1.17.0 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from km3pipe) (2.0.2)
Requirement already satisfied: particle>=0.8.0 in ./.local/lib/python3.9/site-packages (from km3pipe) (0.25.2)
Requirement already satisfied: passlib in ./.local/lib/python3.9/site-packages (from km3pipe) (1.7.4)
Requirement already satisfied: requests in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from km3pipe) (2.32.3)
Requirement already satisfied: setuptools>=40.6.2 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from km3pipe) (74.1.2)
Requirement already satisfied: setuptools-scm in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from km3pipe) (8.1.0)
Requirement already satisfied: tables>=3.4.2 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from km3pipe) (3.9.2)
Requirement already satisfied: thepipe>=1.3.7 in ./.local/lib/python3.9/site-packages (from km3pipe) (1.3.8)
Requirement already satisfied: toml in ./.local/lib/python3.9/site-packages (from km3pipe) (0.10.2)
Requirement already satisfied: tqdm in ./.local/lib/python3.9/site-packages (from km3pipe) (4.67.1)
Requirement already satisfied: packaging in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from awkward>=1.4->km3pipe) (24.1)
Requirement already satisfied: pytz in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from km3db>=0.6.0->km3pipe) (2024.2)
Requirement already satisfied: awkward0>=0.15.5 in ./.local/lib/python3.9/site-packages (from km3io>=0.28.0->km3pipe) (0.15.5)
Requirement already satisfied: uproot3>=3.11.1 in ./.local/lib/python3.9/site-packages (from km3io>=0.28.0->km3pipe) (3.14.4)
Requirement already satisfied: uproot>=4.2.2 in ./.local/lib/python3.9/site-packages (from km3io>=0.28.0->km3pipe) (4.3.7)
Requirement already satisfied: contourpy>=1.0.1 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from matplotlib>=3.0.0->km3pipe) (1.3.0)
Requirement already satisfied: cycler>=0.10 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from matplotlib>=3.0.0->km3pipe) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from matplotlib>=3.0.0->km3pipe) (4.53.1)
Requirement already satisfied: kiwisolver>=1.3.1 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from matplotlib>=3.0.0->km3pipe) (1.4.7)
Requirement already satisfied: pillow>=8 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from matplotlib>=3.0.0->km3pipe) (10.4.0)
Requirement already satisfied: pyparsing>=2.3.1 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from matplotlib>=3.0.0->km3pipe) (3.1.4)
Requirement already satisfied: python-dateutil>=2.7 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from matplotlib>=3.0.0->km3pipe) (2.9.0.post0)
Requirement already satisfied: importlib-resources>=3.2.0 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from matplotlib>=3.0.0->km3pipe) (6.4.5)
Requirement already satisfied: llvmlite<0.44,>=0.43.0dev0 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from numba>=0.49.0->km3pipe) (0.43.0)
Requirement already satisfied: attrs>=19.2 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from particle>=0.8.0->km3pipe) (24.2.0)
Requirement already satisfied: hepunits>=2.0.0 in ./.local/lib/python3.9/site-packages (from particle>=0.8.0->km3pipe) (2.3.5)
Requirement already satisfied: typing-extensions>=4.5 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from particle>=0.8.0->km3pipe) (4.12.2)
Requirement already satisfied: numexpr>=2.6.2 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from tables>=3.4.2->km3pipe) (2.10.1)
Requirement already satisfied: py-cpuinfo in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from tables>=3.4.2->km3pipe) (9.0.0)
Requirement already satisfied: blosc2>=2.3.0 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from tables>=3.4.2->km3pipe) (2.5.1)
Requirement already satisfied: pip>=9 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from thepipe>=1.3.7->km3pipe) (24.3.1)
Requirement already satisfied: psutil in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from thepipe>=1.3.7->km3pipe) (6.0.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from requests->km3pipe) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from requests->km3pipe) (3.8)
Requirement already satisfied: urllib3<3,>=1.21.1 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from requests->km3pipe) (2.2.2)
Requirement already satisfied: certifi>=2017.4.17 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from requests->km3pipe) (2024.8.30)
Requirement already satisfied: tomli>=1 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from setuptools-scm->km3pipe) (2.0.1)
Requirement already satisfied: ndindex>=1.4 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from blosc2>=2.3.0->tables>=3.4.2->km3pipe) (1.8)
Requirement already satisfied: msgpack in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from blosc2>=2.3.0->tables>=3.4.2->km3pipe) (1.1.0)
Requirement already satisfied: zipp>=3.1.0 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from importlib-resources>=3.2.0->matplotlib>=3.0.0->km3pipe) (3.20.1)
Requirement already satisfied: six>=1.5 in /pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages (from python-dateutil>=2.7->matplotlib>=3.0.0->km3pipe) (1.16.0)
Requirement already satisfied: uproot3-methods in ./.local/lib/python3.9/site-packages (from uproot3>=3.11.1->km3io>=0.28.0->km3pipe) (0.10.1)
Requirement already satisfied: cachetools in ./.local/lib/python3.9/site-packages (from uproot3>=3.11.1->km3io>=0.28.0->km3pipe) (5.5.2)
Using cached km3pipe-9.13.12-py2.py3-none-any.whl (207 kB)
Installing collected packages: km3pipe
Successfully installed km3pipe-9.13.12
[notice] A new release of pip is available: 24.3.1 -> 25.0.1
[notice] To update, run: pip install --upgrade pip
☁ ~ km3pipe test
Traceback (most recent call last):
File "/pbs/home/m/martin/.local/bin/km3pipe", line 5, in <module>
from km3pipe.cmd import main
File "/pbs/home/m/martin/.local/lib/python3.9/site-packages/km3pipe/__init__.py", line 27, in <module>
from . import calib # noqa
File "/pbs/home/m/martin/.local/lib/python3.9/site-packages/km3pipe/calib.py", line 7, in <module>
import awkward as ak
File "/pbs/home/m/martin/.local/lib/python3.9/site-packages/awkward/__init__.py", line 6, in <module>
import awkward.nplike
File "/pbs/home/m/martin/.local/lib/python3.9/site-packages/awkward/nplike.py", line 24, in <module>
class NumpyMetadata(Singleton):
File "/pbs/home/m/martin/.local/lib/python3.9/site-packages/awkward/nplike.py", line 67, in NumpyMetadata
AxisError = numpy.AxisError
File "/pbs/throng/km3net/software/RHEL9/python/3.9.20/lib/python3.9/site-packages/numpy/__init__.py", line 410, in __getattr__
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'AxisError'
☁ ~