Active Topics



Thread Tools
cmdowns's Avatar
Posts: 100 | Thanked: 13 times | Joined on Mar 2008
Hello, I trying to run some code in Python to send serial data from my n800 (os2008) through usb using the PySerial module. I downloaded Pyserial from sourceforge, unzipped it to /usr/bin and then ran the setup inside /usr/bin/pyserial2.2 using the command
# sudo python install
Unfortunately, I can't seem to get the module to work. Simply trying to import pyserial from the python prompt gives me the following message:
>>> import serial

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

ImportError: No module named serial
Can anyone tell me what I am doing wrong? Do I need to install the module in a specific place in the directory? And if so, where?

The Following User Says Thank You to cmdowns For This Useful Post:
Bundyo's Avatar
Posts: 4,550 | Thanked: 4,027 times | Joined on Oct 2007 @ Bulgaria
Can't find the module, maybe it didn't install properly.
Posts: 20 | Thanked: 1 time | Joined on Apr 2008
oh comon? anyone? same error here. actually i guess first you need to do: python install
but that gives error that there is no distutils.core
Posts: 1 | Thanked: 0 times | Joined on Apr 2012
hey i instaled the package into lib that helped..... plus inside the pyserial there is a folder serial i copied and pasted tht in lib too....

Thread Tools

Forum Jump

All times are GMT. The time now is 02:19.