Installed PsychoPy Studio but psychopy python lib not installed/found?

OS: Mac OS 2026.5.1
PsychoPy version: Studio 2026.1.3
Standard Standalone Installation? (y/n) No, PsychoPy Studio
Do you want it to also run online? (y/n) No
What are you trying to achieve?:

I am developing a new local PsychoPy task and wanted to do it in the newest PsychoPy version. I have never used PsychoPy Studio before but was curious so I downloaded it and opened it. I allowed it to go through the process of uv installing Python and psychopy/other libraries. It appeared to finish normally.

However, psychopy-lib or something else failed to install or isn’t being discovered?

When I try to open an older PsychoPy task that was made in PsychoPy Standalone, I can see the the components already set up and save modifications to them, but I can’t add new components–it says “Failed to load Components” in the sidebar with red error text.

Then, when I try to run said local task in the Runner, I get a whole suite of error messages but this block pops up first:

Traceback (most recent call last):
,  File "/Users/svc-shclassrooms/Library/Application Support/psychopy4/.python/2026.1.3/lib/python3.10/site-packages/liaison/websocket/websocket.py", line 74, in process_messages
    'response': self.process_command(message['command']),
,  File "/Users/svc-shclassrooms/Library/Application Support/psychopy4/.python/2026.1.3/lib/python3.10/site-packages/liaison/base.py", line 36, in process_command
    return command(*args, **kwargs)
,  File "/Users/svc-shclassrooms/Library/Application Support/psychopy4/.python/2026.1.3/lib/python3.10/site-packages/liaison/companion/companion.py", line 166, in call
    return self.resolve(fcn)(
,  File "/Users/svc-shclassrooms/Library/Application Support/psychopy4/.python/2026.1.3/lib/python3.10/site-packages/liaison/companion/companion.py", line 97, in resolve
    return self.resolve_import(target)
,  File "/Users/svc-shclassrooms/Library/Application Support/psychopy4/.python/2026.1.3/lib/python3.10/site-packages/liaison/companion/companion.py", line 62, in resolve_import
    module = importlib.import_module(modstr)
,  File "/Users/svc-shclassrooms/.local/share/uv/python/cpython-3.10.18-macos-x86_64-none/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
,  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
,  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
,  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
,  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
,  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
,  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
,  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
,ModuleNotFoundError: No module named 'psychopy'

The paths into the uv python install do exist, so it’s not that that was installed in an unexpected location.

I get the same suite of error messages upon opening PsychoPy Studio Builder at all, maybe the error throws when the components fail to load?

What did you try to make it work?:

I have now reproduced this problem on 2 separate Macs (both running the same OS). The second machine I reproduced this on has never had any version of PsychoPy installed before this, but it has had uv installed previously. The first machine has had PsychoPy Standalone 2025.1.1 installed, but never uv.

Link to the most relevant existing thread you have found:

I could not find any existing threads describing this issue.

Someone else had this issue with 2026.1 on GitHub; I’m still not sure what exactly caused the install to fail but it seems as though 2026.2 (which you can download here) doesn’t have the same issue, so try it out with that version.

The crucial change is that in 2026.1 we assumed that if you had a Python environment for a given version then the setup had completed, whereas in 2026.2 we started checking each part so that e.g. if the environment was created but installing a package failed (as is the case here) Studio can now spot this and reinstall that package.

The newer version appears to work in this respect, yay! I can now run my task in local pilot or run mode.

However, I’m now running into a different (potentially related? but not clear) error: my task does not accept Keyboard component input. There are several Keyboard components and now none of them seem to register responses, and the Esc key during piloting does not close out the task.

However, I do have a Rating component that I had rigged using code like

keys_pressed = event.getKeys(keyList=['left', 'right'])

to listen for the left and right arrow keys and move the rating slider accordingly. That set of components seems to work.

Similarly, regular old Keyboard components that are listening for the space bar to end routine when key is pressed are not ending the routine. I can manually replace the desired behavior by listening for keys pressed and set continueRoutine = False in the Each Frame section of a code component to make the task end routine on key press, but no dice with the Keyboard component or hitting Esc to end the task.

I did check to make sure PsychoPy Studio has Input Monitoring enabled in Mac Privacy and Security settings. And manually listening for key presses does work!

In the stdout, I can see at some point it sends the message Using event module for keyboard component. but I can’t tell exactly when, so I don’t know if it’s like the event module is not being loaded early enough in the task for the Keyboard components to work?