[pywin32-bugs] [ pywin32-Bugs-1335056 ] ISAPI samples fail to install and remove (XP)
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2005-10-23 11:11:20
|
Bugs item #1335056, was opened at 2005-10-23 05:53 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1335056&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: None Status: Closed Resolution: Fixed Priority: 5 Submitted By: Sergey Chernov (sergeych) Assigned to: Nobody/Anonymous (nobody) Summary: ISAPI samples fail to install and remove (XP) Initial Comment: Trying to install/remove advanced.py and redirector.py provides alike errors: C:\Python24\Lib\site- packages\isapi\samples>advanced.py Configured Virtual Directory: AdvancedPythonSample Traceback (most recent call last): File "C:\Python24\Lib\site- packages\isapi\samples\advanced.py", line 175, in ? custom_arg_handlers = custom_arg_handlers) File "C:\Python24\Lib\site-packages\isapi\install.py", line 556, in HandleCommandLine InstallModule(conf_module_name, params, options) File "C:\Python24\Lib\site-packages\isapi\install.py", line 478, in InstallModule Install(params, options) File "C:\Python24\Lib\site-packages\isapi\install.py", line 390, in Install AddExtensionFiles(params, options) File "C:\Python24\Lib\site-packages\isapi\install.py", line 321, in AddExtensionFiles options) File "C:\Python24\Lib\site-packages\isapi\install.py", line 301, in _AddExtensionFile ob.AddExtensionFile(module, File "C:\Python24\Lib\site- packages\win32com\client\dynamic.py", line 489, in __getattr__ raise AttributeError, "%s.%s" % (self._username_, attr) AttributeError: IIS://LocalHost/W3SVC.AddExtensionFile samples become partial installed, most of its functionality goes well, but advanced.py self-reloading is not working, It is possible to remove ISAPIs using IIS control panel, buth .dlls are still locked (until reboot) and, what's strange, are still workin even when I stop web site. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2005-10-23 21:11 Message: Logged In: YES user_id=14198 Can you please elaborate? How does the filename get a leading \?\ string? What exception do you get without a patch like you describe? I'd also welcome any feedback on the module itself - by email is fine. Cheers, Mark ---------------------------------------------------------------------- Comment By: Sergey Chernov (sergeych) Date: 2005-10-23 19:32 Message: Logged In: YES user_id=834669 thank you! There also should be tiny correction in advanced.py sample to work in the environment to work; after class ReloadWatcherThread(threading.Thread): def __init__(self): self.change_detected = False self.filename = __file__ something like if self.filename[:4] == '\\?\': self.filename = self.filename[4:]; thank you for excellent thing once more :) ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2005-10-23 18:06 Message: Logged In: YES user_id=14198 Yes, this is fixed in CVS - we just print a message and continue. You may like to add an exception handler around the failing call - just catch the attribute error and ignore it (pywin32 will print a message) I hope to get a new pywin32 build out very soon. ---------------------------------------------------------------------- Comment By: Sergey Chernov (sergeych) Date: 2005-10-23 05:58 Message: Logged In: YES user_id=834669 Windows XP professional version 2002 sp 2 (ver returns 5.1.2600), standard IIS from its distribution version 5.1. Python 2.4. Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1335056&group_id=78018 |