[python-win32] ImportError: No module named win32file

Iman Darabi iman.darabi at gmail.com
Thu Jul 30 09:11:46 CEST 2009


thanks elias . my problem solved .
 i installed pywin32 again but this time got the exact version for python2.6
( pywin32-214.win32-py2.6.exe<http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/pywin32-214.win32-py2.6.exe/download>)
now every thing is ok .

On Wed, Jul 29, 2009 at 3:24 PM, Elias Fotinis <efotinis at yahoo.com> wrote:

> 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.
>
> Either pywin32 didn't install properly or some module messes with your
> sys.path.
>
>
>
> ----- Original Message ----- From: Iman Darabi
> To: python-win32 at python.org
> Sent: Wednesday, July 29, 2009 11:52
> Subject: [python-win32] ImportError: No module named win32file
>
>
>  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
>> . but when i try to run my app i get this error :
>> ...  "C:\Python26\lib\site-packages\serial\serialwin32.py", line 9, in
>> <module>
>>   import win32file
>> ImportError : No module named win32file
>>
>> i tried to search win32file in pywin32 but couldn't find it !
>> i just copied content of build directory to site-packages ...
>> does win32file renamed/moved to another module ?
>> BTW : i'm not so familiar with windows package installations
>>
>
>
>


-- 
زندگی زنگ تفریحی کوتاه است
یادمان باشد زنگ بعد حساب داریم
http://twitter.com/imandarabi
http://iman.darabi.googlepages.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20090730/d2f21ee9/attachment-0001.htm>


More information about the python-win32 mailing list