Hi psadil,
I was able to synch and log in to Pavlovia.org for the first time ever !!!
I followed your instructions as below:
I actually deleted âpsychopyâ environment so that I can freshly start from scratch and check any replicable condition I can find.
OS: ubuntu 18.04
Installation instruction is similar to the below
https://www.psychopy.org/download.html#linux
Anaconda and Miniconda
We provide an environment file that can be used to install PsychoPy and its dependencies. Download the file, open your terminal, navigate to the directory you saved the file to, and run:
conda env create -n psychopy -f psychopy-env.yml
I used your environment setting as below
name: psychopy
channels:
- conda-forge
dependencies:
- python=3.6
- opencv=3.4.2
- psychopy
- pip
- pip:
- psychtoolbox
- pygame
- pyo
- pyparallel; platform_system != âWindowsâ
- SoundFile; platform_system == âWindowsâ
After I saved the above information as psychopy-env.yml
I ran below command;
conda env create -n psychopy -f psychopy-env.yml
Then, psychopy environment is created.
I activated the environment by
conda activate psychopy
I immediately tried to run in the psychopy environment,
psychopy
First attempt Failed, errors said
Traceback (most recent call last):
File âanaconda directory/anaconda3/envs/psychopy/bin/psychopyâ, line 11, in
sys.exit(main())
File âanaconda directory/anaconda3/envs/psychopy/lib/python3.6/site-packages/psychopy/app/psychopyApp.pyâ, line 100, in main
start_app()
File âanaconda directory/anaconda3/envs/psychopy/lib/python3.6/site-packages/psychopy/app/psychopyApp.pyâ, line 22, in start_app
from psychopy.app._psychopyApp import PsychoPyApp
File âanaconda directory/anaconda3/envs/psychopy/lib/python3.6/site-packages/psychopy/app/_psychopyApp.pyâ, line 32, in
import wx
File âanaconda directory/anaconda3/envs/psychopy/lib/python3.6/site-packages/wx/init.pyâ, line 17, in
from wx.core import *
File âanaconda directory/anaconda3/envs/psychopy/lib/python3.6/site-packages/wx/core.pyâ, line 12, in
from ._core import *
ImportError: libpng12.so.0: cannot open shared object file: No such file or directory
This is different from the environment file given by the psychopy website, which actually be able to open psychopy properly, but a new enviroment provided by psadil did not open and showed this error.
So I tried to go back to check if it is a problem of missing libwebkitgtk-1.0 file/package.
Then, I ran below command,
sudo apt install libwebkitgtk-1.0
Reading package lists⌠Done
Building dependency tree
Reading state information⌠Done
Note, selecting âlibwebkitgtk-1.0-commonâ for regex âlibwebkitgtk-1.0â
Note, selecting âlibwebkitgtk-1.0-0â for regex âlibwebkitgtk-1.0â
libwebkitgtk-1.0-0 is already the newest version (2.4.11-3ubuntu3).
The following package was automatically installed and is no longer required:
libnvidia-common-440
Use âsudo apt autoremoveâ to remove it.
0 to upgrade, 0 to newly install, 0 to remove and 9 not to upgrade.
Obviously, conda or sudo apt could not solve this problem.
Actually, there are some problems of missing some packages.
Then, going to back to the https://www.psychopy.org/download.html#linux
and download various versions of wxPython wheel
instructed as below
Then fetch a wxPython wheel for your platform from:
https://extras.wxpython.org/wxPython4/extras/linux/gtk3/
and having downloaded the right wheel you can then install it with something like:
pip install path/to/your/wxpython.whl
Currently, available wheel for Python 3.6 is
- wxPython-4.0.2-cp36-cp36m-linux_x86_64.whl
- âŚ
- wxPython-4.0.3-cp36-cp36m-linux_x86_64.whl
- wxPython-4.0.6-cp36-cp36m-linux_x86_64.whl
- wxPython-4.0.7-cp36-cp36m-linux_x86_64.whl
- wxPython-4.0.7.post1-cp36-cp36m-linux_x86_64.whl
- wxPython-4.0.7.post2-cp36-cp36m-linux_x86_64.whl
- wxPython-4.1.0-cp36-cp36m-linux_x86_64.whl
- wxPython-4.1.0-cp37-cp37m-linux_x86_64.whl
I downloaded them, and tried to compare which version seems to be working.
wxPython-4.0.2 - 4.0.7
when I command, psychopy
similar errors came up like below
ImportError: libpng12.so.0: cannot open shared object file: No such file or directory
libgio-2.0.so.0: undefined symbol: g_unix_get_passwd_entry
However, when I installed the latest version, which is below at a moment,
wxPython-4.1.0-cp37-cp37m-linux_x86_64.whl
errors that sound problems are close to be solved
20:01:11: Debug: Adding duplicate image handler for âWindows bitmap fileâ
20:01:11: Debug: Adding duplicate animation handler for â1â type
20:01:11: Debug: Adding duplicate animation handler for â2â type
20:01:11: Debug: Adding duplicate image handler for âWindows bitmap fileâ
20:01:11: Debug: Adding duplicate animation handler for â1â type
20:01:11: Debug: Adding duplicate animation handler for â2â type
20:01:11: Debug: Adding duplicate image handler for âWindows bitmap fileâ
20:01:11: Debug: Adding duplicate animation handler for â1â type
20:01:11: Debug: Adding duplicate animation handler for â2â type
Then, I used your tricks,
rm /envs/psychopy/lib/gnutls
rm /envs/psychopy/lib/gio
mainly, I used below command within the /envs/psychopy/lib directory
find . -name "*gio*"
find . -name "*gnutls*"
ok, it was little bit overwhelming amounts of files show up
./libgio-2.0.so.0
./libgio-2.0.so
./libgio-2.0.so.0.6400.3
./gstreamer-1.0/libgstgio.so
./python3.6/site-packages/moviepy/video/fx/freeze_region.py
./python3.6/site-packages/moviepy/video/fx/pycache/freeze_region.cpython-36.pyc
./python3.6/site-packages/scipy/optimize/_trustregion_krylov.py
./python3.6/site-packages/scipy/optimize/_trustregion_constr
./python3.6/site-packages/scipy/optimize/_trustregion_constr/minimize_trustregion_constr.py
./python3.6/site-packages/scipy/optimize/_trustregion_constr/pycache/minimize_trustregion_constr.cpython-36.pyc
./python3.6/site-packages/scipy/optimize/_trustregion.py
./python3.6/site-packages/scipy/optimize/_trustregion_dogleg.py
./python3.6/site-packages/scipy/optimize/_trustregion_exact.py
./python3.6/site-packages/scipy/optimize/tests/test_trustregion_exact.py
./python3.6/site-packages/scipy/optimize/tests/test_trustregion_krylov.py
./python3.6/site-packages/scipy/optimize/tests/test_trustregion.py
./python3.6/site-packages/scipy/optimize/tests/pycache/test_trustregion_krylov.cpython-36.pyc
./python3.6/site-packages/scipy/optimize/tests/pycache/test_trustregion_exact.cpython-36.pyc
./python3.6/site-packages/scipy/optimize/tests/pycache/test_trustregion.cpython-36.pyc
./python3.6/site-packages/scipy/optimize/pycache/_trustregion_exact.cpython-36.pyc
./python3.6/site-packages/scipy/optimize/pycache/_trustregion_krylov.cpython-36.pyc
./python3.6/site-packages/scipy/optimize/pycache/_trustregion_dogleg.cpython-36.pyc
./python3.6/site-packages/scipy/optimize/pycache/_trustregion.cpython-36.pyc
./python3.6/site-packages/scipy/optimize/pycache/_trustregion_ncg.cpython-36.pyc
./python3.6/site-packages/scipy/optimize/_trustregion_ncg.py
./python3.6/site-packages/OpenGL/raw/WGL/ARB/buffer_region.py
./python3.6/site-packages/OpenGL/raw/WGL/ARB/pycache/buffer_region.cpython-36.pyc
./python3.6/site-packages/OpenGL/raw/EGL/NOK/swap_region.py
./python3.6/site-packages/OpenGL/raw/EGL/NOK/pycache/swap_region2.cpython-36.pyc
./python3.6/site-packages/OpenGL/raw/EGL/NOK/pycache/swap_region.cpython-36.pyc
./python3.6/site-packages/OpenGL/raw/EGL/NOK/swap_region2.py
./python3.6/site-packages/OpenGL/WGL/ARB/buffer_region.py
./python3.6/site-packages/OpenGL/WGL/ARB/pycache/buffer_region.cpython-36.pyc
./python3.6/site-packages/OpenGL/EGL/NOK/swap_region.py
./python3.6/site-packages/OpenGL/EGL/NOK/pycache/swap_region2.cpython-36.pyc
./python3.6/site-packages/OpenGL/EGL/NOK/pycache/swap_region.cpython-36.pyc
./python3.6/site-packages/OpenGL/EGL/NOK/swap_region2.py
./pkgconfig/gio-2.0.pc
./pkgconfig/gio-unix-2.0.pc
For gio files,
I assumed I should removed files like libgio.xxx , gio.xxx
So, I removed
./libgio-2.0.so.0
./libgio-2.0.so
./libgio-2.0.so.0.6400.3
./pkgconfig/gio-2.0.pc
./pkgconfig/gio-unix-2.0.pc
For gnutls files,
I removed below files, as I assumed
./libgnutlsxx.so.28.1.0
./libgnutls.so.30.14.11
./libgnutlsxx.so
./libgnutls.so.30
./libgnutls.so
./libgnutlsxx.so.28
./libgnutls.la
./pkgconfig/gnutls.pc
./libgnutlsxx.la
Then, I command your instruction, as below,
sudo apt install overlay-scrollbar-gtk2 \
libcanberra-gtk-module \
libatk-adaptor \
libwebkitgtk-1.0-0
Reading package lists⌠Done
Building dependency tree
Reading state information⌠Done
libatk-adaptor is already the newest version (2.26.2-1).
libcanberra-gtk-module is already the newest version (0.30-5ubuntu1).
libwebkitgtk-1.0-0 is already the newest version (2.4.11-3ubuntu3).
overlay-scrollbar-gtk2 is already the newest version (0.2.17.1+16.04.20151117-0ubuntu2).
The following package was automatically installed and is no longer required:
libnvidia-common-440
Use âsudo apt autoremoveâ to remove it.
0 to upgrade, 0 to newly install, 0 to remove and 9 not to upgrade.
It seems like this command is not essential.
I should try to run psychopy and see if this work without the above your instruction.
After all of the above, I run psychopy and I can launch psychopy builder with below message.
19:17:17: Debug: Adding duplicate image handler for âWindows bitmap fileâ
19:17:17: Debug: Adding duplicate image handler for âWindows bitmap fileâ
19:17:17: Debug: Adding duplicate image handler for âWindows bitmap fileâ
What is most important here is that, I can also synch my project through Builder now!
Thank you very much for your helps!!! It worked perfectly!!!
Only one of minor concern I have now, is why it was not essential not needing to remove a file of
./gstreamer-1.0/libgstgio.so
But that is beyond my knowledgeâŚ
Anyway, thank you for your advice!
Best,
H