Problems Ubuntu instalation and opensesame
Hi all
recently I installed Ubuntu 17.04 in my laptop. The ubuntu installation is completely bare. First program that I was installed is opensesame and pip). When I try to run opensesame the following problem launched by opensesame:
_item-stack: ``
exception message: EOF when reading a line
time: Tue May 30 00:55:36 2017
exception type: EOFError
Traceback (also in debug window)
File "/home/hermesh2/.local/lib/python2.7/site-packages/libqtopensesame/misc/process.py", line 140, in run
exp.run()
File "/home/hermesh2/.local/lib/python2.7/site-packages/libopensesame/experiment.py", line 399, in run
self.init_display()
File "/home/hermesh2/.local/lib/python2.7/site-packages/libopensesame/experiment.py", line 749, in init_display
canvas.init_display(self)
File "/home/hermesh2/.local/lib/python2.7/site-packages/openexp/canvas.py", line 65, in init_display
cls.init_display(experiment)
File "/home/hermesh2/.local/lib/python2.7/site-packages/openexp/_canvas/xpyriment.py", line 273, in init_display
exp = control.initialize()
File "/home/hermesh2/.local/lib/python2.7/site-packages/expyriment/control/_experiment_control.py", line 389, in initialize
ans = input(quest + " (Y/n) ").strip().lower()
EOFError: EOF when reading a line_
==========================================================================================
I launched the following instructions. Probably I did something wrong (all code in order to prevent information loss):
1 pip install python-opensesame
2 sudo apt-get install pip
3 pip install -U pip
4 python get-pip.py
5 python
6 sudo apt-get install python-pip python-dev build-essential
7 sudo apt-get update && sudo apt-get -y upgrade
8 pip install python-opensesame
9 pip -v
10 sudo apt-get install python-pip
11 pip -v
12 pip install python-opensesame
13 open sesame
14 sudo add-apt-repository ppa:smathot/cogscinl
15 sudo apt-get update
16 sudo apt-get install opensesame
17 pip install expyriment
18 py[tab][tab]
19 py
20 python
21 type python
22 ll /usr/bin/python
23 history
Comments
Hi,
In principle, just installing OpenSesame from CogSci PPA should be enough! But that doesn't seem to be the problem here. Instead, the problem that you're running into seems to be that expyriment tries to read from the standard input, which doesn't work when it is launched from within OpenSesame. Which version of expyriment do you have installed?
This seems to be new and, to be honest, impolite behavior of expyriment. @fladd Do you known what's happening here?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi there,
@sebastiaan
When Expyriment detects that it is run from an interactive shell (i.e. ipython or IDLE) and that it is set to run in fullscreen mode, it will ask to switch to window mode, in order to stay interactive. This behaviour is neither new, nor impolite in this context (an interactive shell is made for...well...interacting with the user ).
To be more precise, Expyriment checks for the existence of
__IPYTHON__
and"idlelib.run" in sys.modules
, and takes either as an indication of running in an interactive shell.I think the question here is why Expyriment is called from an interactive shell within Open Sesame on this particular installation and not on others?
Hi all and thank you for the answers.
The expryment version is
import expyriment
Expyriment 0.9.0 (Python 2.7.13)
Any instruction or guide about the installation way?
Curiously, one year ago everything worked well. Anyway, I can run the experiment on windows. But I want to solve the problem.
PS: Sorry for the delay I am a partial time researcher
PS2: Thanks again for your time
PS3: I tried run it directly from the shell and doesn't works too.
41 chmod 777 ST_IAT_Facebook_2_English_explicit_rev.osexp
42 ./ST_IAT_Facebook_2_English_explicit_rev.osexp
43 vi ST_IAT_Facebook_2_English_explicit_rev.osexp
44 ./ST_IAT_Facebook_2_English_explicit_rev.osexp
45 ./ST_IAT_Facebook_2_English_explicit_rev2.osexp
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Traceback (most recent call last):
File "/home/hermesh2/.local/lib/python2.7/site-packages/libqtopensesame/widgets/tree_overview.py", line 820, in paintEvent
def paintEvent(self, e):
KeyboardInterrupt
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
@fladd Thanks, that clears things up.
@Hermesh2 How do you launch OpenSesame?
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi @sebastiaan ,
directly from the Ubuntu Desktop
I see. There's clearly a mix-up between the regular OpenSesame installation (from the ppa) and all the things that you've installed through
pip install
. So as a first I would remove all the libraries that you've installed throughpip
, which are installed to[home]/.local/lib/python2.7/site-packages
.Then OpenSesame will at least run as it is intended, and you can see if the problem still persists. Some packages will still need to be (re)installed through
pip
, but then install only those throughpip
—don't indiscriminatelypip install
stuff that was already installed from a repository (which is generally preferable).Check out SigmundAI.eu for our OpenSesame AI assistant!