Hello,
I’m trying to set up psychopy on a new computer (I’ve successfully ran it on an old computer).
However I’m getting an error when trying " from psychopy import event". (I’ll copy the error below). I do not get an error when importing from psychopy gui/corer/data…
My software and hardware:
I am working with pycharm projects. I created a conda environment with a 3.10 python interpreter (tried 3.9 as well), and then installed psychopy using pip.
The computer is a PC. windows 11, Nvidia GEFORCE card. I tried both an intel and nvidia graphics drivers.
I’m not sure what else to try or what really the issue is and any help would be appreciated!!
the error is the following:
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2024.1.3\plugins\python\helpers\pydev\pydevconsole.py", line 364, in runcode
coro = func()
File "<input>", line 1, in <module>
File "C:\Program Files\JetBrains\PyCharm 2024.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Users\shaib\anaconda3\envs\flavors\lib\site-packages\psychopy\event.py", line 65, in <module>
from psychopy.tools.monitorunittools import cm2pix, deg2pix, pix2cm, pix2deg
File "C:\Program Files\JetBrains\PyCharm 2024.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Users\shaib\anaconda3\envs\flavors\lib\site-packages\psychopy\tools\monitorunittools.py", line 11, in <module>
from psychopy import monitors
File "C:\Program Files\JetBrains\PyCharm 2024.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Users\shaib\anaconda3\envs\flavors\lib\site-packages\psychopy\monitors\__init__.py", line 8, in <module>
from .calibTools import *
File "C:\Program Files\JetBrains\PyCharm 2024.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Users\shaib\anaconda3\envs\flavors\lib\site-packages\psychopy\monitors\calibTools.py", line 27, in <module>
from scipy import interpolate
File "C:\Program Files\JetBrains\PyCharm 2024.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "<frozen importlib._bootstrap>", line 1055, in _handle_fromlist
File "C:\Users\shaib\anaconda3\envs\flavors\lib\site-packages\scipy\__init__.py", line 162, in __getattr__
return _importlib.import_module(f'scipy.{name}')
File "C:\Users\shaib\anaconda3\envs\flavors\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\shaib\anaconda3\envs\flavors\lib\site-packages\scipy\interpolate\__init__.py", line 167, in <module>
from ._interpolate import *
File "C:\Program Files\JetBrains\PyCharm 2024.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Users\shaib\anaconda3\envs\flavors\lib\site-packages\scipy\interpolate\_interpolate.py", line 14, in <module>
from . import _fitpack_py
File "C:\Program Files\JetBrains\PyCharm 2024.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Users\shaib\anaconda3\envs\flavors\lib\site-packages\scipy\interpolate\_fitpack_py.py", line 8, in <module>
from ._fitpack_impl import bisplrep, bisplev, dblint # noqa: F401
File "C:\Program Files\JetBrains\PyCharm 2024.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Users\shaib\anaconda3\envs\flavors\lib\site-packages\scipy\interpolate\_fitpack_impl.py", line 103, in <module>
'iwrk': array([], dfitpack_int), 'u': array([], float),
TypeError