Opened 5 years ago

Closed 4 years ago

#5403 closed defect (fixed)

TagsPlugin reinstall is broken

Reported by: ThurnerRupert Owned by: athomas
Priority: high Component: TagsPlugin
Severity: minor Keywords:
Cc: Trac Release: 0.11


reinstalling TagsPlugin leads to

# easy_install
Doing subversion checkout from to /tmp/easy_install-DJyff_/trunk
Processing trunk
Running -q bdist_egg --dist-dir /tmp/easy_install-DJyff_/trunk/egg-dist-tmp-tck7xT
unrecognized .svn/entries format in
zip_safe flag not set; analyzing archive contents...
TracTags 0.6 is already the active version in easy-install.pth

Installed /opt/csw/lib/python2.6/site-packages/TracTags-0.6-py2.6.egg
Processing dependencies for TracTags==0.6
Traceback (most recent call last):
  File "/opt/csw/bin/easy_install", line 8, in <module>
    load_entry_point('setuptools==0.6c9', 'console_scripts', 'easy_install')()
  File "/opt/csw/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/", line 1671, in main

  File "/opt/csw/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/", line 1659, in with_ei_usage

  File "/opt/csw/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/", line 1675, in <lambda>

  File "/opt/csw/lib/python2.6/distutils/", line 152, in setup
  File "/opt/csw/lib/python2.6/distutils/", line 975, in run_commands
  File "/opt/csw/lib/python2.6/distutils/", line 995, in run_command
  File "/opt/csw/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/", line 211, in run

  File "/opt/csw/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/", line 422, in easy_install

  File "/opt/csw/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/", line 478, in install_item

  File "/opt/csw/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/", line 519, in process_distribution

  File "/opt/csw/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/", line 529, in resolve
  File "/opt/csw/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/", line 2108, in requires
    deps = []
  File "/opt/csw/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/", line 2100, in _dep_map
    if extra: extra = safe_extra(extra)
  File "/opt/csw/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/", line 2519, in split_sections
    if line.startswith("["):
  File "/opt/csw/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/", line 1813, in yield_lines
    for ss in strs:
  File "/opt/csw/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/", line 2122, in _get_metadata
    yield line
  File "/opt/csw/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/", line 1140, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/opt/csw/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/", line 1137, in get_metadata
    return self._get(self._fn(self.egg_info,name))
  File "/opt/csw/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/", line 1197, in _get
    "Can't perform this operation for loaders without 'get_data()'"
zipimport.ZipImportError: bad local file header in /opt/csw/lib/python2.6/site-packages/TracTags-0.6-py2.6.egg

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by ThurnerRupert

  • Component changed from SELECT A HACK to TagsPlugin
  • Owner set to athomas
  • Priority changed from normal to high
  • Severity changed from normal to minor

comment:2 Changed 4 years ago by rjollos

This is unlikely the source of your problem, but I've seen it recommended to use at least setuptools version >= 0.6c10. See t:TracDev/DevelopmentEnvironmentSetup#Geteasy_install.

comment:3 Changed 4 years ago by pacopablo

  • Resolution set to fixed
  • Status changed from new to closed

This issue is generally a result of updating the plugin while the trac process is still running.

Restart the trac process and it should work.

This is not a problem with the tags code itself.

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from athomas. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.