Builder can not connect to Pavlovia on Ubuntu : PsychoPy crashes

OS : Ubuntu 24.04
PsychoPy version : PsychoPy 2024.2.4
**Standard Standalone? : yes

I had issues to install PsychoPy 2024.2.4 on my laptop running Ubuntu 24.04 so I used this installer : GitHub - wieluk/psychopy_linux_installer: Installing PsychoPy on Linux can be challenging, so I've created an installer to make the process easier and more streamlined.. PsychoPy is almost working fine but I can not manage to connect to my Pavlovia account from the Builder, if I click Create a project or Sync, PsychoPy closes/crashes without a error message. Would you know how to fix this ?

just a follow-up on the Ubuntu installation :

I created an empty study on PsychoPy on another computer (MacOS), synced/created a new Pavlovia project for it via the Builder, transferred it on the Ubuntu 24.04 computer (with the .git file). When opening the .psyexp, the project is linked to my Pavlovia account and the new project and I can sync it with Pavlovia without PsychoPy crashing !

So the issue on Ubuntu might only be linked to the step of creating a new Pavlovia project via the Builder on Ubuntu 24.04 with both PsychopPy 2024.2.4 or 2024.2.5.

2 Likes

I also installed Psychopy (2025.2.5 Py 3.8) on Linux (Mint Cinnamon v.22.1) with that script and incurred in a similar problem.

Everything runs just fine, I can also login in my Pavlovia account, but as soon as I click on the arrow next to “no project” and click on either “new project” or “search project…” it crashes without leaving an error message.

I haven’t managed to solve it, but I can use OP’s workaround for the moment.

There may be an error message in the last log file after this crash - try looking in your psychopy user folder (/home/username/.psychopy3 on Linux) for the file last_app_load.log. If you share the traceback from there it’ll give me more to go on with tracking down the cause.

Unfortunately there is nothing in the last_app_load.log.
This has be already mentioned in: Solved: install PsychoPy 2023.1.1 on Ubuntu 22.04

I apologize for answering this late, I did not receive a notification for your reply here.

The following log file should reflect these passages: I opened Psychopy builder, I clicked on the arrow and selected “Search projects…”, then psychopy crashed.

0.0921 	DEBUG 	Opening message catalog /usr/local/PsychoPy-2024.2.5-Python3.10/lib/python3.10/site-packages/psychopy/localization/../app/locale/it_IT/LC_MESSAGE/messages.mo for locale it_IT
0.0921 	DEBUG 	Locale for 'it_IT' not found. Using default.
1.3941 	INFO 	Trying to load audio library: PTB
1.4948 	INFO 	Loaded psychtoolbox audio version 3.0.19.696976567
1.4953 	INFO 	sound is using audioLib: ptb
1.5240 	INFO 	Calling `psychopy.plugins.activatePlugins()`, but no plugins have been found in active distributions.
1.7233 	DEBUG 	PavloviaLoggedIn
1.9532 	WARNING 	Couldn't connect to psychopy.org
Check internet settings (and proxy setting in PsychoPy Preferences.
4.0283 	WARNING 	Could not get image from: https://secure.gravatar.com/avatar/0e4eb8bc45f2c44239f2725b031b0d54?s=80&d=identicon, using blank image instead.

It seems to be a problem related to the internet connection? I am connected to the internet, and I tried to disable the firewall, but this behaviour still occurs.

EDIT: It mentions some proxy settings in Psychopy preferences, here is a picture (I never touched them, so this should be default settings?):

I am not aware of any other internet setting on my machine that could conflict with Psychopy. This should be confirmed by the fact that I had no connection related issues with other programs.

I might have a more significant update, although I’m unable to tell whether it’s of any use.

I have install psychopy 2025.1.1 py 3.10, and I used this script (link) to aid the process.

Out of curiosity, I launched psychopy via the script ‘start_psychopy’, ran in the terminal.

The log file in the terminal seems a bit more verbose than the one generated by psychopy:

[start_psychopy] Working directory: /opt/psychopy/PsychoPy-2024.2.5-Python3.10/workspace
0.0987 	DEBUG 	Opening message catalog /opt/psychopy/PsychoPy-2024.2.5-Python3.10/.venv/lib/python3.10/site-packages/psychopy/localization/../app/locale/it_IT/LC_MESSAGE/messages.mo for locale it_IT
1.1511 	DEBUG 	Registered backend for ButtonBoxComponent: Keyboard (keyboard) from psychopy.experiment.components.buttonBox:KeyboardButtonBoxBackend
1.2550 	DEBUG 	Registered backend for SoundSensorComponent: Microphone emulator (microphone) from psychopy.experiment.components.soundsensor:MicrophoneSoundSensorBackend
1.3552 	DEBUG 	Registered backend for AudioValidatorRoutine: Microphone (microphone) from psychopy.experiment.routines.audioValidator:MicrophoneSoundSensorValidatorBackend
1.3554 	DEBUG 	Registered backend for VisualValidatorRoutine: Screen Buffer (Debug) (screenbuffer) from psychopy.experiment.routines.visualValidator:ScreenBufferVisualValidatorBackend
1.3899 	INFO 	Calling `psychopy.plugins.activatePlugins()`, but no plugins have been found in active distributions.
1.4355 	DEBUG 	PavloviaLoggedIn
1.5004 	ERROR 	Failed to open ., file does not exist.
11:28:19: Debug: ScreenToClient cannot work when toplevel window is not shown

#These errors appear when I click the arrow to the right of the repository and #experiment file name
(psychopy:14766): Gtk-CRITICAL **: 11:29:10.592: gtk_image_menu_item_set_image: assertion 'GTK_IS_IMAGE_MENU_ITEM (image_menu_item)' failed

(psychopy:14766): Gtk-CRITICAL **: 11:29:10.592: gtk_image_menu_item_set_image: assertion 'GTK_IS_IMAGE_MENU_ITEM (image_menu_item)' failed

(psychopy:14766): Gtk-CRITICAL **: 11:29:10.592: gtk_image_menu_item_set_image: assertion 'GTK_IS_IMAGE_MENU_ITEM (image_menu_item)' failed

When I click on ‘search projects’, psychopy crashes and no log is recorded.

Are there any updates on this issue? I also have the exact same problem and it still crashes like this