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

**URL:** <https://discourse.psychopy.org/t/error-message-from-pyqt5-import-qtwidgets-importerror-no-module-named-pyqt5/5380>\
**Category:** Builder\
**Created:** [September 21, 2018, 2:06pm UTC](https://discourse.psychopy.org/t/error-message-from-pyqt5-import-qtwidgets-importerror-no-module-named-pyqt5/5380 "2018-09-21T14:06:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicknik99](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@nicknik99](https://discourse.psychopy.org/u/nicknik99)\
**Post date:** [September 21, 2018, 2:06pm UTC](https://discourse.psychopy.org/t/error-message-from-pyqt5-import-qtwidgets-importerror-no-module-named-pyqt5/5380/1 "2018-09-21T14:06:29Z")

</div>

**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
