spedas / pyspedas_examples

Examples of using pySPEDAS
MIT License
8 stars 4 forks source link

ModuleNotFoundError: No module named 'pyqtgraph.python2_3' #13

Closed thepeteriley closed 2 years ago

thepeteriley commented 2 years ago

Hi - I'm trying to run the examples for pyspedas, but get the error:

ModuleNotFoundError: No module named 'pyqtgraph.python2_3'

I've explicitly imported the pyqtgraph module (but that wasn't the issue) and checked that it was installed (which it was). I can't see any relevant, similar issues posted online.

Cheers, Pete

ericthewizard commented 2 years ago

Hi Pete,

Sorry for the delay! I wasn't watching this repo, so I missed your question.

This error should be fixed in the latest version of pyspedas (v1.3) - you can update with:

pip install pyspedas --upgrade

thepeteriley commented 2 years ago

Hey Supervised!

Thanks for getting back to me and pushing the fix. I'll give it a try!

-Pete

On Wed, 9 Feb 2022 at 08:54, supervised @.***> wrote:

Hi Pete,

Sorry for the delay! I wasn't watching this repo, so I missed your question.

This error should be fixed in the latest version of pyspedas (v1.3) - you can update with:

pip install pyspedas --upgrade

— Reply to this email directly, view it on GitHub https://github.com/spedas/pyspedas_examples/issues/13#issuecomment-1033978245, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB52VKYEYYRPQ6DBPXE7NOLU2KL57ANCNFSM5G7MOUUQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

--

Pete Riley @.***

pinecypressfxd commented 2 years ago

Hello, I have the same error, my compyter system is windows10, compile software is VSCode, I have solved this problem, find the file: "C:\Users\admin\anaconda3\lib\site-packages\pytplot\QtPlotter\CustomAxis\AxisItem.py", and you should comment the sixth line: "from pyqtgraph.python2_3 import asUnicode", then, it can work. I hope it helps.

Cheers, Xuedong

ericthewizard commented 2 years ago

Hi Xuedong,

You may want to consider updating PySPEDAS and PyTplot with:

pip install pyspedas --upgrade --force-reinstall

The error you're encountering exists in the Qt version of PyTplot, and we recently moved away from that to a version that uses matplotlib instead (since pyspedas v1.3).

There are some details on the transition to matplotlib here:

https://github.com/MAVENSDC/PyTplot/issues/159

But even this is out of date and doesn't include all of the features the newer matplotlib version supports.

Hope this helps!

pinecypressfxd commented 1 year ago

Hi Xuedong,

You may want to consider updating PySPEDAS and PyTplot with:

pip install pyspedas --upgrade --force-reinstall

The error you're encountering exists in the Qt version of PyTplot, and we recently moved away from that to a version that uses matplotlib instead (since pyspedas v1.3).

There are some details on the transition to matplotlib here:

MAVENSDC/PyTplot#159

But even this is out of date and doesn't include all of the features the newer matplotlib version supports.

Hope this helps!

Hey Supervised! Very Thanks, I use your method and upgrade the pyspedas, this problem has been solved.