OpenSeasame in Anaconda: cannot import name Qsci
Hi,
I am running Ubuntu 17.04 and just installed Anaconda, and then OpenSesame under Anaconda.
When trying to run OpenSesame, I get the following Python error:
Traceback (most recent call last):
File "/home/luke/anaconda2/bin/opensesame", line 25, in
main.opensesame()
File "/home/luke/.local/lib/python2.7/site-packages/libqtopensesame/main.py", line 80, in opensesame
opensesame.resume_init()
File "/home/luke/.local/lib/python2.7/site-packages/libqtopensesame/qtopensesame.py", line 105, in resume_init
from QProgEdit import validate
File "/home/luke/.local/lib/python2.7/site-packages/QProgEdit/init.py", line 69, in
from QProgEdit._quiloader import QUiLoader
File "/home/luke/.local/lib/python2.7/site-packages/QProgEdit/_quiloader.py", line 23, in
from QProgEdit.pyqt5compat import uic
File "/home/luke/.local/lib/python2.7/site-packages/QProgEdit/pyqt5compat.py", line 22, in
from PyQt5 import Qsci
ImportError: cannot import name Qsci
I'm not sure why it's trying to look for a whole bunch of packages outside of /home/luke/anaconda2/bin, even though it's already in my PATH variable. Would anyone know how to fix these path problems?
Thanks!
Luke.
Comments
Hi Luke,
We are having problems composing the qt5 dependencies for OpenSesame on Anaconda. Continuum (the maintainers of Anaconda) are having a hard time maintaining qt5 because Riverbank (the maintainers of Qt5) have dropped support for the compiler Continuum used to build all the Anaconda packages with (see here for a post I did concerning this on their forum). Therefore, the Qt5 version is stuck at 5.6.2 on Anaconda until Continuum figures out their next steps.
There are however a few easy solutions around this:
although I am not sure there wheels for Linux too.
Maybe @smathot is of better help to you here, because he is an avid Ubuntu user too.
Hi Luke,
To me it looks like Anaconda is picking up libraries that you have installed previously with the
pip
that belongs to Ubuntu's default Python environment. You would think that Anaconda ignores those, so this is a bit strange. Have you explicitly set yourPYTHON_PATH
to include/home/luke/.local/lib/python2.7/site-packages/
or something?Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
When I do
echo $PYTHON_PATH
, I don't actually get anything, but when I doecho $PATH
, I get this:My ~/.profile file has this line at the end:
I think that Python looks in
.local/lib/python2.7/site-packages/
by default, even if it's not in the Python path. That would be strange in the case of Anaconda, because it means that Anaconda is not cleanly separated from your regular Python distribution—which is kind of the point.What do you get if you run
python
(the Anaconda one) and enter the code below?PS. The regular
PATH
variable is for locating executables. That doesn't have anything to do with Python.Check out SigmundAI.eu for our OpenSesame AI assistant!
When I load up
python
, I get this output: