can't import pyqtgraph

416 views
Skip to first unread message

Raziel Itzhak

unread,
Jul 30, 2022, 2:25:55 PM7/30/22
to pyqtgraph
I have Python 3.9.12 and I  just installed pyqtgraph but I can't start to work with it.
I get the following error:
ValueError: PyCapsule_GetPointer called with incorrect name
How can I fix this error so I could start to work whit pyqtgraph?

Martin Chase

unread,
Aug 1, 2022, 6:33:43 PM8/1/22
to pyqt...@googlegroups.com
Hey,

I couldn't reproduce your issue, but a cursory web search suggests you should downgrade your version of pyqt. Do you have any more details to help us? What kind of python environment are you using?

Good luck!

--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/b18d4702-4fd6-4cb1-bcb4-519a1b16c241n%40googlegroups.com.

Raziel Itzhak

unread,
Aug 12, 2022, 12:49:22 PM8/12/22
to pyqtgraph
Thanks for your comment.
I have spyder version 5.1.5, Python  3.9.12, PyQt5, and windows 10 64-bit.
 I downrange to  - pip install pyqtgraph==0.11.0 and now it is working.
I have no idea why the last version didn't work;/

Thank you!
error.JPG

Ognyan Moore

unread,
Aug 12, 2022, 3:33:27 PM8/12/22
to pyqt...@googlegroups.com
What version of PyQt5 do you have?  If you have a conda environment, can you show us the output of conda list?  Otherwise show us pip list?

Raziel Itzhak

unread,
Aug 16, 2022, 8:16:43 AM8/16/22
to pyqt...@googlegroups.com
Hi,
here is the outcome of pip list:
PyQt5-Qt5                          5.15.2
PyQt5-sip                          12.11.0
pyqtgraph                          0.12.4
when I import pyqtgraph I get the following:

import pyqtgraph
Traceback (most recent call last):

  File "C:\Users\iraziel\AppData\Local\Temp/ipykernel_15584/2157412210.py", line 1, in <module>
    import pyqtgraph

  File "C:\Users\iraziel\Anaconda3\lib\site-packages\pyqtgraph\__init__.py", line 13, in <module>
    from .Qt import QtGui, mkQApp

  File "C:\Users\iraziel\Anaconda3\lib\site-packages\pyqtgraph\Qt\__init__.py", line 174, in <module>
    from PyQt5 import QtTest


ValueError: PyCapsule_GetPointer called with incorrect name

Thanks!

You received this message because you are subscribed to a topic in the Google Groups "pyqtgraph" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyqtgraph/q1SXcN59dRY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/CA%2BnduTFXwCi9uRo4WGUoZQnUgvihEmO6xuiHzPDzdSaZJvG8HQ%40mail.gmail.com.

Ognyan Moore

unread,
Aug 16, 2022, 11:07:02 AM8/16/22
to pyqt...@googlegroups.com
Can you provide the entire output of your pip/conda list?  There's something weird happening as I've never seen this before.

Reply all
Reply to author
Forward
0 new messages