Error installing library
Hello,
OK I am trying to install the library shapely on windows through the open sesame interface.
So what I did:
import pip
pip.main(['install', 'shapely'])
And I do not know what happens but I got this error:
Collecting shapely
Using cached https://files.pythonhosted.org/packages/7d/3c/0f09841db07aabf9cc387662be646f181d07ed196e6f60ce8be5f4a8f0bd/Shapely-1.6.4.post1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\user\appdata\local\temp\pip-build-1ybua7\shapely\setup.py", line 80, in <module>
from shapely._buildcfg import geos_version_string, geos_version, \
File "shapely\_buildcfg.py", line 200, in <module>
lgeos = CDLL("geos_c.dll")
File "C:\Program Files (x86)\OpenSesame\lib\ctypes\__init__.py", line 362, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\user\appdata\local\temp\pip-build-1ybua7\shapely\
If anyone can help thanks a lot!
Comments
Hi Sylvain,
This looks like a packaging bug in
shapely. Have you tried installingshapelydirectly from PyPi, instead of through this direct URL?Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hey Sebastian,
Yeah it worked with PyPi but there is something I do not understand.
Is opensesame relying on the Python version and libraries within its own path or within the path of the system? I mean is opensesame like a virtualenv?
I am asking this question because in between another issue appeared, this time on an ubuntu machine.
I installed opensesame everything was working. Then I installed anaconda, modified the path of the system... updated it...
When I open opensesame I see this in the debug windows:

But something that is happening now and did not appear before, when I load an experiment I have briefly this error message:


And when I launch it in quick run, although it seems to work I got these errors message:
So what I think happened it that I modified something wrongly by installing anaconda or modifying the path.
I do not know how to proceed to get back to what I had before if have an idea thank you!
Best,
Sylvain
It depends on how OpenSesame is installed. The Windows and Mac OS packages come with their own Python environment, which is based on Anaconda.
On Ubuntu, OpenSesame is installed into the normal Python environment of the system. This means that it's possible to get incompatibilities if you install other packages, such as through
pip. In your case, you seem to have an incompatible version ofpsychopy, which gives an error. And you don't havefastnumbersinstalled, which just gives a warning.One easy way to check where packages come from is to use the Python package manager in OpenSesame. For example, here you can see that my version of PsychoPy is installed into
.local/lib/meaning that it comes from pip.Python packaging is messy!
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hello,
When I click on Plugin and Extension manager I do not have the same windows as yours. Is it the same thing as the Python package manager? I do not have this.
Oh ok I see well I installed fastnumbers now I do not have the first message anymore.
However I still have the error relative to psychopy. I have the version 1.85.3. Is it non compatible?
Thank you!
Sylvain
Right, it's not installed by default on Ubuntu! (It is on Windows.) You can install it through
pip(usepip3for Python 3):And no, it's different from the plugin and extension manager, which allows you to enable/ disable plugins and extensions, but not manage the Python environment.
It is. Actually, 1.85.3 is the version that is bundled by default with the Windows package of OpenSesame 3.2.4.
The error that you get is quite mysterious, and I suspect that you're not actually running the released version of PsychoPy 1.85.3. You can check this with the Python package manager once you have it installed!
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Oh ok great thanks!
However I uninstalled anaconda and for some reasons it is working again without the errors I got.
Sylvain