473,508 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to install pyparallel


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 message :
import parallel /usr/lib/python2.3/site-packages/parallel/parallelppdev.py:32:
FutureWarning: x<<y losing bits or changing sign will return a long in
Python 2.4 and up IOC_INPUT = (IOC_WRITE | _IOC_READ) << _IOC_DIRSHIFT
....
p=parallel.Parallel()

ppdev0: failed to register device !
....
IOError: [No such device or address]

Some help would be appreciated.

Michel
Jul 18 '05 #1
3 4203
Michel LE VAN KIEM wrote:

I'm trying to install the pyparallel module for my Python 2.3.4 (runs on
a FC3) but I do have some troubles.
>>> p=parallel.Parallel()

ppdev0: failed to register device !
...
IOError: [No such device or address]

Some help would be appreciated.


Did you read the notes in the parallelppydev.py file's
Parallel class? I suspect they may be of some help...

(I don't see any other significant documentation of
pyParallel, so I'm not sure where else one would look
for assistance.)

Also, perhaps one of these threads would be of help:
http://groups.google.ca/groups?q=par...egister+device

-Peter
Jul 18 '05 #2
The ppdev module is loaded and the lp module is unloaded, but I still
have the error message. I used 'lsmod | grep ppdev' to check it.

Is it necessary to plug the parallel cable ?
Peter Hansen a écrit :
Michel LE VAN KIEM wrote:

I'm trying to install the pyparallel module for my Python 2.3.4 (runs
on a FC3) but I do have some troubles.
>>> p=parallel.Parallel()

ppdev0: failed to register device !
...
IOError: [No such device or address]

Some help would be appreciated.

Did you read the notes in the parallelppydev.py file's
Parallel class? I suspect they may be of some help...

(I don't see any other significant documentation of
pyParallel, so I'm not sure where else one would look
for assistance.)

Also, perhaps one of these threads would be of help:
http://groups.google.ca/groups?q=par...egister+device

-Peter

Jul 18 '05 #3
The complete error message is :
import parallel /usr/lib/python2.3/site-packages/parallel/parallelppdev.py:32:
FutureWarning: x<<y losing bits or changing sign will return a long in
Python 2.4 and up IOC_INOUT = (IOC_WRITE | _IOC_READ) << _IOC_DIRSHIFT
/usr/lib/python2.3/site-packages/parallel/parallelppdev.py:33:
FutureWarning: x<<y losing bits or changing sign will return a long in
Python 2.4 and up IOC_OUT = _IOC_READ << _IOC_DIRSHIFT
p=parallel.Parallel()
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/site-packages/parallel/parallelppdev.py", line
176, in __init__ self.PPCLAIM
File "/usr/lib/python2.3/site-packages/parallel/parallelppdev.py", line
203, in PPCLAIM fcntl.ioctl(self._fd, PPCLAIM)
ppdev0: [Errno 6] failed to register device !

Peter Hansen a écrit :
Michel LE VAN KIEM wrote:

I'm trying to install the pyparallel module for my Python 2.3.4 (runs
on a FC3) but I do have some troubles.
>>> p=parallel.Parallel()

ppdev0: failed to register device !
...
IOError: [No such device or address]

Some help would be appreciated.

Did you read the notes in the parallelppydev.py file's
Parallel class? I suspect they may be of some help...

(I don't see any other significant documentation of
pyParallel, so I'm not sure where else one would look
for assistance.)

Also, perhaps one of these threads would be of help:
http://groups.google.ca/groups?q=par...egister+device

-Peter

Jul 18 '05 #4

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

Similar topics

1
2067
by: Brian | last post by:
When using this: import parallel p = parallel.Parallel() #open LPT1 p.setData(0x55) I get this:
0
1471
by: Yun Guan | last post by:
Hello mysql gurus, I am trying to run perl on mysql database on Red Hat box. I want to install DBI and DBD:mysql using CPAN: perl -MCPAN -e shell cpan>install DBI The above succeeded, but...
2
2280
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...
7
4979
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
2
3560
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...
5
7703
by: Ajith Menon | last post by:
I have to install .NET framework 3.0. I already have .NET Framework 1.1 installed on my machine. I don't want to remove framework 1.1 since some of the critical applications are using it. While...
1
3448
by: Sorin Schwimmer | last post by:
Hi All, After a disaster in which I lost my whole harddrive, I decided to install the newest everything that I use. I put the latest Gentoo Linux, with gcc 4.1.1, installed tcl/tk 8.4.14 and...
1
20329
by: =?Utf-8?B?Qi5BaGxzdGVkdA==?= | last post by:
Hi all, This is something that I have been toying with for about a week now. What I want to achieve is Install a Service with Customised parameters (using InstallUtil.exe) for User Name. Example...
3
11352
by: Jean-Marc Blaise | last post by:
Hi, I've been trying for 2 hours to install in silent mode a DB2 9 runtime client. Why didn't you make this process as simple as for the CLIENT install ? It is not the same setup command, you...
0
7223
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
7114
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
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
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7034
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
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
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.