[New-bugs-announce] [issue15312] Serial library not found
Julius
report at bugs.python.org
Tue Jul 10 04:09:51 CEST 2012
New submission from Julius <julius.miller at bravo-zulu.us>:
I'm running ver 2.7 and added the serial library from source forge. here is the error I get:
Traceback (most recent call last):
File "C:\Python27\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript
exec codeObject in __main__.__dict__
File "C:\Documents and Settings\Administrator\My Documents\WTF.py", line 3, in <module>
import serial
ImportError: No module named serial
here is my code:
# Echo client program
import socket
import serial
HOST = '216.240.155.229' # The remote host
PORT = 9090 # The same port as used by the server
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
ser = serial.Serial('USB0', timeout=3)
x = 0
#while x < 5:
while True:
msg = ser.readline()
s.send(msg)
x += 1
s.close()
----------
components: Extension Modules, IDLE, Windows
messages: 165141
nosy: JuliusMiller
priority: normal
severity: normal
status: open
title: Serial library not found
type: resource usage
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15312>
_______________________________________
More information about the New-bugs-announce
mailing list