MAVENSDC / PyTplot

A python version of the IDL tplot libraries
MIT License
28 stars 17 forks source link

pyqtgraph.python2_3 no longer exists #157

Open sapols opened 2 years ago

sapols commented 2 years ago

On line 6 of AxisItem.py you are importing: from pyqtgraph.python2_3 import asUnicode

but pyqtgraph.python2_3 no longer exists in the current version of pyqtgraph (0.12.3). Since your requirements.txt specifies pyqtgraph >= 0.11.1, a normal import of pytplot now fails because dependency resolution will simply get the latest pyqtgraph and python2_3.py won't exist in it.

Either requirements.txt should be changed to specify a pyqtgraph version lower than 0.12.3 or AxisItem should be changed to not require pyqtgraph.python2_3. The latter is probably preferable since everyone's dropping Python 2 support.

JeffreyBroll commented 2 years ago

Further, since Python 3 all strings have been Unicode anyway - the function being imported just made sure the argument was encoded as a UTF-8 string

AlimyBreak commented 1 year ago

pip install pyqtgraph==0.11.1

STBadman commented 1 year ago

Hi, just wanted to ping that I was caught out by this same issue just now when upgrading pytplot to version 1.7.28 in response to https://github.com/spedas/pyspedas/issues/434

I was prompted to install pyqtgraph and initially installed the latest version (0.13.2), for which the submodule python2_3 doesn't exists. I downgraded as above so it works now, but would be preferable for this not be called in pyspedas.