473,473 Members | 1,511 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Has anyone gotten pyparallel to work?

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)?
Jul 18 '05 #1
1 2060
Nevermind. It was easier to swig parapin and use that instead.

Brian <Th*************@ddress.com> wrote in
news:Xn*************************@24.93.43.121:
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)?


Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: j_mckitrick | last post by:
I've been looking all over for this solution, but I cannot find it. I cannot get even the simple demos for BLT to work. At the first use of any Pmw.Blt.* call, I get this error: ...
3
by: Michel LE VAN KIEM | last post by:
Hi everybody ! I'm trying to install the pyparallel module for my Python 2.3.4 (runs on a FC3) but I do have some troubles. When I import the parallel module, python shows the following...
5
by: Clifford W. Racz | last post by:
Has anyone solved the issue of translating lists in Word 2003 (WordML) into xHTML? I have been trying to get the nested table code for my XSLT to work for a while now, with no way to get the...
2
by: Richard Siderits | last post by:
Greetings. I am trying to write a small application for controlling CRYDOM AC and DC switches from the parallel port using pyparallel. The project is described in the latest issue of MAKE...
9
by: MLH | last post by:
Microsoft Office Professional Edition 2003 - Retail I've seen the above product advertised for $380. Are there enough developers world wide to make microsoft the following offer... If they...
10
by: Tommy Vercetti | last post by:
With Visual Studio .NET 2003, I create a new project -> C++ -> Class library (.NET). The instant I include a C++ header file such as: #include <string> or any other standard C++ header I...
2
by: garyr | last post by:
I'm using py2exe to create a standalone program that uses pyparallel. When I run the created program an error occurs and a message directs me to the log file which contains: Traceback (most...
0
by: juncus | last post by:
Hi, Perhaps this is not the right forum to post this, but I am having trouble installing pyParallel. When I try to do the usual "python setup.py build" or "python setup.py install", I get the...
5
by: RSL101 | last post by:
Dear DBAs. I am wondering if anyone gotten good results leaving the, Monitor health of instance and databases (HEALTH_MON) = ON I find the default ON setting causes more problem than its...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.