Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial library not found #59517

Closed
JuliusMiller mannequin opened this issue Jul 10, 2012 · 2 comments
Closed

Serial library not found #59517

JuliusMiller mannequin opened this issue Jul 10, 2012 · 2 comments
Assignees
Labels
extension-modules C modules in the Modules dir OS-windows topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@JuliusMiller
Copy link
Mannequin

JuliusMiller mannequin commented Jul 10, 2012

BPO 15312
Nosy @ezio-melotti

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/ezio-melotti'
closed_at = <Date 2012-07-10.02:21:45.083>
created_at = <Date 2012-07-10.02:09:50.500>
labels = ['extension-modules', 'expert-IDLE', 'type-bug', 'invalid', 'OS-windows']
title = 'Serial library not found'
updated_at = <Date 2012-07-10.02:21:45.070>
user = 'https://bugs.python.org/JuliusMiller'

bugs.python.org fields:

activity = <Date 2012-07-10.02:21:45.070>
actor = 'ezio.melotti'
assignee = 'ezio.melotti'
closed = True
closed_date = <Date 2012-07-10.02:21:45.083>
closer = 'ezio.melotti'
components = ['Extension Modules', 'IDLE', 'Windows']
creation = <Date 2012-07-10.02:09:50.500>
creator = 'JuliusMiller'
dependencies = []
files = []
hgrepos = []
issue_num = 15312
keywords = []
message_count = 2.0
messages = ['165141', '165144']
nosy_count = 2.0
nosy_names = ['ezio.melotti', 'JuliusMiller']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue15312'
versions = ['Python 2.7']

@JuliusMiller
Copy link
Mannequin Author

JuliusMiller mannequin commented Jul 10, 2012

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()

@JuliusMiller JuliusMiller mannequin added performance Performance or resource usage extension-modules C modules in the Modules dir topic-IDLE OS-windows labels Jul 10, 2012
@ezio-melotti
Copy link
Member

This bug tracker is for reporting CPython bugs, so it's not the right place where to ask this kind of questions.
Anyway make sure that the "serial" module is in a directory that Python can see, e.g. the same dir where you have your script.

@ezio-melotti ezio-melotti self-assigned this Jul 10, 2012
@ezio-melotti ezio-melotti added type-bug An unexpected behavior, bug, or error and removed performance Performance or resource usage labels Jul 10, 2012
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension-modules C modules in the Modules dir OS-windows topic-IDLE type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant