<div dir="ltr">thanks elias . my problem solved .<br> i installed pywin32 again but this time got the exact version for python2.6 ( <a href="http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/pywin32-214.win32-py2.6.exe/download" title="/pywin32/Build 214/pywin32-214.win32-py2.6.exe: released on Jul 08 2009" target="_blank">pywin32-214.win32-py2.6.exe</a> ) now every thing is ok . <br>
<br><div class="gmail_quote">On Wed, Jul 29, 2009 at 3:24 PM, Elias Fotinis <span dir="ltr"><<a href="mailto:efotinis@yahoo.com">efotinis@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
First, check if the file ("<PythonDir>\Lib\site-packages\win32\win32file.pyd") really exists. Then check the Python module search path. Put a "print sys.path" before the "import win32file" and check whether it contains the "...site-packages\win32" dir.<br>
<br>
Either pywin32 didn't install properly or some module messes with your sys.path.<br>
<br>
<br>
<br>
----- Original Message ----- From: Iman Darabi<br>
To: <a href="mailto:python-win32@python.org" target="_blank">python-win32@python.org</a><br>
Sent: Wednesday, July 29, 2009 11:52<br>
Subject: [python-win32] ImportError: No module named win32file<div><div></div><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
i'm using pyserial 2.4 to work with some device via serial port . in linux have no prob with that ( because no pywin32 is needed ) but because i should write my program portable on both win and linux so tried to test it in win ... . installed python2.6 and pywin32-214<br>
. but when i try to run my app i get this error :<br>
... "C:\Python26\lib\site-packages\serial\serialwin32.py", line 9, in <module><br>
import win32file<br>
ImportError : No module named win32file<br>
<br>
i tried to search win32file in pywin32 but couldn't find it !<br>
i just copied content of build directory to site-packages ...<br>
does win32file renamed/moved to another module ?<br>
BTW : i'm not so familiar with windows package installations<br>
</blockquote>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>زندگی زنگ تفریحی کوتاه است <br>یادمان باشد زنگ بعد حساب داریم<br><a href="http://twitter.com/imandarabi">http://twitter.com/imandarabi</a><br><a href="http://iman.darabi.googlepages.com/">http://iman.darabi.googlepages.com/</a><br>
</div>