Replies: 7 comments 9 replies
-
@srbrodzik What Python version is on that system? |
Beta Was this translation helpful? Give feedback.
-
I'll do that and let you know how it goes. |
Beta Was this translation helpful? Give feedback.
-
Did you see my latest comment? The install still isn't working. |
Beta Was this translation helpful? Give feedback.
-
I updated cython to v3.1.11. That seemed to work and the setup.py install worked. I did it locally (to my ~/.local/lib dir. But when I tried to import it, I got several messages including one about numpy. I'm currently using v2.0.2. shear:brodzik:119>ipython3 In [1]: import pyart You are using the Python ARM Radar Toolkit (Py-ART), an open sourcelibrary for working with weather radar data. Py-ART is partlysupported by the U.S. Department of Energy as part of the AtmosphericRadiation Measurement (ARM) Climate Research Facility, an Office ofScience user facility.If you use this software to prepare a publication, please cite:JJ Helmus and SM Collis, JORS 2016, doi: 10.5334/jors.119ValueError Traceback (most recent call last) ~/.local/lib/python3.9/site-packages/arm_pyart-1.19.1.post8-py3.9-linux-x86_64.egg/pyart/init.py in ~/.local/lib/python3.9/site-packages/arm_pyart-1.19.1.post8-py3.9-linux-x86_64.egg/pyart/aux_io/init.py in ~/.local/lib/python3.9/site-packages/arm_pyart-1.19.1.post8-py3.9-linux-x86_64.egg/pyart/aux_io/arm_vpt.py in /usr/local/lib/python3.9/dist-packages/netCDF4/init.py in src/netCDF4/_netCDF4.pyx in init netCDF4._netCDF4() /usr/lib/python3/dist-packages/cftime/init.py in src/cftime/_cftime.pyx in init cftime._cftime() ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject |
Beta Was this translation helpful? Give feedback.
-
Thinking numpy was the culprit, I went back to v1.19.5. Then I got a message that I needed at least numpy1.22.4 to be compatible with pandas (v2.2.3). Now getting a new numpy error: ModuleNotFoundError: No module named 'numpy._typing' Please let me know what version of numpy I need to have installed. |
Beta Was this translation helpful? Give feedback.
-
@srbrodzik I agree with @kmuehlbauer that I think this is an environment issue with a few conflicts happening. The newest numpy would be better as it contains changes that Py-ART has in it, so older versions might not work. With the newer numpy you could also try updating your netcdf and cftime or cleaning the environment and starting fresh if that's possible? I'm trying to think of other options. Using an environment maintainer like mamba might be an option as well. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to upgrade my pyart installation (on a Debian system running version 10) by downloading the zip file, unzipping and running
python setup.py install
When I do so, I get a syntax error that I don't know what to do with
File "setup.py", line 79
*sys.version_info[:2], *min_version
^
SyntaxError: invalid syntax
Suggestions? I've attached the setup.py file with a txt suffix since I can't attach a py file.
setup.txt
Beta Was this translation helpful? Give feedback.
All reactions