pywin32 201.1 Windows98SE Problem?

B

Bob Chapman

On two different Windows 98SE Systems, I have attempted to upgrade working
Python 2.3.3 and win32all installations to Python 2.3.4. After what
appeared to be successful installations of Python-2.3.4.exe, I next
executed:
> pywin32-201.win32-py2.3.exe

as downloaded from SourceForge, in the belief that it was the appropriate
companion for Python-2.3.4 (perhaps this is my mistake?). In both cases,
the installed Pythonwin outputs the following error messages and does NOT
run:
> File
>"C:\PYTHON23\Lib\site-packages\pythonwin\pywin\framework\intpyapp.py", line
>163, in InitInstance
> import interact
> File
>"C:\PYTHON23\Lib\site-packages\pythonwin\pywin\framework\interact.py", line
>26, in ?
> import winout
> File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\framework\winout.py",
>line 26, in ?
> from pywintypes import UnicodeType
> File "C:\PYTHON23\Lib\site-packages\win32\lib\pywintypes.py", line 69, in
>?
> __import_pywin32_system_module__("pywintypes", globals())
> File "C:\PYTHON23\Lib\site-packages\win32\lib\pywintypes.py", line 62, in
>__import_pywin32_system_module__
> raise ImportError, "Can not locate " + filename
>exceptions.ImportError: Can not locate pywintypes23.dll

On checking, the NEW 'pywintypes23.dll' IS in c:\windows\system
> 77824 May 28 11:10 c:\windows\system\pywintypes23.dll

If this file is copied to C:\Windows then Pythonwin starts without the error
messages and appears to work.

In previous Windows 98SE installations, the pythonwin dlls have worked OK
from
c:\windows\system where they are installed so I don't understand what's
happening here?

(Note: I've installed Python-2.3.4.exe and pywin32-201.win32-py2.3.exe on a
Windows XP sytem without this problem.)

--
 
P

Peter Hansen

Bob said:
On two different Windows 98SE Systems, I have attempted to upgrade working [...]
__import_pywin32_system_module__
raise ImportError, "Can not locate " + filename
exceptions.ImportError: Can not locate pywintypes23.dll

On checking, the NEW 'pywintypes23.dll' IS in c:\windows\system
77824 May 28 11:10 c:\windows\system\pywintypes23.dll

If this file is copied to C:\Windows then Pythonwin starts without the error
messages and appears to work.

What happens if you run Python from the command line and type
"import pywintypes"? In other words, is this a problem with
the Python installation or a problem with the pywin32 installation?
You should learn the answer as a result...

-Peter
 
B

Bob Chapman

Bob Chapman said:
Roger Upole said:
One workaround is to copy pywintypes23.dll to your \windows directory.
http://sourceforge.net/tracker/index.php?func=detail&aid=917702&group_id=780
18&atid=551954

Roger

That's what I did but I was curious why this is required. Up to, at least,
Build 163, win32all was able to start under Windows 98SE with
pywintypes23.dll located in c:\windows\system (where it is installed). And,
as previously mentioned, this work around is not required under Windows
XP -- go figure.

--
 
B

Bob Chapman

Peter Hansen said:
Bob said:
On two different Windows 98SE Systems, I have attempted to upgrade
working
[...]
__import_pywin32_system_module__
raise ImportError, "Can not locate " + filename
exceptions.ImportError: Can not locate pywintypes23.dll

On checking, the NEW 'pywintypes23.dll' IS in c:\windows\system
77824 May 28 11:10 c:\windows\system\pywintypes23.dll

If this file is copied to C:\Windows then Pythonwin starts without the error
messages and appears to work.

What happens if you run Python from the command line and type
"import pywintypes"? In other words, is this a problem with
the Python installation or a problem with the pywin32 installation?
You should learn the answer as a result...

-Peter

Thanks for the suggestion. Will try tomorrow when I have access to one of
the two systems.

--
 

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

Forum statistics

Threads
473,744
Messages
2,569,480
Members
44,900
Latest member
Nell636132

Latest Threads

Top