PyCapsule GetPointer

OS : Ubuntu 18.04
PsychoPy version : 3.24
**Standard Standalone? : yes pip install
python 3.69

getting an error:
File “/usr/lib/python3/dist-packages/wx/init.py”, line 17, in
from wx.core import *
File “/usr/lib/python3/dist-packages/wx/core.py”, line 12, in
from ._core import *
ValueError: PyCapsule_GetPointer called with incorrect name

some of demos give same error. this error occurs in new script, simply presenting text

Been googling but none of the forums had an answer that worked. This question (last part) was never answered but seems similar to my issue.

Any suggestions would be helpful. Stroop Builder demo gives same error:
File “/home/cat/APPS/PsychoPy3 Demos/stroop/stroop_lastrun.py”, line 18, in
from psychopy import sound, gui, visual, core, data, event, logging, clock
File “/home/cat/.local/lib/python3.6/site-packages/psychopy/gui/init.py”, line 45, in
from .qtgui import *
File “/home/cat/.local/lib/python3.6/site-packages/psychopy/gui/qtgui.py”, line 48, in
from psychopy.localization import _translate
File “/home/cat/.local/lib/python3.6/site-packages/psychopy/localization/init.py”, line 23, in
import wx
File “/usr/lib/python3/dist-packages/wx/init.py”, line 17, in
from wx.core import *
File “/usr/lib/python3/dist-packages/wx/core.py”, line 12, in
from ._core import *
ValueError: PyCapsule_GetPointer called with incorrect name

I’m guessing something’s wrong with wxpython given the error, but can’t figure it out. BTW, this error is less likely (if at all) to occur in the coder, but highly likely in builder.

Hello Catherine

Did you find a solution to that issue? I am having the exact same problem in PsychoPy version 2020.1.2. I am also using python 3.69 and installed the program via pip.

Thanks in advance for any helpful suggestions.

Best regards

Hello again

It seems that downgrading PyQt5 to an older version via pip works:

pip3 install --user pyqt5==5.10.1

Did you find another solution/workaround?

Best regards