[issue3337] mercurial 2.1.1 not work as wsgi using isapi-wsgi in iis
Victor Bolshakov
bugs at mercurial.selenic.com
Tue Mar 27 07:55:07 CDT 2012
New submission from Victor Bolshakov <vbolshakov at gmail.com>:
Unable to run latest stable mercurial as wsgi using isapi-wsgi in iis.
I try to run both bin and pure version using 32bit and 64bit python on
windows server 2008 r2.
Using binary build i got:
Internal Extension Error: Failed to import callback module 'hgwebdir_wsgi'
Last Windows error: The specified module could not be found.
Traceback (most recent call last):
File "D:\Test\examples\hgwebdir_wsgi.py", line 73, in <module>
application = hgwebdir(hgweb_config)
File
"C:\Applications\Python27\lib\site-packages\mercurial\hgweb\hgwebdir_mod.py", line
89, in __init__
self.refresh()
File
"C:\Applications\Python27\lib\site-packages\mercurial\hgweb\hgwebdir_mod.py", line
98, in refresh
u = ui.ui()
File "C:\Applications\Python27\lib\site-packages\mercurial\ui.py", line
43, in __init__
for f in scmutil.rcpath():
File
"C:\Applications\Python27\lib\site-packages\mercurial\demandimport.py", line
86, in __getattribute__
self._load()
File
"C:\Applications\Python27\lib\site-packages\mercurial\demandimport.py", line
58, in _load
mod = _origimport(head, globals, locals)
File "C:\Applications\Python27\lib\site-packages\mercurial\scmutil.py",
line 183, in <module>
class opener(abstractopener):
File "C:\Applications\Python27\lib\site-packages\mercurial\scmutil.py",
line 199, in opener
@util.propertycache
File
"C:\Applications\Python27\lib\site-packages\mercurial\demandimport.py", line
86, in __getattribute__
self._load()
File
"C:\Applications\Python27\lib\site-packages\mercurial\demandimport.py", line
58, in _load
mod = _origimport(head, globals, locals)
File "C:\Applications\Python27\lib\site-packages\mercurial\util.py", line
27, in <module>
platform.encodinglower = encoding.lower
File
"C:\Applications\Python27\lib\site-packages\mercurial\demandimport.py", line
89, in __setattr__
self._load()
File
"C:\Applications\Python27\lib\site-packages\mercurial\demandimport.py", line
58, in _load
mod = _origimport(head, globals, locals)
File "C:\Applications\Python27\lib\site-packages\mercurial\windows.py",
line 37, in <module>
posixfile.__doc__ = osutil.posixfile.__doc__
File
"C:\Applications\Python27\lib\site-packages\mercurial\demandimport.py", line
86, in __getattribute__
self._load()
File
"C:\Applications\Python27\lib\site-packages\mercurial\demandimport.py", line
58, in _load
mod = _origimport(head, globals, locals)
ImportError: DLL load failed: The specified module could not be found.
Using pure build:
Internal Extension Error: Failed to import callback module 'hgwebdir_wsgi'
Last Windows error: The specified module could not be found.
Traceback (most recent call last):
File "D:\Test\examples\hgwebdir_wsgi.py", line 73, in <module>
application = hgwebdir(hgweb_config)
File
"C:\Applications\Python27\lib\site-packages\mercurial\hgweb\hgwebdir_mod.py", line
89, in __init__
self.refresh()
File
"C:\Applications\Python27\lib\site-packages\mercurial\hgweb\hgwebdir_mod.py", line
98, in refresh
u = ui.ui()
File "C:\Applications\Python27\lib\site-packages\mercurial\ui.py", line
43, in __init__
for f in scmutil.rcpath():
File
"C:\Applications\Python27\lib\site-packages\mercurial\demandimport.py", line
86, in __getattribute__
self._load()
File
"C:\Applications\Python27\lib\site-packages\mercurial\demandimport.py", line
58, in _load
mod = _origimport(head, globals, locals)
File "C:\Applications\Python27\lib\site-packages\mercurial\scmutil.py",
line 183, in <module>
class opener(abstractopener):
File "C:\Applications\Python27\lib\site-packages\mercurial\scmutil.py",
line 199, in opener
@util.propertycache
File
"C:\Applications\Python27\lib\site-packages\mercurial\demandimport.py", line
86, in __getattribute__
self._load()
File
"C:\Applications\Python27\lib\site-packages\mercurial\demandimport.py", line
58, in _load
mod = _origimport(head, globals, locals)
File "C:\Applications\Python27\lib\site-packages\mercurial\util.py", line
27, in <module>
platform.encodinglower = encoding.lower
File
"C:\Applications\Python27\lib\site-packages\mercurial\demandimport.py", line
89, in __setattr__
self._load()
File
"C:\Applications\Python27\lib\site-packages\mercurial\demandimport.py", line
58, in _load
mod = _origimport(head, globals, locals)
File "C:\Applications\Python27\lib\site-packages\mercurial\windows.py",
line 37, in <module>
posixfile.__doc__ = osutil.posixfile.__doc__
File
"C:\Applications\Python27\lib\site-packages\mercurial\demandimport.py", line
86, in __getattribute__
self._load()
File
"C:\Applications\Python27\lib\site-packages\mercurial\demandimport.py", line
58, in _load
mod = _origimport(head, globals, locals)
File "C:\Applications\Python27\lib\site-packages\mercurial\osutil.py",
line 78, in <module>
_crt = ctypes.PyDLL(_crtname())
File "C:\Applications\Python27\Lib\ctypes\__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found
For example i successfully run trac as wsgi using isapi-wsgi with 64bit python.
----------
messages: 19457
nosy: vbolshakov at gmail.com
priority: bug
status: unread
title: mercurial 2.1.1 not work as wsgi using isapi-wsgi in iis
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3337>
____________________________________________________
More information about the Mercurial-devel
mailing list