If this template helps then use it. If not then just delete and start from scratch.
OS Ubuntu 22.04 LTS
PsychoPy version 2024.2.4:
Standard Standalone Installation? (y)
Do you want it to also run online? (n)
What are you trying to achieve?:
I want to display an experiment on a second monitor. The Ubuntu system does not seem to recognise that a second monitor is connected. As a result, PsychoPy throws an error trying to address a non-existent monitor. However, running a Psychotoolbox experiment on the same computer runs fine on the second monitor. Ideas how to “convince” PsychoPy to do the same are welcome.
What specifically went wrong when you tried that?:
10.8084 INFO Loaded monitor calibration from [‘2025_04_11 11:34’]
10.8230 INFO Loaded monitor calibration from [‘2025_04_11 11:34’]
13.5732 ERROR User requested non-existent screen
Generating PsychoPy script…
Running: /home/busch/Documents/JEBAR/PermissiveSubjectsEEG/PermissiveSubjectBase_lastrun.py
26.2316 INFO Loaded monitor calibration from [‘2025_04_11 11:34’]
26.2457 INFO Loaded monitor calibration from [‘2025_04_11 11:34’]
Traceback (most recent call last):
File “/home/busch/.psychopy_py310/lib/python3.10/site-packages/psychopy/plugins/init.py”, line 202, in resolveObjectFromName
importlib.import_module(path)
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1001, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘psychopy.visual.backends.glfwbackend.GLFWBackend’; ‘psychopy.visual.backends.glfwbackend’ is not a package
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/busch/Documents/JEBAR/PermissiveSubjectsEEG/PermissiveSubjectBase_lastrun.py”, line 2690, in
win = setupWindow(expInfo=expInfo)
File “/home/busch/Documents/JEBAR/PermissiveSubjectsEEG/PermissiveSubjectBase_lastrun.py”, line 199, in setupWindow
win = visual.Window(
File “/home/busch/.psychopy_py310/lib/python3.10/site-packages/psychopy/visual/window.py”, line 480, in init
self.backend = backends.getBackend(win=self, backendConf=backendConf)
File “/home/busch/.psychopy_py310/lib/python3.10/site-packages/psychopy/visual/backends/init.py”, line 48, in getBackend
Backend = plugins.resolveObjectFromName(useBackend, name)
File “/home/busch/.psychopy_py310/lib/python3.10/site-packages/psychopy/plugins/init.py”, line 206, in resolveObjectFromName
raise NameError(
NameError: Specified name
does not reference a valid object or is unreachable.
Exception ignored in: <function Window.del at 0x709a2c13b7f0>
Traceback (most recent call last):
File “/home/busch/.psychopy_py310/lib/python3.10/site-packages/psychopy/visual/window.py”, line 665, in del
self.close()
File “/home/busch/.psychopy_py310/lib/python3.10/site-packages/psychopy/visual/window.py”, line 2657, in close
self.backend.close() # moved here, dereferencing the window prevents
AttributeError: ‘NoneType’ object has no attribute ‘close’
################ Experiment ended with exit code 1 [pid:19625] #################
Best wishes Jens