Python Access Parallel Port
Question: I've been trying to access the parallel port with pyParallel, which is in the
same sourceforge as PySerial:

<http://sourceforge.net/projects/pyserial/files/>

I'm getting a WidowsError: exception: priviledged instruciton. Has anyone used
this module before?

    
    
    import parallel 
    p = parallel.Parallel()
    Traceback (most recent call last):
      File "<interactive input>", line 1, in <module>
      File "C:\Python26\lib\site-packages\parallel\parallelwin32.py", line 74, in __init__
        self.ctrlReg = _pyparallel.inp(self.ctrlRegAdr)
    WindowsError: exception: priviledged instruction
    


Answer: Yep -- as I pondered in my comment, it's all about better sandboxing in
today's Windows versions -- there's a discussion [here](http://forums.bit-
tech.net/showthread.php?t=150570). There's also a possible solution
[here](http://logix4u.net/Legacy_Ports/Parallel_Port/Inpout32.dll_for_Windows_98/2000/NT/XP.html)
(at least up to XP, you'll need to try it if you have a newer Windows version)
with a Python example [here](http://logix4u.net/inpout32py.zip). I can't try
it out since I don't have any Windows around, but I hope it can help!

