Hello John,<br><br><div class="gmail_quote">On 30 November 2010 16:57, John Smith <span dir="ltr"><<a href="mailto:jocjo.s@verizon.net">jocjo.s@verizon.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi, Walter -<br>
<br>
I did the above and then got this:<br>
<br>
>>> import serial<div class="im"><br>
<br>
Traceback (most recent call last):<br></div>
File "<pyshell#0>", line 1, in <module><br>
import serial<br>
File "E:\Python27\lib\site-packages\serial\__init__.py", line 18, in <module><br>
from serialwin32 import *<br>
File "E:\Python27\lib\site-packages\serial\serialwin32.py", line 9, in <module><br>
import win32file # The base COM port and file IO functions.<br>
ImportError: No module named win32file<br>
>>><br>
<br>
I guess that file was included in 2.5 but not in 2.4?<br></blockquote></div><br>Apparently so. Well, win32file is part of the PyWin32 package, which are a set of modules that wrap many Windows API's. I'm not sure why it was't/isn't required for PySerial 2.5 or whether as you say perhaps this module is included in PySerial2.5 and isn't in 2.4. <br>
<br>But whatever the case may be, suffice it to say I've reproduced your issue on my Win7 64bit box, and then resolved it by installing the PyWin32 modules. It's probably a good idea to install this package anyway -- if you're working on Windows the PyWin32 modules are very useful - they basically wrap and makes available a shedload of Windows specific API's to Python. (Many people working with Python on Windows almost automatically would install this, it's also why i didn't run into this issue in the first place as I already had PyWin32 installed prior to testing my suggestion. Sorry.)<br>
<br>Anyway. To download and install PyWin32, go here: <a href="http://ur.ly/vLwv">http://ur.ly/vLwv</a><br><br>Presumably you want the AMD64 (64 bit) Py2.7 version. Install it then try your test again. <br><br>Fingers crossed. ;)<br>
<br>Walter<br>