Closed derNarr closed 1 year ago
Ok, after manually downgrading opensesame to 3.3 and reinstalling pyqode.qt and starting opensesame with OPENSESAME_MULTIPROCESSING_METHOD=fork, opensesame seems to work and starts the default experiment.
(Still within the conda environment created above.)
conda install opensesame=3.3
conda install pyqode.qt
export OPENSESAME_MULTIPROCESSING_METHOD=fork && opensesame
The last line might be needed as I am on a computer with a hybrid intel/NVIDIA graphic chip as describe in Issue #782 .
opensesame starts with the following warning messages:
[2023-05-10 10:52:27,566:theme:63:WARNING] theme 'None' does not exist, using 'default'
[2023-05-10 10:52:28,489:OpenScienceFramework:884:WARNING] Could not parse retrieved OSF settings: Expecting value: line 1 column 1 (char 0)
[2023-05-10 10:52:28,489:OpenScienceFramework:886:WARNING] Using cached OSF settings instead
done!
done!
done!
done!
done!
done!
Ok, hopefully last comment on this issue:
conda install opensesame-extension-osweb --force-reinstall
I can start opensesame normally with:
opensesame
And now I can select the different backends and run the experiment in an external browser.
Two possible things, where I tripped over:
cogsci
conda channel opensesame version 4.0.0a33 is shippedconda-forge
gets the highest priority as it is added. Instead of using --add
, --append
might be the better option, i. e. conda config --append channels cogsci --append channels conda-forge
Should the download documentation be adjusted accordingly?
Good to see that you figured it out! I'm closing this issue because it's not a bug in the OpenSesame source code as such, but rather an installation issue.
in the cogsci conda channel opensesame version 4.0.0a33 is shipped (...) Should the download documentation be adjusted accordingly?
OpenSesame 4.0 will be released soon, so the conda packaging is already tailored towards that release. If you're starting a new project, I would recommend already with the 4.0 prerelease now:
Should I open another issue for the documentation? I feel the following line is missing in the documentation
conda install pyqode.core pyqode.python
conda install ipython jupyter PyQtWebEngine qtconsole wxPython
To me the install commands should read:
conda config --add channels conda-forge --add channels cogsci
conda install pyqode.core pyqode.python
conda install ipython jupyter PyQtWebEngine qtconsole wxPython cython pyglet pyopengl
conda install opensesame opensesame-extension-osweb opensesame-extension-updater opensesame-plugin-psychopy rapunzel pygaze
Following the instructions as mentioned in https://osdoc.cogsci.nl/4.0/download/#anaconda-cross-platform leads to the following error message after running the pip command:
Collecting wxPython>=4.1.1
Downloading wxPython-4.2.0.tar.gz (71.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 71.0/71.0 MB 5.9 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-xt_5wrme/wxpython_3a321aecbaef4c59b28ac8836ba4ad42/setup.py", line 27, in <module>
from buildtools.config import Config, msg, opj, runcmd, canGetSOName, getSOName
File "/tmp/pip-install-xt_5wrme/wxpython_3a321aecbaef4c59b28ac8836ba4ad42/buildtools/config.py", line 30, in <module>
from attrdict import AttrDict
ModuleNotFoundError: No module named 'attrdict'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
I could fix this error by running:
conda install wxPython
which installed wxPython version 4.1.1, which is the minimum at the moment for Psychopy.
Overall, I feel the installation script should pull in more dependencies over conda
and less over pip
, like cython
, pyglet
, pyopengl
.
After installing the pip
dependencies successfully, opensesame does not start up with the following error:
raise QtBindingsNotFoundError from None
qtpy.QtBindingsNotFoundError: No Qt bindings could be found
After installing:
conda install PyQtWebEngine
opsensesame starts up, but throws the following error in the terminal:
ModuleNotFoundError: No module named 'qtconsole'
after installing
conda install qtconsole
Everything seems to work fine, except that starting an experiment runs into an "unknown" error for the psychopy, the pygame, and the xpyriment backend. OSWeb as a backend works.
I am unsure, if the pyqode.qt
package is needed.
In the current state the installation on Debian 11 is broken. It might also be fine do update the dependencies according to the missing packages above. What is the reason to not pull in pyqode....
and the other packages as dependencies for opensesame?
Thanks for this! Indeed the qtconsole
, pyqtwebengine
, and wxpython
packages also needed to be conda-installed. I update the conda installation instructions. If you have further suggestions for the documentations, then it's best to open it on the documentation repo:
Hi all, somehow I cannot install opensesame in a working condition on a debian bulls-eye computer. Any help on installing it is appreciated. I followed the instructions on with some modifications as explained below:
https://osdoc.cogsci.nl/3.3/download/
What I did:
I opted for Python 3.8 as 3.10 seems to give even more errors. Furthermore, I installed some of the packages step by step, as the dependency resolution seems to be better this way.
After installing opensesame this way, starting it, still gives some error messages, which can be removed by installing the following two packages:
When I now start opensesame in this environment, the following results are printed to the terminal:
Still opensesame opens up and I can navigate and click through it. Only, when I try to run the default experiment, I always get the error:
Before the error occurs I put in a subject number and select a file to store the results.
This happens regardless of which backend I use (psycho, xpyriment, legacy, osweb).
Any ideas how to fix this? Best, Tino