Issue using anaconda to run an older version of python for Tobii experiment
Hi all,
I had an experiment in which I wanted to record eye movements with a Tobii eye tracker. To do this, I followed this page (https://osdoc.cogsci.nl/4.0/manual/eyetracking/tobii/) to download OpenSesame through Anaconda using an older version of Python.
This worked well on my older laptop (I did this about 6 or 7 months ago). However, I am trying to do this on a new laptop as that other laptop is very slow. I have installed Anaconda and I believe I have followed the same steps but now when I enter the following into Anaconda prompt (running as administrator):
conda activate opensesame-py3 opensesame
I get the response: 'opensesame is not recognised as an internal or external command, operable program or batch file'. It seems to have installed the opensesame environment correctly and even allowed me to use pip to install the tobii package. But I can't get past this issue and it won't run opensesame.
I don't know if Anaconda has recently updated or if I have done something differently, but does anyone have any pointers? Apologies if this is a simple question/issue I don't have much experience using Anaconda!
Cheers
Matthew
Comments
edit - both PCs are Windows 10
Hi there,
A little update. I managed to get OpenSesame to run. For anyone else who may be doing the same as me, you need to also follow these instructions (https://osdoc.cogsci.nl/4.0/download/) in order to download appropriate packages. Using anaconda I also installed and ran the following code:
Now when I run
in the anaconda prompt it runs Opensesame as expected which is great. However, I now have another issue when I try to run my experiment:
Traceback (most recent call last):
File "C:\ProgramData\anaconda3\envs\opensesame-py3\lib\site-packages\opensesame_extensions\core\preload_items\preload_items.py", line 67, in _on_awake
self._preload_one_item()
File "C:\ProgramData\anaconda3\envs\opensesame-py3\lib\site-packages\opensesame_extensions\core\preload_items\preload_items.py", line 82, in _preload_one_item
item.edit_widget()
File "C:\ProgramData\anaconda3\envs\opensesame-py3\lib\site-packages\libqtopensesame\items\feedpad.py", line 73, in edit_widget
self.sketchpad_widget.draw()
File "C:\ProgramData\anaconda3\envs\opensesame-py3\lib\site-packages\libqtopensesame\widgets\sketchpad_widget.py", line 420, in draw
element.draw()
File "C:\ProgramData\anaconda3\envs\opensesame-py3\lib\site-packages\libqtopensesame\sketchpad_elements\_base_element.py", line 70, in draw
self.graphics_item = super(base_element, self).draw()
File "C:\ProgramData\anaconda3\envs\opensesame-py3\lib\site-packages\libopensesame\sketchpad_elements\_textline.py", line 53, in draw
return self.canvas.text(properties[u'text'],
File "C:\ProgramData\anaconda3\envs\opensesame-py3\lib\site-packages\libqtopensesame\misc\sketchpad_canvas.py", line 623, in text
im = t._to_pil()
File "C:\ProgramData\anaconda3\envs\opensesame-py3\lib\site-packages\openexp\_canvas\_richtext\richtext.py", line 243, in _to_pil
im = self._qimage_to_pil(self._to_qimage())
File "C:\ProgramData\anaconda3\envs\opensesame-py3\lib\site-packages\openexp\_canvas\_richtext\richtext.py", line 223, in _qimage_to_pil
return Image.fromqimage(self._to_qimage())
File "C:\ProgramData\anaconda3\envs\opensesame-py3\lib\site-packages\PIL\Image.py", line 3164, in fromqimage
return ImageQt.fromqimage(im)
File "C:\ProgramData\anaconda3\envs\opensesame-py3\lib\site-packages\PIL\ImageQt.py", line 81, in fromqimage
im.save(buffer, "png")
TypeError: arguments did not match any overloaded call:
save(self, fileName: str, format: typing.Optional[str] = None, quality: int = -1): argument 1 has unexpected type 'QBuffer'
save(self, device: typing.Optional[QIODevice], format: typing.Optional[str] = None, quality: int = -1): argument 1 has unexpected type 'QBuffer'
I have noticed someone else here looks to have a similar problem (https://forum.cogsci.nl/discussion/9299/arguments-did-not-match-any-overloaded-call). Would anyone be able to figure out why this is happening?
Cheers,
Matthew