I just built the kit and im anxious to get the software working. Im using Mac OS X leopard.
upon running python pySIMserial....
$ python pySIMserial.py
File "pySIMserial.py", line 76
s += "/dev/"+f+"\t"
^
IndentationError: expected an indented block
please bear with me, I am not very experienced in python. Is there something obvious that I need to do?
Problems with pySimReader software
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 1
- Joined: Fri Aug 01, 2008 12:28 pm
I'm not sure what this:
if f.find('cu.') == 0: #f begins with "cu."
is supposed to be looking for. Can anyone fill me in?
Anyways, I've replaced it with this:
if f.find('ttyS') == 0 or f.find('ttyUSB') == 0:
and gotten everything to work fine. This should list the serial devices (ttyS0, ttyS1, ...) including any USB to serial converters (ttyUSB0, ttyUSB1, ...). Of course, the ttyUSB* devices will not show up if brltty is running, so uninstall it (unless you need to use a braille terminal).
==EDIT== I see this is OS X specific code. I'll see if I can find a way to determine linux from other posix systems.
if f.find('cu.') == 0: #f begins with "cu."
is supposed to be looking for. Can anyone fill me in?
Anyways, I've replaced it with this:
if f.find('ttyS') == 0 or f.find('ttyUSB') == 0:
and gotten everything to work fine. This should list the serial devices (ttyS0, ttyS1, ...) including any USB to serial converters (ttyUSB0, ttyUSB1, ...). Of course, the ttyUSB* devices will not show up if brltty is running, so uninstall it (unless you need to use a braille terminal).
==EDIT== I see this is OS X specific code. I'll see if I can find a way to determine linux from other posix systems.
Please be positive and constructive with your questions and comments.