Getting the file or directory/dev/parport0 in python

Asked By 370 points N/A Posted on -
qa-featured

Hi everyone,

I hope there are python gurus here. I am learning python, still new to the field. I would like to control the parallel port. It was quite easy controlling the parallel port using MS QBasic. It’s a challenge to do it using python. I am having a difficult time learning python, but with time i can do better. Recently i found an application called pyparallel. I installed it successfully and later tried it out.

It suggested testing with, >>>import parallel >>>p = parallel.Parallel() #opens lpt1 >>>p.setData(0x55) I tried this out. The import parallel worked well but the p {parallel.Parallel()} gave an error message; File "usr / lib/ python2.4 / sitepackages / parallel / parallelppdev.py", line 174 in __init__ self._fd = os. Open (self.device, os.0_RDWR) OSError: [errno 2] No such file or directory: ' / dev/ parport0'.

What is the process of the file or directory / dev/ parport0? I have tried it like the whole week without access. If anyone can tell me where and how to access the best tutorials for this, and python in general, i would appreciate.

Thanks for reading my question.

SHARE
Best Answer by Balram
Best Answer
Best Answer
Answered By 0 points N/A #107696

Getting the file or directory/dev/parport0 in python

qa-featured

The QB64 compiler project updates once again by releasing QB64 V0.84.  This is a major update as it fixes a critical IDE memory issue, several bugs, and adds even more Qbasic compatibility.  This is a Windows only release.  The next Linux version is not expected until the V0.841 update planned 3 weeks from now. 

QB64 is currently a one-man project, by Galleon, aimed at making a Qbasic compatible compiler that will produce EXE's which will run perfectly on modern computers.  It comes with a '…

Related Questions