Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Error installing library

edited June 2018 in OpenSesame

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 installing shapely directly from PyPi, instead of through this direct URL?

    Cheers,
    Sebastiaan

  • 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

  • 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?

    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 of psychopy, which gives an error. And you don't have fastnumbers installed, 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

  • 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

  • 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.

    Right, it's not installed by default on Ubuntu! (It is on Windows.) You can install it through pip (use pip3 for Python 3):

    pip install python-qtpip
    

    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.

    However I still have the error relative to psychopy. I have the version 1.85.3. Is it non compatible?

    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

  • Oh ok great thanks!
    However I uninstalled anaconda and for some reasons it is working again without the errors I got.

    Sylvain

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games