473,545 Members | 1,638 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.p y: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.Para llel()

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

Some help would be appreciated.

Michel
Jul 18 '05 #1
3 4209
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.Para llel()

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.Para llel()

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.p y: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.p y: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.Para llel()
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/site-packages/parallel/parallelppdev.p y", line
176, in __init__ self.PPCLAIM
File "/usr/lib/python2.3/site-packages/parallel/parallelppdev.p y", line
203, in PPCLAIM fcntl.ioctl(sel f._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.Para llel()

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
2070
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 cpan>install DBD::mysql
2
2287
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 magazine Vol.3 pg 86. All of the examples are in C, VB, Linux, Unix but not a thing in Python. Seems like a perfect application for a Python program or...
7
4983
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. I created the websetup and built the MSI, have the bundled version. Copied to webserver and ran Websetup.msi. Said I had to remove old version,...
2
3564
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 recent call last): File "fg.py", line 30, in ? import dds2 File "dds2.pyc", line 24, in ? WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,...
5
7706
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 installing .NET framework 3.0 I got the error: "Microsoft .NET Framework 3.0 x86 has encountered a problem during setup. Setup did not complete...
1
3449
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 tried Python 2.5. I tried with and without the suggested -fwrapv compiler option, and make gave me the same:
1
20346
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 (C#); public class MyServiceInstaller : System.Configuration.Install.Installer { private System.ServiceProcess.ServiceProcessInstaller...
3
11355
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 can download a setup from the support site, but unfortunately, the setup does not allow you to create a response file. Neither the db2rspgn utility,...
0
7459
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7411
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7749
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
4942
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3444
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3439
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1871
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 we have to send another system
1
1012
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
695
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.