Skip to content

[Bug]: Can't access preferences; TypeError: 'str' object cannot be interpreted as an integer #7488

@wieluk

Description

@wieluk

PsychoPy Version

>= 2025

What OS are your PsychoPy running on?

Linux-based systems

Bug Description

Someone reported this on the psychopy_linux_installer repo:
Resolves wieluk/psychopy_linux_installer#93

Traceback (most recent call last):
  File "/opt/psychopy/PsychoPy-2025.2.2-Python3.10/.venv/lib/python3.10/site-packages/psychopy/app/_psychopyApp.py", line 1096, in showPrefs
    prefsDlg = PreferencesDlg(app=self)
  File "/opt/psychopy/PsychoPy-2025.2.2-Python3.10/.venv/lib/python3.10/site-packages/psychopy/app/preferencesDlg.py", line 441, in __init__
    devnames.pop('default')
TypeError: 'str' object cannot be interpreted as an integer

This happens only on 2025 versions.

Expected Behaviour

Allow editing preferences.

Steps to Reproduce

Try to access preferences

Additional context

No response

Metadata

Metadata

Assignees

Labels

🐞 bugIssue describes a bug (crash or error) or undefined behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions