Opened 5 years ago

Closed 5 years ago

#4898 closed defect (fixed)

Reported by: Owned by: timsjostrand@… airadier normal TracWikiPrintPlugin normal 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


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


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?

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.

Modify Ticket

Change Properties