Edgewall Software

Opened 12 years ago

Last modified 12 years ago

#10851 closed defect

Mercurial 2.3.1 seems to be broken with trac 1.0 — at Initial Version

Reported by: anonymous Owned by:
Priority: high Milestone: plugin - mercurial
Component: plugin/mercurial Version: 1.0
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I used mercurial all the time with trac 0.12 and it worked.

I updated from trac 0.12 to trac 1.0 the last days.

Unfortunately I didnt realise the exact moment when the repository browser did stop to work.

In the trac log I see:

2012-09-12 15:31:46,782 Trac[loader] ERROR: Skipping "trac.mimeview.rst = trac.mimeview.rst [rest]": 
Traceback (most recent call last):
  File "d:\Programme\python27\lib\site-packages\trac-1.0-py2.7.egg\trac\loader.py", line 68, in _load_eggs
    entry.load(require=True)
  File "d:\Programme\python27\lib\site-packages\distribute-0.6.28-py2.7.egg\pkg_resources.py", line 2017, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "d:\Programme\python27\lib\site-packages\mercurial\demandimport.py", line 114, in _demandimport
    mod = _origimport(name, globals, locals)
  File "d:\Programme\python27\lib\site-packages\trac-1.0-py2.7.egg\trac\mimeview\rst.py", line 157, in <module>
    rst.directives.register_directive('trac', trac_directive)
  File "d:\Programme\python27\lib\site-packages\mercurial\demandimport.py", line 87, in __getattribute__
    return getattr(self._module, attr)
AttributeError: 'module' object has no attribute 'directives'

My platform:

  • windows 7 64 bit
  • python 2.7.3 (32 bit)

I reinstalled the following packages in exact that order:

  1. 'distribute-0.6.28.tar.gz'
  2. 'Babel-0.9.6.zip'
  3. 'docutils-0.9.1.tar.gz'
  4. 'Genshi-0.6.zip'
  5. 'Jinja2-2.6.tar.gz'
  6. 'Pygments-1.5.tar.gz'
  7. 'Sphinx-1.1.3.tar.gz'
  8. 'pyreadline-1.7.1.zip'
  9. 'ipython-0.13.zip'
  10. 'mercurial-2.3.1.tar.gz
  11. 'Trac-1.0.zip'

I use the plugins:

  • TracAccountManager-0.4dev-py2.7.egg
  • TracWysiwyg-0.12.0.3-py2.7.egg
  • TracMercurial-1.0.0.1dev-py2.7.egg

But the error remains.

If I try to sync my hg repo called util in trac-admin I get the following error:

Trac [U:\trac]> repository sync util
TracError: Unsupported version control system "hg": No module named repo
Trac [U:\trac]>

Any hints?

Change History (0)

Note: See TracTickets for help on using tickets.