maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Newbie (https://talk.maemo.org/forumdisplay.php?f=26)
-   -   Installing / Importing Pyserial (https://talk.maemo.org/showthread.php?t=19320)

cmdowns 2008-04-20 04:18

Installing / Importing Pyserial
 
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?

Bundyo 2008-04-20 06:13

Re: Installing / Importing Pyserial
 
Can't find the module, maybe it didn't install properly.

valtersboze 2008-05-20 00:37

Re: Installing / Importing Pyserial
 
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 :(

sana1990 2012-04-08 16:51

Re: Installing / Importing Pyserial
 
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....


All times are GMT. The time now is 07:32.

vBulletin® Version 3.8.8