Opened 15 years ago
Closed 13 years ago
#7028 closed defect (fixed)
System-wide installation doesn't work
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 )
I:
- Checked out the latest code from Subversion
- Made an egg
- Copied it into the system's site-packages directory
- 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!?
Attachments (0)
Change History (9)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Owner: | changed from Diorgenes Felipe Grzesiuk to Ryan J Ollos |
---|---|
Priority: | normal → high |
Status: | new → assigned |
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 Changed 14 years ago by
Description: | modified (diff) |
---|
comment:5 Changed 14 years ago by
comment:6 Changed 14 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Hmm, doesn't seem to fix it for me. I generated an __init__.py
within wikitopdf, remade the egg, and I still get the same behaviour...
comment:7 Changed 14 years ago by
Try deleting the file /usr/lib/python2.4/site-packages/TracWikiToPdfPlugin-2.3.1-py2.4.egg
and see if it then loads the egg from the TRACENV directory.
comment:8 Changed 14 years ago by
Okay, sorry, I misundestood your issue, so my last comment won't make any sense. Let me test out the system-wide installation. I always do an installation to the TRACENV directory.
comment:9 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Try: python setup.py install
, and I think it will work for you. Please reopen if you continue to have issues. You may also want to read t:TracPlugins, for the different installation options. I think this is purely an install issue at this point.
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.