humbletech99
Programmer
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':
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?
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?