-
Hi,
Thanks for the advise, I apologize that the query was not a bug related incident.
System is a GSM manager, a mix of PHP, AJAX and MySQL rather challenging as its a first for myself writing in Python.
Will apply the recommendations.
Cheers,
M.
2010-01-06 17:33:39 UTC by spogs79
-
So you run some sort of web service that uses the serial port? :-)
It looks like the type of the port parameter is wrong. Try it with an explicit "str" to convert the port name. like: "s = serial.Serial(str(info['device']),9600)"
Note that the line shown in the traceback has an extra comma at the end of the line. Not sure if this is intended as "s" would bind to a tuple with one element...
2010-01-06 01:17:07 UTC by cliechti
-
I've spent some time reading the API on MSDN and poking at it in pdb. I'm not well acquainted with C or Windows API debugging, but I am willing to do research, experimentation and testing with some direction.
2010-01-05 16:17:59 UTC by acspike
-
C:\Users\Aaron\Documents\src\trunk\pyserial\test>c:\Python31\python.exe test.py
Traceback (most recent call last):
File "test.py", line 37, in
bytes_0to255 = bytes([range(256)])
TypeError: 'range' object cannot be interpreted as an integer
[range(265)] results in a singleton list of range objects. I'm guessing list(range(256)) was meant but bytes(range(256)) can happi.
2010-01-04 21:22:49 UTC by acspike
-
C:\Users\Aaron\Documents\src\trunk\pyserial\test>c:\Python26\python.exe test.py
Some tests for the serial module.
Part of pyserial (http://pyserial.sf.net) (C)2001-2009 cliechti@gmx.net
Intended to be run on different platforms, to ensure portability of
the code.
For all these tests a simple hardware is required.
Loopback HW adapter:
Shortcut these pin pairs:
TX RX
RTS ...
2010-01-04 21:08:09 UTC by acspike
-
When I do the following:
[code]
s= serial.Serial('/dev/',9600)
# or set a function and pass via command line
s= serial.Serial(arg1,9600)
[/code]
The code executes without any error.
[b]But[/b], when I use AJAX and POST the parameters to the script
[code]
def index(req):
info = req.form
sys.stderr = sys.stdout
s= serial.Serial(info['device'],9600)
[/code]
An...
2010-01-04 20:28:08 UTC by spogs79
-
What can I do to help you troubleshoot this and correct the problem? Can you give me any more detailed pointers?.
2010-01-04 19:46:28 UTC by acspike
-
After a little bit more testing it must be because it was created on a x86 machine.
I created 4 installers using python 2.6 and python 3.1 on x86 and amd64 machines. both x86 installers fail on the 64bit os. Both 64bit installers work on 64bit os. The 64bit installer doesn't run on the 32bit os at all. Perhaps it isn't possible to create a single windows installer even though this is a pure...
2010-01-04 19:44:31 UTC by acspike
-
Hello,
I just tried to run the 2.5-rc2 installer under Windows Vista, but it crashes without error message half-way through. This problem doesn't happen if I right-click on the installer and run it as Administrator.
I think your installer needs to be smarter if it's run by a non-Administrator user, either telling the user to re-run it, or ideally, requesting elevated privilege for the...
2010-01-03 23:54:44 UTC by mjd
-
cliechti made 3 file-release changes.
2010-01-02 20:10:03 UTC by cliechti