Closed tzaremb2 closed 1 year ago
That code block should be a harmless no-op if cupy
is not installed as the ImportError
will be handled by the try/except block. You most have some quasi-broken cupy
installed, which could either be something simple like a python file called cupy.py
somewhere in your $PYTHONPATH
/ pwd. Attempting to pip install it will likely end in tears as these are very complex packages. You appear to be using anaconda, so use conda to install/remove cupy and see if that can get rid of your problem.
Thanks! That was the problem! I really appreciate your help! Was able to get it to work.
What went wrong?
Hello,
I keep running into this error code when I try to read in Metpy. I am running Python 3.11.0. AttributeError: module 'cupy' has no attribute 'ndarray'. I tried pip install cupy but kept getting errors in the install process. I was wondering if anybody had experienced this or had any insights on how to get around this. Any help would be much appreciated! Thanks!
Best, Troy
Operating System
MacOS
Version
1.5
Python Version
3.11.0
Code to Reproduce
Errors, Traceback, and Logs