Reply
Thread Tools
cmdowns's Avatar
Posts: 100 | Thanked: 12 times | Joined on Mar 2008
#1
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
Code:
# sudo python setup.py 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:
Code:
>>> 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,206 | Thanked: 2,844 times | Joined on Oct 2007 @ Bulgaria
#2
Can't find the module, maybe it didn't install properly.
 
Posts: 20 | Thanked: 1 time | Joined on Apr 2008
#3
oh comon? anyone? same error here. actually i guess first you need to do: python setyp.py install
but that gives error that there is no distutils.core
 
Posts: 1 | Thanked: 0 times | Joined on Apr 2012
#4
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....
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:06.