Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#4898 closed defect (fixed)

No administration panels after install

Reported by: timsjostrand@… Owned by: airadier
Priority: normal Component: TracWikiPrintPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Using r5495, and following the instructions on the wiki page, I am unable to get TracWikiPrintPlugin to work. No new administration panels allowing me to export wiki pages to PDF appear after installation, nor does a new item appear under Administration/Plugins.

This behavior can be repeated using different revisions and on a clean Trac install. Tested on Trac 0.11.4 (latest official). All dependencies are met. I have tested both to do easy_install on the TracWikiPrintPlugin repository, aswell as checking out the source and compiling for myself with "python setup.py bdist_egg".

After installation via the Trac Web UI, "trac.log" says ("behemoth" is the name of my dummy project, by the way =)):

2009-04-08 09:46:45,461 Trac[web_ui] INFO: Installing plugin TracWikiPrintPlugin-1.1-py2.5.egg
2009-04-08 09:46:45,462 Trac[web_ui] INFO: Plugin TracWikiPrintPlugin-1.1-py2.5.egg installed to /var/lib/trac/behemoth/plugins/TracWikiPrintPlugin-1.1-py2.5.egg

And when loading, "trac.log":

2009-04-08 09:52:40,427 Trac[loader] DEBUG: Adding plugin TracWikiPrintPlugin 1.1 from /var/lib/trac/behemoth/plugins/TracWikiPrintPlugin-1.1-py2.5.egg
2009-04-08 09:52:40,444 Trac[loader] DEBUG: Adding plugin TracWikiPrintPlugin 1.1 from /var/lib/trac/behemoth/plugins/TracWikiPrintPlugin-1.1-py2.5.egg
2009-04-08 09:52:40,929 Trac[loader] DEBUG: Loading wikiprint.formats from /var/lib/trac/behemoth/plugins/TracWikiPrintPlugin-1.1-py2.5.egg
2009-04-08 09:52:40,965 Trac[loader] DEBUG: Loading wikiprint.formats from /var/lib/trac/behemoth/plugins/TracWikiPrintPlugin-1.1-py2.5.egg
2009-04-08 09:52:41,921 Trac[loader] DEBUG: Loading wikiprint.web_ui from /var/lib/trac/behemoth/plugins/TracWikiPrintPlugin-1.1-py2.5.egg
2009-04-08 09:52:41,926 Trac[loader] DEBUG: Loading wikiprint.wikitopdf from /var/lib/trac/behemoth/plugins/TracWikiPrintPlugin-1.1-py2.5.egg
2009-04-08 09:52:41,932 Trac[loader] DEBUG: Loading wikiprint.web_ui from /var/lib/trac/behemoth/plugins/TracWikiPrintPlugin-1.1-py2.5.egg
2009-04-08 09:52:41,937 Trac[loader] DEBUG: Loading wikiprint.wikitopdf from /var/lib/trac/behemoth/plugins/TracWikiPrintPlugin-1.1-py2.5.egg

My /var/lib/trac/behemoth/conf/trac.ini components-section looks like:

[components]
trac2latex.trac2latex.* = enabled
wikiprint.* = enabled

I should add that I have never installed a Trac plugin before, but the logs seem to give no indication of an error. It looks like I missed something obvious, or perhaps the wiki page instructions are inaccurate?

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by timsjostrand@…

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

After more careful studying of the trac.log file i located the error; the Ubuntu repositories does not have the latest version of ReportLab.

Hence, apt-get install reportlab did not meet the prerequisites as I stated, and for some reason, easy_install reportlab will not compile correctly. Also, an unmentioned dependency on the wiki page, pygments, was not installed.

Ultimately, the following commands solved all my problems:

$ sudo apt-get remove reportlab
$ sudo apt-get install python2.5-dev
$ wget http://www.reportlab.org/ftp/ReportLab_2_3.tar.gz
$ gunzip ReportLab_2_3.tar.gz
$ tar ReportLab_2_3.tar
$ cd ReportLab_2_3
$ python setup.py install
$ easy_install pygments

I now get the WikiPrint option in the Administration panel, and it produces valid PDF files!

comment:2 Changed 5 years ago by airadier

I added the missing pygments dependency.

For the easy_install, probably you need easy_install -U to force upgrade, if you have a previous version installed.

Add Comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.