psychopy.org | Reference | Downloads | Github

Importing parallel port results in OSError: the modul could not be found


#1

Hello everyone,

When I try to import parallel (from psychopy import parallel) with the standalone Psychopy v1.90.3 (Python 3.6.3) on Win10, I get the following OSError.
Is the error simply telling me that my laptop has no parallel port? For now, I couldn’t test the command on a computer with a parallel port. Or is there some other reason?

Thank you very much for your help!

Traceback (most recent call last):
  File "C:\folder\testfile.py", line 1, in <module>
    from psychopy import parallel
  File "C:\Program Files (x86)\PsychoPy2_PY3\lib\site-packages\psychopy\parallel\__init__.py", line 40, in <module>
    if hasattr(windll, 'inpout32'):
  File "C:\Program Files (x86)\PsychoPy2_PY3\lib\ctypes\__init__.py", line 418, in __getattr__
    dll = self._dlltype(name)
  File "C:\Program Files (x86)\PsychoPy2_PY3\lib\ctypes\__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] Das angegebene Modul wurde nicht gefunden

#2

Look through some similar posts on this forum. In essence, I think you also need to install a parallel port driver (the source of the the inpout32 referred to in your error message), separate to PsychoPy itself.


#3

Thanks a million!