failed to import extension hgext.hgsubversion: 'module' object has no attribute 'canonpath'

Create issue
Issue #416 resolved
marcelloceschia created an issue
*** failed to import extension hgext.hgsubversion: 'module' object has no attribute 'canonpath'
Traceback (most recent call last):
  File "/srv/www/cgi-bin/hgwebdir.cgi", line 47, in <module>

wsgicgi.launch(application)
  File "/usr/lib/python2.7/site-packages/mercurial/hgweb/wsgicgi.py", line 76, in launch

content = application(environ, start_response)
  File "/usr/lib/python2.7/site-packages/mercurial/hgweb/hgwebdir_mod.py", line 153, in __call__

return self.run_wsgi(req)
  File "/usr/lib/python2.7/site-packages/mercurial/hgweb/hgwebdir_mod.py", line 218, in run_wsgi

return hgweb(repo).run_wsgi(req)
  File "/usr/lib/python2.7/site-packages/mercurial/hgweb/hgweb_mod.py", line 140, in run_wsgi

self.refresh(req)
  File "/usr/lib/python2.7/site-packages/mercurial/hgweb/hgweb_mod.py", line 114, in refresh

r = hg.repository(self.repo.baseui, self.repo.root)
  File "/usr/lib/python2.7/site-packages/mercurial/hg.py", line 112, in repository

peer = _peerorrepo(ui, path, create)
  File "/usr/lib/python2.7/site-packages/mercurial/hg.py", line 102, in _peerorrepo

obj = _peerlookup(path).instance(ui, path, create)
  File "/usr/lib/python2.7/site-packages/mercurial/hg.py", line 80, in _peerlookup

return thing(path)
  File "/usr/lib/python2.7/site-packages/hgext/hgsubversion/__init__.py", line 185, in _lookup

if util.islocalrepo(url):
AttributeError
: 
'NoneType' object has no attribute 'islocalrepo'

End of script output before headers: hgwebdir.cgi

Comments (2)

  1. Augie Fackler repo owner

    Version of hg? Version of hgsubversion? Bindings?

    This almost certainly just means you should upgrade both hg and hgsubversion to current versions.

  2. Log in to comment