Howdy, Stranger!

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

Supported by

running from source

Hi all,

Am trying to run opensesame (2.9) from source, have downloaded all the minimally required files (see down), however, it does not work. At the moment I am getting the following error:

these are all the files in the opensesame folder:

Am I missing some simple steps, do I need other versions of the files? Any help would be welcome.

OS: windows 10, 64 bit,

Python - version 2.7.1 (:: Anaconda 2.4.1)
PyGame - via cmd 'pip install pygame', installed when in opensesame folder
PyQt4 - downloaded, all files in opensesame folder
QScintilla2 --> link refers to PyQ4t
QProgEdit --> downloaded 2.0.0 version for 2.9.0 heisenberg release
PyYAML - downloaded, all files in opensesame folder

Comments

  • Hi Roelof,

    The first way to install packages in Anaconda is using the conda install command.
    Some of the dependencies can be found in the CogSci conda channel. So you could install qscintilla2 as follows:

    conda install -c cogsci qscintilla2
    

    The second way to install packages in Anaconda (as in any Python environment) is using pip install. So you could install Expyriment as follows:

    pip install expyriment
    

    The third (and non-preferred) way is by copying the source folder of a Python package to (in this case) the OpenSesame program folder. This works for some packages but you need to do it correctly, such that the package folder is copied (i.e. the folder than contains __init__.py). Your strategy seems to be to copy folders more or less at random :wink: —that doesn't work.

    So what you want to do is:

    • Install all packages with conda or pip;
    • Except QProgEdit, which you need to copy manually as described above.

    An optional third step is rethinking whether you wouldn't rather get the latest version of OpenSesame, which is essentially an Anaconda environment with all dependencies already installed :smiley:

    Cheers,
    Sebastiaan

  • Ah, right that makes sense; I'll give it a shot, thank you for the quick feedback

  • edited January 2017

    for those interested in running "hestitant heisenberg" from source, the following commands seem to work

    conda install -c cogsci qscintilla2
    pip install -i https://pypi.anaconda.org/ales-erjavec/simple pyqt4
    conda install -c anaconda pyyaml=3.12
    conda install -c cogsci pygame
    

    all of these are run in the folder where opensesame is unpacked, and like sebastiaan mentioned the
    QProgEdit (v 2.0.0) has to be copied to this folder manually
    https://github.com/smathot/QProgEdit/releases

    and to run:
    python opensesame

  • edited January 2017

    Hi Roelof,
    I'm just wondering why you install pyqt4 with pip, and not simply with conda. Moreover, since pyqt4 is a dependency of qscintilla2, it should already be installed automatically with the first command. Is there any reason why you explicitly installed it from the external channel?
    Similarly, QProgEdit is also available from conda:

    conda install -c cogsci python-qprogedit
    

    Buy Me A Coffee

  • Yes, that seems a bit strange indeed, what happened if I did not specifically install the Pyqt4 with pip I got the same error as in the original question,
    (no module named PyQt4.4QtCore).
    After I installed it like mentioned it ran, but I am gonna give it another shot with only qscintilla2 and one with the conda install, see if it works

  • Tried to install Qprogedit via command line, but since it only runs with version 2.1.0, it seems easier to copy manually since this 'conda install -c cogsci python-qprogedit=2.1.0' does not seems to work. Also
    'conda install -c anaconda pyqt==4.11.4' does work, but I still get the same error as in the beginning, which only resolved after install via pip, not sure why that is happening, thanks for the all feedback

Sign In or Register to comment.