Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Python trac error no attribute metadata

Status
Not open for further replies.

humbletech99

Programmer
Nov 22, 2005
155
GB
Hi,
I've got a problem with the trac-admin script that comes with Trac. I type the following to do a hotcopy of a trac directory and get the resulting error message stating that there is no attribute 'metadata':

Code:
/path/to/trac-admin /path/to/dir/to/back/up/ hotcopy /path/to/dir/testbackup
Failed to open environment. PathMetadata instance has no attribute 'metadata'
Traceback (most recent call last):
  File "/path/to/trac/trac/scripts/admin.py", line 119, in env_open
    self.__env = Environment(self.envname)
  File "/path/to/trac/trac/env.py", line 91, in __init__
    load_components(self)
  File "/path/to/trac/trac/loader.py", line 62, in load_components
    if egg.metadata.has_metadata(TRAC_META):
  File "/usr/lib/python2.4/site-packages/setuptools-0.6a7-py2.4.egg/pkg_resources.py", line 1874, in __getattr__
    return getattr(self._provider, attr)
AttributeError: PathMetadata instance has no attribute 'metadata'

I'm using Python 2.4 and read the script /usr/lib/python2.4/site-packages/setuptools-0.6a7-py2.4.egg/pkg_resources.py around line 1874. From what i can tell the default for the Class assigns Metadata=None as an argument if none is given. I was wondering if anyone can point me in the right direction?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top