Python 2.5.1 can't find win32file?

S

samwyse

I just upgraded from 2.4.something to 2.5.1. I get the stuff below.
I tried easy-installing pywin32; same results. Anyone know what's
going on?

Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on win32
Type "copyright", "credits" or "license()" for more information.

****************************************************************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface. This connection is not visible on any external
interface and no data is sent to or received from the Internet.
****************************************************************

IDLE 1.2.1 ==== No Subprocess ====Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import win32file
ImportError: DLL load failed: The specified module could not be found.['C:\\Documents and Settings\\dentos\\Desktop\\scripting', 'C:\
\Python25\\Lib\\idlelib', 'C:\\Python25\\lib\\site-packages\
\setuptools-0.6c6-py2.5.egg', 'C:\\Python25\\lib\\site-packages\
\sqlalchemy-0.3.10-py2.5.egg', 'C:\\Python25\\lib\\site-packages\
\pil-1.1.6-py2.5-win32.egg', 'C:\\Python25\\lib\\site-packages\
\epydoc-3.0beta1-py2.5-win32.egg', 'C:\\Python25\\lib\\site-packages\
\pywin32-210-py2.5-win32.egg', 'C:\\WINNT\\system32\\python25.zip', 'C:
\\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\\Python25\\lib\\plat-win',
'C:\\Python25\\lib\\lib-tk', 'C:\\Python25', 'C:\\Python25\\lib\\site-
packages']
 
S

samwyse

I just upgraded from 2.4.something to 2.5.1. I get the stuff below.
I tried easy-installing pywin32; same results. Anyone know what's
going on?

Interestingly enough, this works:

C:\Python25>path=%path%;C:\Python25\Lib\site-packages\pywin32-210-
py2.5-win32.eg
g\pywin32_system32

C:\Python25>python
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
It looks like the system search path isn't getting updated so that
PYWINTYPES25.DLL can be found when win32file.pyd is loaded.

Anyone have any ideas?
 
J

Jay Loden

samwyse said:
Interestingly enough, this works:

C:\Python25>path=%path%;C:\Python25\Lib\site-packages\pywin32-210-
py2.5-win32.eg
g\pywin32_system32

C:\Python25>python
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
It looks like the system search path isn't getting updated so that
PYWINTYPES25.DLL can be found when win32file.pyd is loaded.

Anyone have any ideas?

If you just want to update your PATH, you can do that from My Computer -> Properties -> Advanced -> Environment Variables and just update PATH for your user (or all users if you prefer).

-Jay
 
S

samwyse

samwyse said:
Interestingly enough, this works:
C:\Python25>path=%path%;C:\Python25\Lib\site-packages\pywin32-210-
py2.5-win32.eg
g\pywin32_system32

C:\Python25>python
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
import win32file
It looks like the system search path isn't getting updated so that
PYWINTYPES25.DLL can be found when win32file.pyd is loaded.
Anyone have any ideas?

If you just want to update your PATH, you can do that from My Computer -> Properties -> Advanced -> Environment Variables and just update PATH for your user (or all users if you prefer).

-Jay

Well, I was hoping for something a bit more general. I'd've thought
that anyone loading a DLL would set the Windows path beforehand, and
that it would all be magically taken care of during the installation.
For now, I'm putting this before my 'import' statement:
os.environ['PATH'] += r';C:\Python25\Lib\site-packages\pywin32-210-
py2.5-win32.egg\pywin32_system32'
 
G

Gabriel Genellina

I just upgraded from 2.4.something to 2.5.1. I get the stuff below.
I tried easy-installing pywin32; same results. Anyone know what's
going on?

Interestingly enough, this works:

C:\Python25>path=%path%;C:\Python25\Lib\site-packages\pywin32-210-
py2.5-win32.eg
g\pywin32_system32

C:\Python25>python
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
It looks like the system search path isn't getting updated so that
PYWINTYPES25.DLL can be found when win32file.pyd is loaded.

I may be wrong, but I think eggs don't support external dlls. I don't use
eggs, and downloading and installing pywin32 has always worked for me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,692
Latest member
JenniferTi

Latest Threads

Top