On a very bright sunny day, I decided to download the psychopy software to create some psychology tests on python. But as soon as I did that, I couldn't open the same. I will discuss in this very small post, how I solved that issue.
First, I downloaded 2020.1.3. version using the tar file download process explained in the official site. But that didn't work out. Neither the app would open nor it would show any error message in the terminal.
Then my instructor said that he is using 2020.2.4 version in mac. Having that information, I first uninstalled the 1.3. version and then wrote
pip3 install psychopy==2020.2.4
Now, I got a error in my terminal saying something like:
ImportError: libwebkitgtk-3.0.so.0: cannot open shared object file: No such file or directory
Now on searching this in google, you will see that this is a psychopy github issue. Which basically tells you to install the libwebkitgtk of the said version. So you have to type:
sudo apt-get install libwebkitgtk-3.0-0
and this downloads the proper file.
Now I thought that my woes are over and went ahead and called psychopy again from the terminal. Now, the app opens up to some level, then a written error comes up, saying that
ImportError: libSDL-1.2.so.0: cannot open shared object file: No such file or directory
So you go ahead and type according to this issue about this error:
sudo apt-get install libsdl1.2debian
Finally after successfully installing this library, psychopy opens up properly and runs. There are still some warnings about pixman and some other libraries, as well as some shape checks; but overall it is fine now.
So if you were stuck downloading psychopy, I hope you got helped!
Comments
Post a Comment