Is there a known solution to this error?
OS (e.g. Win10): Ubuntu 24.04.2 LTS
PsychoPy version (e.g. 2024.2.4 Py 3.8): 2025.1.1
Standard Standalone Installation? (y/n): Yes
Do you want it to also run online? (y/n): No
What are you trying to achieve?:
I wanted to add the adress of my Parallel port trough File>Preferences but at the moment I click on Preferences the following error pops out:
Traceback (most recent call last):
File “/opt/psychopy/PsychoPy-2025.1.1-Python3.10/.venv/lib/python3.10/site-packages/psychopy/app/_psychopyApp.py”, line 1074, in showPrefs
prefsDlg = PreferencesDlg(app=self)
File “/opt/psychopy/PsychoPy-2025.1.1-Python3.10/.venv/lib/python3.10/site-packages/psychopy/app/preferencesDlg.py”, line 436, in init
devnames.pop(‘default’)
TypeError: ‘str’ object cannot be interpreted as an integer
What did you try to make it work?:
I tried firstly updating PsychoPy to a newer version but i think 2025.1.1 was already the newest.
Then I tried moving the preference file with:
mv ~/.psychopy3 ~/.psychopy3.backup
What specifically went wrong when you tried that?:
Even after trying to solve it i keep getting the error:
Traceback (most recent call last):
File “/opt/psychopy/PsychoPy-2025.1.1-Python3.10/.venv/lib/python3.10/site-packages/psychopy/app/_psychopyApp.py”, line 1074, in showPrefs
prefsDlg = PreferencesDlg(app=self)
File “/opt/psychopy/PsychoPy-2025.1.1-Python3.10/.venv/lib/python3.10/site-packages/psychopy/app/preferencesDlg.py”, line 436, in init
devnames.pop(‘default’)
TypeError: ‘str’ object cannot be interpreted as an integer