[python-win32] ImportError: No module named win32file
Elias Fotinis
efotinis at yahoo.com
Wed Jul 29 14:24:31 CEST 2009
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
More information about the python-win32
mailing list