Has anyone gotten pyparallel to work?

B

Brian

When using this:

import parallel
p = parallel.Parallel() #open LPT1
p.setData(0x55)



I get this:

Traceback (most recent call last):
File "port2.py", line 2, in ?
p = parallel.Parallel() #open LPT1
File "/usr/lib/python2.3/site-packages/parallel/parallelppdev.py", line
175, in __init__
self._fd = os.open(self.device, os.O_RDWR)

OSError: [Errno 19] No such device: '/dev/parport0'

Exception exceptions.AttributeError: "Parallel instance has no attribute
'_fd'" in <bound method Parallel.__del__ of
<parallel.parallelppdev.Parallel instance at 0x403d96ac>> ignored



Yet a program I wrote in C has no problem accessing or reading bits from
LPT1. /dev/parport0 exists and is chmoded to 666. Is there some secret to
getting pyparallel to work that I'm missing (besides brains)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,816
Latest member
nipsseyhussle

Latest Threads

Top