Howdy, Stranger!

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

Supported by

Using .zip download as portable not working

I'm trying to get my experiment to run from a usb to computers that don't have OpenSesame installed. Most of the forum posts I can find on this matter are old but suggest that the .zip download should work as a portable version. However, when I try to run my experiment like that, nothing happens.

Here's what I've done: I've downloaded the .zip file and extracted it to my usb. I also put my experiment on the same usb. Then, when on a computer without OpenSesame installed, I click the opensesame.bat (as I understood, this is what you're supposed to do). It opens a command window for a millisecond and then nothing happens.

I'm probably doing this all wrong - I've never used OpenSesame or a portable program before. Can someone tell me what I'm doing wrong, please?

Thank you!

Comments

  • Hi @lisebrinck ,

    You're not doing anything wrong. Probably, OpenSesame just crashes for some reason, but since the command windows closes so quickly you don't see the error message. If you open opensesame.bat in a text editor (like notepad), and add the following line to the end:

    pause
    

    … then the command window will stay open. Could you post the error message here?

    — Sebastiaan

  • edited December 2020

    Hi @sebastiaan,

    Thank you for your reply!

    This is the error message I'm getting:

    F:\opensesame_3.3.6-py37-win64-2>ECHO Please don't close this window. (Doing so will close OpenSesame.)
    Please don't close this window. (Doing so will close OpenSesame.)
    
    F:\opensesame_3.3.6-py37-win64-2>cd /D F:\opensesame_3.3.6-py37-win64-2\
    
    F:\opensesame_3.3.6-py37-win64-2>python.exe Lib\site-packages\opensesame.py
    Traceback (most recent call last):
     File "F:\opensesame_3.3.6-py37-win64-2\Lib\site-packages\qtpy\__init__.py", line 204, in 
    
  • Hi @lisebrinck ,

    (I accidentally removed part of the error message when formatting your post.)

    The error comes from OpenSesame not being able to find PyQt, which is the library that is used for the user interface. This can be for any number of reasons, but the most likely is that your system has other Python-based software installed that has modified the system paths. One perpetrator that comes to mind is PyCharm. Could it be something like that?

    — Sebastiaan

  • Hi @sebastiaan,

    Thank you so much for the help! I tried removing the program from my usb and installing it again on another computer, and now it works! I have Anaconda installed on this one, so that's probably what messed it up.

    Merry Christmas!

Sign In or Register to comment.