Cannot load module/numpy
OpenSesame version
4.1.8
Operating system
macOS (Intel Chip)
Backend
Expyriment / legacy
Expected behavior
Full-Factorial Design based on pre-specified variables/values
Actual behavior (what goes wrong)
Crashes, with the following error message.
Error messages (if any)
Traceback (most recent call last):
File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.13/site-packages/libqtopensesame/items/loop.py", line 77, in _show_wizard
dm = d.exec_()
File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.13/site-packages/libqtopensesame/dialogs/loop_wizard.py", line 63, in exec_
return operations.fullfactorial(self._dm)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.13/site-packages/datamatrix/operations.py", line 553, in fullfactorial
a = _fullfact(design)
File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.13/site-packages/datamatrix/operations.py", line 988, in _fullfact
import numpy as np
File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.13/site-packages/numpy/__init__.py", line 112, in <module>
from numpy.__config__ import show_config
File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.13/site-packages/numpy/__config__.py", line 4, in <module>
from numpy._core._multiarray_umath import (
...<3 lines>...
)
File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.13/site-packages/numpy/_core/__init__.py", line 24, in <module>
from . import multiarray
File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.13/site-packages/numpy/_core/multiarray.py", line 11, in <module>
from . import _multiarray_umath, overrides
ImportError: cannot load module more than once per process
What did you try already?
1) run
import pip
pip.main(['install', 'numpy', '--upgrade'])
2) complete re-install of OpenSesame 4.1.7
Comments
Hi @LukasKunz,
Have you tried reinstalling Opensesame in a new environment with Conda, or did you install it using the standalone package? You could also try switching the backend to Psycho. Alternatively, if you want a quick workaround, you could create the condition table externally (e.g. in Excel) and paste or import it into the loop without using the full-factorial wizard.
If you still get the error, could you share your experiment file so that I can take a closer look?
Thanks,
Claire
Check out SigmundAI.eu for our OpenSesame AI assistant! 🤖