473,395 Members | 1,462 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

win32file.WaitCommEvent error

jim
Hi, All
I am using python (activestate 2.2.2-224) on XP home and have suddenly got
the
following error from a file which worked fine under millenium.

File "E:\code\Python\PyModbus\FEModbusV101.py", line 162, in ComPortWrite
rc,mask =win32file.WaitCommEvent(self.hComm,self.Overlappe d)
api_error: (87, 'WaitCommError', 'The parameter is incorrect.')

I think the api call requires 3 parameters but only 2 are used in python any
ideas ?

Jim

Jul 18 '05 #1
0 1802

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

Similar topics

0
by: Robert Brewer | last post by:
Still hacking pygarmin (eTrex GPS wrapper). Can anyone help explain the following snippet: def read(self, n): buffer = win32file.AllocateReadBuffer(n) rc, data = win32file.ReadFile(self.f,...
1
by: me | last post by:
Hello python world. Since yesterday I'm using Python 2.4/PythonWin (build 203) on my Win98 system. My problem - that did not occured in the previous version Python 2.3.4/PythonWin (build 163) -...
2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
2
by: Gregory | last post by:
Hi, One of the disadvantages of using error handling with error codes instead of exception handling is that error codes retuned from a function can be forgotten to check thus leading to...
2
by: Luk Vloemans | last post by:
Hey, I'm writing a program which will run on a PDA equipped with a GPS link. I'm trying to read data from the GPS-device, but so far I've been out of luck.. (OS: Windows CE - coding language:...
2
by: Jim | last post by:
I'm not sure how to perform this operation in Python. The difficulty is in knowing the size of the output buffer: if it is too small, I get an "insufficient buffer" exception; too large, and I get...
4
by: jim-on-linux | last post by:
Where can I download win32file / win32ui? The links below are broken. Mark Hammond should be made aware of this. URL below has two links that send you no place...
3
by: Ron Jackson | last post by:
I am using Python 2.5 on Windows XP. I have installed Pyserial and win32all extensions. When I try to run the example program scan.py (included below), or any other program using pyserial, as...
3
by: Arepi | last post by:
Hi! How can I use WaitCommEvent (for COM PORT ) in Perl ? (I downloaded the Win32-SerialPort-0.19 modul from cpan but nothing) Thanks!
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
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
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...

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.