0

I am using python in win32 enviornment.i wanna add extra library for using serial port.So i have downloaded the lib for windows env.
The package is installing fine.But when ever i import serial following error i get.Can anyone please help me out...

>>> import serial

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in -toplevel-
    import serial
  File "C:\Python24\serial\__init__.py", line 19, in -toplevel-
    from serialwin32 import *
  File "C:\Python24\serial\serialwin32.py", line 11, in -toplevel-
    import ctypes
ImportError: No module named ctypes
>>>
2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by debasishgang7
1

Module ctypes is new in python 2.5. I suggest that you uninstall python 2.4 and upgrade to python 2.7, then reinstall serial.

Edited by Gribouillis: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.