[open] Failed to import PsychoPy
I have been running my experiment on the same computer with the psycho backend. I haven't had any problems with the backend untill now. Somehow I get this error message when trying to run my experiment:
"Failed to import PsychoPy, probably because it is not (correctly) installed. For installation instructions, please visit http://www.psychopy.org/."
I tried updating PsychoPy, Downgrading PsychoPy and even deinstalled opensesame and reinstalled the older version (the 2.8.0 version that still uses PsychoPy 1.79). All this didn't change anything. I keep getting the same error message.
There might have been some changes on this computer I am not aware off (semi public experiment computer from my University) but I can't figure out how to resolve this issue.
Comments
Hi,
As a first step, I would try to import PsychoPy from the OpenSesame debug window. This will show you the full error message (please post if any). Try to see what happens if you execute the following commands:
Do you mean that you updated/ downgraded the standalone PsychoPy installation? That wouldn't have any effect on OpenSesame, which comes bundled with its Python environment and its own set of modules (one of which is PsychoPy).
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
I did up/down-graded the standalone version yes. Also tried different versions of opensesame but that didn't have any different results.
When I enter the import commands they all give no response except the "from psychopy import visual" command:
When I run opensesame with the python package or the no installation package, so basically without using the registry, psychopy works. I'd say something broke in the registry right?
Small note, the opensesame.bat file from the portable installation should be updated. The version number isn't correct atm.
To the extent that the registry is used (just for basic config), this is shared by all versions of OpenSesame. So that is unlikely to be the issue. Looking at the error message, I think it is more likely that there is a problem with the
psychopy.colorsmodule, but I'm not sure what it could be. What do you see when you execute the commands below in the debug window?Ow right. Would you mind dropping a note in this discussion, including a more detailed description of the problem and what version you are using at the moment?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Woops! Thanks for noticing the .bat in the portable version, I'm on it!
Hi guys,
is there a solution for this? I have the same problem. Yesterday and early in the morning everything worked fine, I added one line to my experiment, tried to run it and all of a sudden it says it can't load psychopy.
I followed the steps suggested above giving me the following results.
and
Thought I'd post it here, maybe it'll help to figure out what's wrong. Please let me know if there is a workaround or if any more information is needed.
Cheers,
Michel
Hi Michel,
What kind of version of PsychoPy are you running, and what is the line of script that started the trouble? You can get all version information by typing
modules()in the debug window. It sounds like a bug in PsychoPy to me, but it might already have been resolved in the most recent release.Edit: Sorry, I see now that you already posted the troublesome line:
from psychopy import visualCheers!
Sebasiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
De version of psychopy I'm running is the one included in opensesame 2.8.1. Which is psychopy 1.80.00.
There is a newer version of psychopy, 1.80.04. I downloaded the zip file but I'm a bit unsure on how to proceed in getting this new version in opensesame.
Is there a folder that I need to copy into opensesame?
Do I need to install the psychopy standalone version?
Do I need to do something else?
Thanks in advance
Michel
You can simply replace the
psychopyfolder in the OpenSesame program folder by thepsychopyfolder from the download.Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Glad to say it worked
Thanks!
I think the whole "psychopy not working anymore all of a sudden' issue might have been because of windows updates?
Good!
It might have been, I have no clue. Did you hear the same problem from other people as well? The memory error that you got is kind of unclear and obscure, and I imagine it might well be specific to your machine.
Check out SigmundAI.eu for our OpenSesame AI assistant!