PyWinTypes15.dll not found
Hi Zopers .. I've installed Zope to start as a service. It seems to work perfectly fine, but I notice messages like the following in the eventlog:: 2000/09/02 10:25:36 Application Popup Information None 26 N/A JEAN Application popup: python.exe - Unable To Locate DLL : The dynamic link library PyWinTypes15.dll could not be found in the specified path C:\programs\ZopeDev\lib\python\Products\LocalFS; .; C:\WINNT\System32; C:\WINNT\system; C:\WINNT; C:\Perl\bin\; C:\WINNT\system32; C:\WINNT; C:\WINNT\System32\Wbem; C:\Program Files\Network Associates\PGPNT; C:\Program Files\Resource Pro Kit\; c:\programs\vim\vim57; C:\programs\NcFTP; c:\cygwin\bin; c:\cygwin\usr\bin. (I broke the path into separate lines for clarity.) Now, when I examine the environment variables thru 'Control Panel|System|Advanced|Environment Variables', Zope does not feature. I also don't notice anything untoward when I examine the registry. The registry entry that starts Zope seems to be:: REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ZopeDev] "Type"=dword:00000010 "Start"=dword:00000002 "ErrorControl"=dword:00000001 "ImagePath"="C:\\Programs\\ZopeDev\\bin\\lib\\win32\\PythonService.exe" "DisplayName"="Zope (ZopeDev)" "ObjectName"="LocalSystem" @="" [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ZopeDev\Parameters] "start"="\"C:\\programs\\ZopeDev\\bin\\python.exe\" \"C:\\programs\\ZopeDev\\z2.py\" -S" [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ZopeDev\PythonClass] @="C:\\programs\\ZopeDev\\ZServer\\ZService.ZServerService" [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ZopeDev\Security] "Security"=hex:01,00,14,80,a0,00,00,00,ac,00,00,00,14,00,00,00,30,00,00,00,0 2,\ 00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\ 00,00,02,00,70,00,04,00,00,00,00,00,18,00,fd,01,02,00,01,01,00,00,00,00,00,\ 05,12,00,00,00,4f,00,47,00,00,00,1c,00,ff,01,0f,00,01,02,00,00,00,00,00,05,\ 20,00,00,00,20,02,00,00,4f,00,4e,00,00,00,18,00,8d,01,02,00,01,01,00,00,00,\ 00,00,05,0b,00,00,00,20,02,00,00,00,00,1c,00,fd,01,02,00,01,02,00,00,00,00,\ 00,05,20,00,00,00,23,02,00,00,4f,00,4e,00,01,01,00,00,00,00,00,05,12,00,00,\ 00,01,01,00,00,00,00,00,05,12,00,00,00 (This also occurs as [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ZopeDev] except that the 'ControlSet001' version has an additional key, 'Enum':: [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ZopeDev\Enum] "0"="Root\\LEGACY_ZOPEDEV\\0000" "Count"=dword:00000001 "NextInstance"=dword:00000001 Now for the questions: - What is the difference between the 'ControlSet002' version and the 'ControlSet001' version? - How and where does 'LocalFS' get into the path? - Why isn't 'C:\programs\ZopeDev\bin\lib\win32\PyWinTypes15.dll' found? - What, for that matter, is the difference between *that* PyWinTypes15 and this one: 'C:\programs\ZopeDev\bin\PyWinTypes15.dll'? Any answers sorely appreciated! Regards, -- Jean Jordaan -- technical writer -- Mosaic Software -- Zope 2.1.6 on WinNT and W2K
This dll exists in in the Zope tree in the directories bin and bin\lib\win32. unfortunately none of these is in the PYTHONPATH. Remedy: copy PyWinTypes15.dll into one of the directories where it searches for ( e.g. in your case C:\programs\ZopeDev\lib\python\Products\LocalFS) or change the start.bat so that PythonPath also points to these directories phil *********** REPLY SEPARATOR *********** On 04.09.2000 at 08:58 Jean Jordaan wrote:
Hi Zopers ..
I've installed Zope to start as a service. It seems to work perfectly fine, but I notice messages like the following in the eventlog::
2000/09/02 10:25:36 Application Popup Information None 26 N/A JEAN Application popup: python.exe - Unable To Locate DLL : The dynamic link library PyWinTypes15.dll could not be found in the specified path C:\programs\ZopeDev\lib\python\Products\LocalFS; .; C:\WINNT\System32; C:\WINNT\system; C:\WINNT; C:\Perl\bin\; C:\WINNT\system32; C:\WINNT; C:\WINNT\System32\Wbem; C:\Program Files\Network Associates\PGPNT; C:\Program Files\Resource Pro Kit\; c:\programs\vim\vim57; C:\programs\NcFTP; c:\cygwin\bin; c:\cygwin\usr\bin.
(I broke the path into separate lines for clarity.) Now, when I examine the environment variables thru 'Control Panel|System|Advanced|Environment Variables', Zope does not feature. I also don't notice anything untoward when I examine the registry. The registry entry that starts Zope seems to be::
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ZopeDev] "Type"=dword:00000010 "Start"=dword:00000002 "ErrorControl"=dword:00000001 "ImagePath"="C:\\Programs\\ZopeDev\\bin\\lib\\win32\\PythonService.exe" "DisplayName"="Zope (ZopeDev)" "ObjectName"="LocalSystem" @=""
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ZopeDev\Parameters] "start"="\"C:\\programs\\ZopeDev\\bin\\python.exe\" \"C:\\programs\\ZopeDev\\z2.py\" -S"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ZopeDev\PythonClass] @="C:\\programs\\ZopeDev\\ZServer\\ZService.ZServerService"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ZopeDev\Security]
"Security"=hex:01,00,14,80,a0,00,00,00,ac,00,00,00,14,00,00,00,30,00,00,00,0 2,\
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
00,00,02,00,70,00,04,00,00,00,00,00,18,00,fd,01,02,00,01,01,00,00,00,00,00,\
05,12,00,00,00,4f,00,47,00,00,00,1c,00,ff,01,0f,00,01,02,00,00,00,00,00,05,\
20,00,00,00,20,02,00,00,4f,00,4e,00,00,00,18,00,8d,01,02,00,01,01,00,00,00,\
00,00,05,0b,00,00,00,20,02,00,00,00,00,1c,00,fd,01,02,00,01,02,00,00,00,00,\
00,05,20,00,00,00,23,02,00,00,4f,00,4e,00,01,01,00,00,00,00,00,05,12,00,00,\ 00,01,01,00,00,00,00,00,05,12,00,00,00
(This also occurs as [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ZopeDev] except that the 'ControlSet001' version has an additional key, 'Enum'::
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ZopeDev\Enum] "0"="Root\\LEGACY_ZOPEDEV\\0000" "Count"=dword:00000001 "NextInstance"=dword:00000001
Now for the questions:
- What is the difference between the 'ControlSet002' version and the 'ControlSet001' version?
- How and where does 'LocalFS' get into the path?
- Why isn't 'C:\programs\ZopeDev\bin\lib\win32\PyWinTypes15.dll' found?
- What, for that matter, is the difference between *that* PyWinTypes15 and this one: 'C:\programs\ZopeDev\bin\PyWinTypes15.dll'?
Any answers sorely appreciated!
Regards, -- Jean Jordaan -- technical writer -- Mosaic Software -- Zope 2.1.6 on WinNT and W2K
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
I had this problem...and the paths reported are a bit spurious if I remember rightly. I think I got complaints about Tk/Tcl, then MTS, then something else. The dialog that popped up is on a remote server, so I had to fix this quickly. To fix it. I reinstalled python (Don't know if I needed to do this) and Tcl/TK (part of the same installer). I don't think you need to do this. Then I copied and pasted the PyWinTypes.dll. Tk80.dll. (Maybe the Msvcrt.dll too) into to the Zope/lib/Python/ folder. If they're already there, copy them into your python DLL folder. OK, I admit it, I sprayed them all over the place, restarted and I've not had any bother since. This problem *may* be caused by the Tcl install, making a mess of the registry. I don't think you need Tcl for zope, so next time I won't install it and see if the same problem happens hope this helps tom
participants (3)
-
Jean Jordaan -
Philipp Auersperg -
tom smith