Opened 13 years ago

Closed 12 years ago

#5403 closed defect (fixed)

TagsPlugin reinstall is broken

Reported by: rupert thurner Owned by: Alec Thomas
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 13 years ago by rupert thurner

Component: SELECT A HACKTagsPlugin
Owner: changed from anonymous to Alec Thomas
Priority: normalhigh
Severity: normalminor

comment:2 Changed 12 years ago by Ryan J Ollos

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 12 years ago by John Hampton

Resolution: fixed
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Alec Thomas.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

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

Note: See TracTickets for help on using tickets.