Opened 8 years ago

Closed 7 years ago

Last modified 6 years ago

#7028 closed defect (fixed)

System-wide installation doesn't work — at Version 4

Reported by: John Beranek Owned by: Ryan J Ollos
Priority: high Component: TracWikiToPdfPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by Ryan J Ollos)

I:

  1. Checked out the latest code from Subversion
  2. Made an egg
  3. Copied it into the system's site-packages directory
  4. Added "wikitopdf.* = enabled" in the [components] section of a projects trac.ini

However, the plugin has not become enabled, and doesn't show in the Admin->Plugins page.

If I copy the egg into the project's 'plugins' directory, it works.

In the failure case there is nothing relevant in the trac.log file.

If I copy the egg file into the project's plugins directory, the trac.log file shows the plugin being loaded from the _system_ directory:

2010-04-26 14:59:33,832 Trac[loader] DEBUG: Loading wikitopdf.web_ui from /usr/lib/python2.4/site-packages/TracWikiToPdfPlugin-2.3.1-py2.4.egg

What's going on!?

Change History (4)

comment:1 Changed 7 years ago by nathan r. hruby

This appears to be caused by the lack of an __init__.py file in the wikitopdf module. You can maually add an empty one in the source directory and then reissue the build and install steps and it should work.

comment:2 Changed 7 years ago by Ryan J Ollos

Owner: changed from Diorgenes Felipe Grzesiuk to Ryan J Ollos
Priority: normalhigh
Status: newassigned

comment:3 Changed 7 years ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

(In [9779]) Added __init__.py file to fix install failure. Removed requirement for htmldoc from setup.py since an install failed even when the package was installed system-wide. Fixes #7028.

comment:4 Changed 7 years ago by Ryan J Ollos

Description: modified (diff)
Note: See TracTickets for help on using tickets.