I have completed building my task and when I go to run it a separate box appears with errors preventing my task from running. Below is a copy of the error message that appears. I have been able to run this task on my previous computer, but I got a new one and now it wont run.
Traceback (most recent call last):
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\gui\qtgui.py”, line 15, in
from PyQt4 import QtGui
ModuleNotFoundError: No module named ‘PyQt4’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\Hope Gill\Dropbox\Research Design 2018-2019\VWM Task\Working Memory Capacity Task Session 3_lastrun.py”, line 14, in
from psychopy import locale_setup, sound, gui, visual, core, data, event, logging, clock
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\gui_init_.py”, line 33, in
from .qtgui import *
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\gui\qtgui.py”, line 19, in
from PyQt5 import QtWidgets
ImportError: DLL load failed: The specified procedure could not be found.
Hey! I’m having the same problem I installed the lastest version of PyschoPy 3.0.5.
Traceback (most recent call last):
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\gui\qtgui.py”, line 15, in
from PyQt4 import QtGui
ModuleNotFoundError: No module named ‘PyQt4’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “D:\Talia\untitled.py”, line 14, in
from psychopy import locale_setup, sound, gui, visual, core, data, event, logging, clock
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\gui_init_.py”, line 33, in
from .qtgui import *
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\gui\qtgui.py”, line 19, in
from PyQt5 import QtWidgets
ImportError: DLL load failed: The specified procedure could not be found.
Welcome to PsychoPy3!
v2021.1.4
27.3435 INFO Loaded monitor calibration from ['2021_01_04 15:09']
Generating PsychoPy script...
## Running: C:\Users\r02mj20\Desktop\DotStim\GaussTest_interleavedQUEST_coherence.high_lastrun.py ##
29.8790 INFO Loaded monitor calibration from ['2021_01_04 15:09']
0.7270 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['sounddevice', 'PTB', 'pyo', 'pygame'] (in that order).
Traceback (most recent call last):
File "C:\Users\r02mj20\Desktop\DotStim\GaussTest_interleavedQUEST_coherence.high_lastrun.py", line 18, in <module>
from psychopy import sound, gui, visual, core, data, event, logging, clock, colors
File "C:\Users\r02mj20\PsychoPy3\lib\site-packages\psychopy\gui\__init__.py", line 45, in <module>
from .qtgui import *
File "C:\Users\r02mj20\PsychoPy3\lib\site-packages\psychopy\gui\qtgui.py", line 35, in <module>
from PyQt5 import QtWidgets
ImportError: DLL load failed: The specified procedure could not be found.
##### Experiment ended. #####
For anyone wondering about the above issue, it turned out to be a problem caused by the university security system. Our university service desk tweaked the CyberArk policy to allow PsychoPy to install in Program Files; users need write access to the PsychoPy program folder in order for it to run properly. Once those permissions were set, and I’d logged out and back in, the program functioned as expected. Hope this is helpful for anyone in a similar situation.