-
I'm stupid, it's pyserial
(a bit confusing, as the package name is serial)
2009-09-23 19:51:13 UTC in Python Serial Port Extension
-
It seems the package description is broken
$> easy_install-2.6 serial
Searching for serial
Reading http://pypi.python.org/simple/serial/
Couldn't find index page for 'serial' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for serial
error: Could not find suitable distribution...
2009-09-23 19:50:12 UTC in Python Serial Port Extension
-
Using SVN HEAD, Cygiwn 1.5, Python 2.5.2:
The backward compatibility with Python < 2.6 as implemented in serialutil.py does not work
The code line 10 ("bytes") expects an AttributeError exception, while the Python VM raises a NameError.
A quick fix seems to be:
except (AttributeError, NameError):
# ...
HTH
As a side note, with a FTDI 4232 -based serial device - which works...
2009-07-29 16:31:51 UTC in Python Serial Port Extension
-
Ok, great, it works with [242], up to 3Mbps on my machine - thanks a lot.
I've added the following piece of code to enable or not the Darwin hack, depending on the actual pyserial version number. Please, let me know if there is a better way:
{{{
serialclass = serial.Serial
# hack for Mac OS X hosts: the underlying termios system library
# cannot cope with baudrates...
2009-07-24 12:56:53 UTC in Python Serial Port Extension
-
Sorry, I meant:
I've set up a clean Python installation (2.6.2), to be sure that no
previously *installed* modules get in the way.
I may have *forgot* something obvious, but I see no improvement:
2009-07-22 18:20:54 UTC in Python Serial Port Extension
-
> the SVN HEAD already contains code to support non standard baudrate on
> POSIX systems. did you test if that works for you too?
I've set up a clean Python installation (2.6.2), to be sure that no previously modules get in the way.
I may have forget something obvious, but I see no improvement:
# try speed 460800
Traceback (most recent call last):
File "host/bin/neoflasher.py", line...
2009-07-22 18:19:37 UTC in Python Serial Port Extension