I am trying to debug a code with pudb
(Python 3.10
) but it imports xarray
and while importing it there is an error with the cftime
module. In pudb
it says there is no module cftime._cftime
. The exact error output is
File "src/cftime/_cftime.pyx", line 374, in init cftime._cftime
File "/home/lmod/software/SciPy-bundle/2021.10-intel-2022.00/lib/python3.10/site-packages/numpy/core/getlimits.py", line 651, in __init__
self.dtype = numeric.dtype(type(int_type))
TypeError: 'NoneType' object is not callable
Is there a way to fix this? It has happened before with other packages but I've been able to find a way not to use them, but I can't do that in this case.
Code imports every package perfectly fine without pudb
. I've tried upgrading both xarray
and numpy
without success. I have numpy 1.22.0
and xarray 2022.9.0