OpenCSW Bug Tracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004500 [trac] packaging minor have not tried 2010-07-28 23:50 2011-01-02 08:15
Reporter dpretlor View Status public  
Assigned To
Priority normal Resolution unable to reproduce  
Status closed  
Summary 0004500: Error when trying to initenv
Description I installed the package from the OpenCSW site, when I tried to run the initenv for a folder, I get the following error:
 ./trac-admin /usr/local/trac/testenv initenv
/opt/csw/lib/python/site-packages/trac/util/ DeprecationWarning: the md5 module is deprecated; use hashlib instead
  from md5 import md5
Traceback (most recent call last):
  File "./trac-admin", line 8, in <module>
    load_entry_point('Trac==0.11.7', 'console_scripts', 'trac-admin')()
  File "/opt/csw/lib/python/site-packages/", line 318, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/opt/csw/lib/python/site-packages/", line 2221, in load_entry_point
    return ep.load()
  File "/opt/csw/lib/python/site-packages/", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/opt/csw/lib/python/site-packages/trac/admin/", line 30, in <module>
    from trac import perm, util, db_default
  File "/opt/csw/lib/python/site-packages/trac/", line 22, in <module>
    from trac.config import ExtensionOption, OrderedExtensionsOption
  File "/opt/csw/lib/python/site-packages/trac/", line 20, in <module>
    from trac.util import AtomicFile
  File "/opt/csw/lib/python/site-packages/trac/util/", line 33, in <module>
    from trac.util.compat import md5, reversed, sha1, sorted, tee
  File "/opt/csw/lib/python/site-packages/trac/util/", line 150, in <module>
    from md5 import md5
  File "/opt/csw/lib/python/", line 10, in <module>
    from hashlib import md5
  File "/opt/csw/lib/python/", line 136, in <module>
    md5 = __get_builtin_constructor('md5')
  File "/opt/csw/lib/python/", line 63, in __get_builtin_constructor
    import _md5
ImportError: No module named _md5
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
rupert (manager)
2010-12-12 08:25

can it be you use an old version of trac? the version in the log says 0.11.7, while it should be 0.12.1 ?

Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker