[bug-notifications] [trac 0004500]: Error when trying to initenv

Mantis Bug Tracker noreply at opencsw.org
Wed Jul 28 23:50:39 CEST 2010


The following issue has been SUBMITTED. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4500 
====================================================================== 
Reported By:                dpretlor
Assigned To:                
====================================================================== 
Project:                    trac
Issue ID:                   4500
Category:                   packaging
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2010-07-28 23:50 CEST
Last Modified:              2010-07-28 23:50 CEST
====================================================================== 
Summary:                    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/compat.py:150:
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/pkg_resources.py", line 318, in
load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/opt/csw/lib/python/site-packages/pkg_resources.py", line 2221, in
load_entry_point
    return ep.load()
  File "/opt/csw/lib/python/site-packages/pkg_resources.py", line 1954, in
load
    entry = __import__(self.module_name, globals(),globals(),
['__name__'])
  File "/opt/csw/lib/python/site-packages/trac/admin/console.py", line 30,
in <module>
    from trac import perm, util, db_default
  File "/opt/csw/lib/python/site-packages/trac/perm.py", line 22, in
<module>
    from trac.config import ExtensionOption, OrderedExtensionsOption
  File "/opt/csw/lib/python/site-packages/trac/config.py", line 20, in
<module>
    from trac.util import AtomicFile
  File "/opt/csw/lib/python/site-packages/trac/util/__init__.py", line 33,
in <module>
    from trac.util.compat import md5, reversed, sha1, sorted, tee
  File "/opt/csw/lib/python/site-packages/trac/util/compat.py", line 150,
in <module>
    from md5 import md5
  File "/opt/csw/lib/python/md5.py", line 10, in <module>
    from hashlib import md5
  File "/opt/csw/lib/python/hashlib.py", line 136, in <module>
    md5 = __get_builtin_constructor('md5')
  File "/opt/csw/lib/python/hashlib.py", line 63, in
__get_builtin_constructor
    import _md5
ImportError: No module named _md5
======================================================================



More information about the bug-notifications mailing list