opensesame not working in ubuntu 16.10 (yakkety)
Hello! I have installed OpenSesame from the ppa (smathot/cogscinl/ubuntu) for yakkety and run into the following problem when I try to launch:
$ opensesame
Traceback (most recent call last):
File "/usr/bin/opensesame", line 25, in <module>
__main__.opensesame()
File "/usr/lib/python2.7/dist-packages/libqtopensesame/__main__.py", line 105, in opensesame
opensesame.resume_init()
File "/usr/lib/python2.7/dist-packages/libqtopensesame/qtopensesame.py", line 105, in resume_init
from QProgEdit import validate
File "/usr/lib/python2.7/dist-packages/QProgEdit/__init__.py", line 69, in <module>
from QProgEdit._quiloader import QUiLoader
File "/usr/lib/python2.7/dist-packages/QProgEdit/_quiloader.py", line 23, in <module>
from QProgEdit.pyqt5compat import uic
File "/usr/lib/python2.7/dist-packages/QProgEdit/pyqt5compat.py", line 22, in <module>
from PyQt5 import Qsci
ImportError: cannot import name Qsci
I've checked and python-pyqt5 python-qscintilla2 and related packages are installed and up to date. Is this maybe a known problem on ubuntu 16.10? I notice that this clean (supposedly fine) installation of 16.10 that there are no shared object files for a Qt5 version of Qsci anywhere in /usr:
find /usr -type f | grep Qsci
./share/opensesame_resources/android/PyQt4/Qsci.py
./lib/python2.7/dist-packages/PyQt4/Qsci.x86_64-linux-gnu.so
./lib/python2.7/dist-packages/PyQt4/Qsci.pyi
Has anyone gotten OpenSesame working on Ubuntu 16.10? Thanks for any help.
Kevin
Comments
Hi Kevin,
What happens is the following: OpenSesame installs all the correct PyQt4 dependencies, but picks PyQt5 if it is available. On your system it is, only it doesn't have QScintilla installed--you only have the PyQt4 version of QScintilla. So you need to install also
python-pyqt5.qsci
, and perhaps also other pyqt5 components if OpenSesame still doesn't work (check the error messages for which ones).Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
thank you! I'm sorry I pestered you instead of figuring out that I just needed this package.
I have the same issue. Have done
but still get
Any ideas?
@earcanal Python 2 and 3 are completely separate environments.
pip3
installs packages for Python 3,pip
for Python 2. So you've installedQScintilla
for Python 3, whereas OpenSesame uses Python 2, as you can tell from the stacktrace.Pro-tip: In Ubuntu, most Python packages are available through the repositories (like QScintilla) or external PPAs (like OpenSesame). Whenever possible, I would use those instead of
pip
.Check out SigmundAI.eu for our OpenSesame AI assistant!
Can you tell from the above errors which packages I need to install? I seem to already have what I thought was QScintilla for Python 2:
See my first reply!
Check out SigmundAI.eu for our OpenSesame AI assistant!
Sorry,
python-pyqt5.qsci
didn't look like a package name, so I thought resolving this was harder than it looked! To be clear, the only thing I needed to do wasThanks for bearing with me ;-)
Hi I'm stuck in the same issue on Ubuntu 18 LTS
I'm unable to install
python-pyqt5.qsci
The error is
`E: Unable to locate package python-pyqt5.qsci`
The debug windows shows the error:
`ImportError: cannot import name 'Qsci' from 'PyQt5'`
and OpenSesame doesn't start
I have installed QScintilla using pip3.
@hah The message
E: Unable to locate package python-pyqt5.qsci
simply means that this package doesn't exist in the repositories. I don't have Ubuntu 18 myself, so it will be tricky to debug this. (Package dependencies can be tricky to resolve, especially if the system isn't clean.) But I would start by removing all OpenSesame-related packages and then installpython3-opensesame
from the CogSci PPA, as described here:If this doesn't work, you can of course also install OpenSesame through Anaconda (also described on the download page).
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!