psychopy.org | Reference | Downloads | Github

Error Message: from PyQt5 import QtWidgets ImportError: No module named PyQt5

PsychoPy version (e.g. 1.85.6): on mac OS

Hello, I am trying to make my tasks run from one mac to another. It works on my laptop and am now trying to run the same experiment on a desktop mac. (Same version of psychopy on both and I changed all the file names so they are retrieved from the correct desktop). Not sure why it would work on my laptop but not this desktop. Thanks!

The error message is as follows:

############# Running: /Users/hhab/Desktop/Dissertation_lastrun.py #############
pyo version 0.8.6 (uses single precision)
Traceback (most recent call last):
File “/Users/hhab/Desktop/Dissertation_lastrun.py”, line 14, in
from psychopy import locale_setup, sound, gui, visual, core, data, event, logging
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/gui/init.py”, line 32, in
from .qtgui import *
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/gui/qtgui.py”, line 14, in
from PyQt5 import QtWidgets
ImportError: No module named PyQt5