Hello,
this is on Windows 10 64bit. I try to read from the parallel port. That worked with PsychoPy2 but
today I tried to run a v1.84 program with Psychopy 3.0.7 and 3.1.5 with no luck. The code is as follows:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pyglet.gl import gl_info, GLint, glGetIntegerv, GL_MAX_ELEMENTS_VERTICES
from psychopy import visual, preferences
from ctypes import windll
from psychopy import parallel
import sys, platform
port = parallel.ParallelPort(address=0x0378)
alt = windll.inpout32.Inp32(0x037a)
neu = alt | 0x20
windll.inpout32.Out32(0x037a, neu)
DONE = False
Taste_old = 255
while not DONE:
taste = port.readData()
if taste != Taste_old:
print( taste )
Taste_old = taste
if taste == 31:
DONE = True
I receive the following error message:
1.6850 WARNING psychopy.parallel has been imported but no parallel port driver found. Install either inpout32, inpoutx64 or dlportio
Traceback (most recent call last):
File "D:\users\sven\ownCloud\PsychoPy3\pportversuche.py", line 17, in <module>
port = parallel.ParallelPort(address=0x0378)
TypeError: 'NoneType' object is not callable
I know for sure that a parallel port driver is installed since I can communicate with the port with the help of a little C-program I wrote for testing (some years ago Any idea why PsychoPy3 thinks the driver is not installed?
Thanks in advance,
Sven