Ticket #3337 (reopened defect)

Opened 8 months ago

Last modified 1 month ago

0 bytes PDFs on 0.11

Reported by: romel Assigned to: diorgenes
Priority: normal Component: TracWikiToPdfPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.11

Description

I installed WikiToPdf? plugin in Trac 0.11 and when I try to get the PDF via WikiToPdf? link in the bottom or via admin I got a 0 bytes PDF file.

This does not happen with Trac 0.10

Attachments

Change History

(follow-up: ↓ 3 ) 07/07/08 19:40:14 changed by dferg

I agree. On 0.11rc2 I get a 0 byte pdf from the WikiToPdf? link. However, if I try to use the admin interface, I get an error:

"You're using a plugin which requires the Clearsilver template engine and Clearsilver is not installed. Either disable that plugin or install Clearsilver."

I have not tried it on 0.10.

(in reply to: ↑ description ; follow-up: ↓ 4 ) 07/07/08 20:09:22 changed by diorgenes

Replying to romel:

I installed WikiToPdf? plugin in Trac 0.11 and when I try to get the PDF via WikiToPdf? link in the bottom or via admin I got a 0 bytes PDF file. This does not happen with Trac 0.10


Hi Romel

Do you install htmldoc? What is your system? If Linux, what is your distribution?

Your configuration's file (trac.ini) is correct?

I need more information for help you.

My installation have:
- Genshi-0.5-py2.4-linux-i686.egg
- TracWikiToPdfPlugin-2.0-py2.4.egg
- Trac0.11

(in reply to: ↑ 1 ) 07/07/08 20:23:38 changed by diorgenes

Replying to dferg:

I agree. On 0.11rc2 I get a 0 byte pdf from the WikiToPdf? link. However, if I try to use the admin interface, I get an error: "You're using a plugin which requires the Clearsilver template engine and Clearsilver is not installed. Either disable that plugin or install Clearsilver." I have not tried it on 0.10.


...Either disable that plugin or install Clearsilver.

It is need install Genshi (Clearsilver).

http://genshi.edgewall.org/

http://trac.edgewall.org/wiki/ClearSilver

(in reply to: ↑ 2 ; follow-ups: ↓ 5 ↓ 6 ) 07/08/08 00:25:09 changed by anonymous

Replying to diorgenes:

Replying to romel:

I installed WikiToPdf? plugin in Trac 0.11 and when I try to get the PDF via WikiToPdf? link in the bottom or via admin I got a 0 bytes PDF file. This does not happen with Trac 0.10


Hi Romel Do you install htmldoc?

Yes htmldoc 1.8.25,REV=2006.02.09

What is your system? If Linux, what is your distribution?

It's not Linux, it's Solaris 10

Your configuration's file (trac.ini) is correct?

I think so. I commented some lines from the example that I don't understand

[components]
wikitopdf.* = enabled

[wikitopdf]
#base_dir = /var/projects/wikitopdf
titlefile = /var/projects/wikitopdf/cover/cover.html

[wikitopdf-admin]
size = A4
right = 1.5cm
left = 1.5cm
top = 1.5cm
bottom = 1.5cm
no-links = None
toctitle = Sumary
numbered = None
linkstyle = plain
#header = l
#footer = .r1
logoimage = /var/projects/wikitopdf/header-logo.png

[wikitopdf-page]
size = A4
right = 1.5cm
left = 1.5cm
top = 1.5cm
bottom = 1.5cm
no-links = None
linkstyle = plain
#header = l
#footer = .r1
logoimage = /var/projects/wikitopdf/header-logo.png

Files and directories on the trac.ini (like header-logo.png) are the ones provided as example in WikiToPdf? .zip.

I need more information for help you. My installation have:
- Genshi-0.5-py2.4-linux-i686.egg
- TracWikiToPdfPlugin-2.0-py2.4.egg
- Trac0.11

Mine have:

(in reply to: ↑ 4 ) 07/08/08 14:43:10 changed by diorgenes

  • status changed from new to assigned.

Replying to anonymous:

Replying to diorgenes:

Replying to romel:

I installed WikiToPdf? plugin in Trac 0.11 and when I try to get the PDF via WikiToPdf? link in the bottom or via admin I got a 0 bytes PDF file. This does not happen with Trac 0.10


Hi Romel Do you install htmldoc?

Yes htmldoc 1.8.25,REV=2006.02.09

What is your system? If Linux, what is your distribution?

It's not Linux, it's Solaris 10

Your configuration's file (trac.ini) is correct?

I think so. I commented some lines from the example that I don't understand {{{ [components] wikitopdf.* = enabled [wikitopdf] #base_dir = /var/projects/wikitopdf titlefile = /var/projects/wikitopdf/cover/cover.html [wikitopdf-admin] size = A4 right = 1.5cm left = 1.5cm top = 1.5cm bottom = 1.5cm no-links = None toctitle = Sumary numbered = None linkstyle = plain #header = l #footer = .r1 logoimage = /var/projects/wikitopdf/header-logo.png [wikitopdf-page] size = A4 right = 1.5cm left = 1.5cm top = 1.5cm bottom = 1.5cm no-links = None linkstyle = plain #header = l #footer = .r1 logoimage = /var/projects/wikitopdf/header-logo.png }}} Files and directories on the trac.ini (like header-logo.png) are the ones provided as example in WikiToPdf? .zip.

I need more information for help you. My installation have:
- Genshi-0.5-py2.4-linux-i686.egg
- TracWikiToPdfPlugin-2.0-py2.4.egg
- Trac0.11

Mine have:
- Genshi-0.5-py2.5-solaris-2.10-sun4u.egg
- TracWikiToPdfPlugin-2.0-py2.4.egg
- Trac 0.11


Hi

#base_dir = /var/projects/wikitopdf

base_dir is the Apache DocumentRoot?, It is need to get PDF files with images.

size = A4 right = 1.5cm left = 1.5cm top = 1.5cm bottom = 1.5cm no-links = None linkstyle = plain #header = l #footer = .r1 logoimage = /var/projects/wikitopdf/header-logo.png

HTMLDOC options. See the link below.

http://www.htmldoc.org/htmldoc.html#CMDREF

(in reply to: ↑ 4 ) 07/08/08 14:46:56 changed by diorgenes

Replying to anonymous:

Replying to diorgenes:

Replying to romel:

I installed WikiToPdf? plugin in Trac 0.11 and when I try to get the PDF via WikiToPdf? link in the bottom or via admin I got a 0 bytes PDF file. This does not happen with Trac 0.10


Hi Romel Do you install htmldoc?

Yes htmldoc 1.8.25,REV=2006.02.09

What is your system? If Linux, what is your distribution?

It's not Linux, it's Solaris 10

Your configuration's file (trac.ini) is correct?

I think so. I commented some lines from the example that I don't understand

> [components]
> wikitopdf.* = enabled
> 
> [wikitopdf]
> #base_dir = /var/projects/wikitopdf
> titlefile = /var/projects/wikitopdf/cover/cover.html
> 
> [wikitopdf-admin]
> size = A4
> right = 1.5cm
> left = 1.5cm
> top = 1.5cm
> bottom = 1.5cm
> no-links = None
> toctitle = Sumary
> numbered = None
> linkstyle = plain
> #header = l
> #footer = .r1
> logoimage = /var/projects/wikitopdf/header-logo.png
> 
> [wikitopdf-page]
> size = A4
> right = 1.5cm
> left = 1.5cm
> top = 1.5cm
> bottom = 1.5cm
> no-links = None
> linkstyle = plain
> #header = l
> #footer = .r1
> logoimage = /var/projects/wikitopdf/header-logo.png

Files and directories on the trac.ini (like header-logo.png) are the ones provided as example in WikiToPdf? .zip.

I need more information for help you. My installation have:
- Genshi-0.5-py2.4-linux-i686.egg
- TracWikiToPdfPlugin-2.0-py2.4.egg
- Trac0.11

Mine have:
- Genshi-0.5-py2.5-solaris-2.10-sun4u.egg
- TracWikiToPdfPlugin-2.0-py2.4.egg
- Trac 0.11


Hi

> #base_dir = /var/projects/wikitopdf
base_dir is the Apache DocumentRoot, It is need to get PDF files with images.

> size = A4
> right = 1.5cm
> left = 1.5cm
> top = 1.5cm
> bottom = 1.5cm
> no-links = None
> linkstyle = plain
> #header = l
> #footer = .r1
> logoimage = /var/projects/wikitopdf/header-logo.png
HTMLDOC options. See the link below.

http://www.htmldoc.org/htmldoc.html#CMDREF

(follow-up: ↓ 8 ) 07/16/08 21:32:43 changed by jcole@carinatek.com

  • severity changed from normal to critical.

I'm getting the same thing:

Trac: 0.11 Python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] setuptools: 0.6c7 SQLite: 3.3.4 pysqlite: 2.3.2 Genshi: 0.5.1 mod_python: 3.3.1 Pygments: 0.9 Subversion: 1.4.6 (r28521) jQuery: 1.2.3 HTMLDOC Version 1.8.24 Open Source

Turnning on Trac logging, I get the following in the log file: 2008-07-16 14:10:02,194 Trac[wikitopdf] DEBUG: WikiToPdf? => HTML output for WikiToPdf? in charset: iso-8859-1 2008-07-16 14:10:02,194 Trac[wikitopdf] DEBUG: WikiToPdf? => HTML intput for WikiToPdf?: = The Sandbox =

This is just a page to practice and learn WikiFormatting.

Go ahead, edit it freely. 2008-07-16 14:10:02,194 Trac[wikitopdf] DEBUG: WikiToPdf? => Html code: '<h1 id="TheSandbox?">The Sandbox</h1>\r\n<p>\r\nThis is just a page to practice and learn <a class="wiki" href="/Software/wiki/WikiFormatting">WikiFormatting</a>. \r\n</p>\r\n<p>\r\nGo ahead, edit it freely.\r\n</p>\r\n' 2008-07-16 14:10:02,194 Trac[wikitopdf] DEBUG: WikiToPdf? => Htmldoc code out: --footer .r1 --right 1in --no-links None --format pdf14 --webpage --top 1in --charset iso-8859-1 --bottom 1in --logoimage C:\Python25\Lib\site-packages\trac\htdocs\trac_banner.png --header l --left 1in --linkstyle plain --size Letter 2008-07-16 14:10:02,240 Trac[main] DEBUG: 391 unreachable objects found.

If I take the 'HTML code', and put it in a file, and run HTMLDoc on the file with the settings from 'Html Code Out', I get a good PDF file.

(in reply to: ↑ 7 ; follow-up: ↓ 9 ) 07/16/08 22:08:19 changed by diorgenes

Hi Jcole

What operating system are you using? Windows? This plugin has not yet been tested in the windows...

You tested both forms of generating PDF? What happened them the error(Combining wiki pages or Single page)?

Diorgenes F. Grzesiuk

Replying to jcole@carinatek.com:

I'm getting the same thing: ...

(in reply to: ↑ 8 ) 07/16/08 23:00:16 changed by jcole@carinatek.com

What operating system are you using? Windows? This plugin has not yet been tested in the windows...

Windows 2003 Server.

You tested both forms of generating PDF? What happened them the error(Combining wiki pages or Single page)?

I'm only trying the TracWikiToPDF at the bottom of a page, so I assume that is the single page. I can't run the admin plugin because I don't have clearsilver installed (I couldn't find a windows binary for Python 2.5).

I added two log lines:

os.system('htmldoc %s %s -f %s' % (args_string, hfilename, pfilename)) self.env.log.debug('WikiToPdf? => Htmldoc done hfilename: %s' % hfilename) self.env.log.debug('WikiToPdf? => Htmldoc done pfilename: %s' % pfilename)

and now it seems to be working... Hmmm.

(follow-up: ↓ 11 ) 08/18/08 13:29:14 changed by mikon

The same "Either disable that plugin or install Clearsilver" message here on Ubuntu with Genshi (Genshi-0.5.1-py2.5-linux-i686.egg and Genshi-0.6dev_r0-py2.5-linux-i686.egg) and 0.11 and a lot of plugins working OK.

(in reply to: ↑ 10 ) 08/20/08 17:38:39 changed by diorgenes

Replying to mikon:

The same "Either disable that plugin or install Clearsilver" message here on Ubuntu with Genshi (Genshi-0.5.1-py2.5-linux-i686.egg and Genshi-0.6dev_r0-py2.5-linux-i686.egg) and 0.11 and a lot of plugins working OK.


Hi everyone!

This problem occurs when you try to generate the PDF book? If yes, verify the Wiki pages contains the titles format. Ex:

Code wiki page

= Title =
description

== Sub-Title ==
description

The error appear because not find the title formated the wiki pages.

Regards

Diorgenes F. Grzesiuk

08/25/08 20:55:58 changed by diorgenes

  • status changed from assigned to closed.
  • resolution set to fixed.

I hope was correction this.

(follow-up: ↓ 14 ) 08/25/08 21:59:51 changed by MTitsworth

  • status changed from closed to reopened.
  • resolution deleted.

Hi, still the same problem here (Trac 0.11, Genshi 0.5.1, htmldoc-1.9.x-r1563, clearsilver 0.10.5). I've gone through and checked and every wiki page has a properly formatted title.

(in reply to: ↑ 13 ; follow-up: ↓ 15 ) 08/25/08 22:07:36 changed by MTitsworth

Replying to MTitsworth:

Hi, still the same problem here (Trac 0.11, Genshi 0.5.1, htmldoc-1.9.x-r1563, clearsilver 0.10.5). I've gone through and checked and every wiki page has a properly formatted title.

Trac.ini section looks like:

[wikitopdf]
base_dir = /home/matthew/Trac/Project/htdocs/
pathtocover = /home/matthew/Trac/Project/wikitopdf/
titlefile = /home/matthew/Trac/Project/wikitopdf/cover.html

[wikitopdf-admin]
size = A4
right = 1.5cm
left = 1.5cm
top = 1.5cm
bottom = 1.5cm
no-links = None
toctitle = Sumary
numbered = None
linkstyle = plain
#header = l
#footer = .r1
logoimage = site/logo.png

[wikitopdf-page]
size = A4
right = 1.5cm
left = 1.5cm
top = 1.5cm
bottom = 1.5cm
no-links = None
linkstyle = plain
#header = l
#footer = .r1
logoimage = site/logo.png

(in reply to: ↑ 14 ; follow-up: ↓ 16 ) 08/26/08 14:31:50 changed by diorgenes

Hi MTitsworth

The plugin TracWikiToPdfPlugin not necessary use clearsilver, but optional if some plugins require it.

I realy need more information about your problem!

Do you usually the new version plugin (2.2.1)? Which format are you using (combining wiki pages or single page)?

Describe your procedure...

Regards

Diorgenes F. Grzesiuk

Replying to MTitsworth:

Replying to MTitsworth:

Hi, still the same problem here (Trac 0.11, Genshi 0.5.1, htmldoc-1.9.x-r1563, clearsilver 0.10.5). I've gone through and checked and every wiki page has a properly formatted title.

Trac.ini section looks like: {{{ [wikitopdf] base_dir = /home/matthew/Trac/Project/htdocs/ pathtocover = /home/matthew/Trac/Project/wikitopdf/ titlefile = /home/matthew/Trac/Project/wikitopdf/cover.html [wikitopdf-admin] size = A4 right = 1.5cm left = 1.5cm top = 1.5cm bottom = 1.5cm no-links = None toctitle = Sumary numbered = None linkstyle = plain #header = l #footer = .r1 logoimage = site/logo.png [wikitopdf-page] size = A4 right = 1.5cm left = 1.5cm top = 1.5cm bottom = 1.5cm no-links = None linkstyle = plain #header = l #footer = .r1 logoimage = site/logo.png }}}

(in reply to: ↑ 15 ; follow-up: ↓ 17 ) 08/26/08 15:30:33 changed by MTitsworth

I just tried including the new version built from source(TracWikiToPdfPlugin-2.2.1-py2.5.egg) and still the same problem as the other posters:

For combining wiki pages in the admin area I get "You're using a plugin which requires the Clearsilver template engine and Clearsilver is not installed. Either disable that plugin or install Clearsilver."

For trying to export a single page to PDF I get a 0 byte PDF file.

I tried using the pre-built egg in the directory (TracWikiToPdfPlugin-2.2.1-py2.4.egg) just for kicks and it wouldn't run.

Operating system is CentOS 5 Linux.

(in reply to: ↑ 16 ) 08/26/08 15:49:54 changed by diorgenes

Replying to MTitsworth:

Well, This is really strange...

Can you new installation do clean the Trac and WikiToPDF in other server?

If yes, please return its result here.

Regards

Diorgenes F. Grzesiuk

(follow-up: ↓ 19 ) 08/26/08 16:39:21 changed by MTitsworth

I just rebuilt and installed trac, then setup a separate testing project with just the wikitopdf plugin, and I'm still getting the same two errors.

Matthew.

(in reply to: ↑ 18 ) 08/26/08 19:32:18 changed by diorgenes

Replying to MTitsworth:

Ok, I achieve display your error. I am going to make new corrections.

Thanks

Regards

Diorgenes F. Grzesiuk

(follow-up: ↓ 21 ) 08/27/08 16:15:51 changed by diorgenes

You need install the package python-clearsilver. Because the plugin TracWikiToPdf? yet need package template.

The Trac 0.11 use new template package. I will re-write my code for use Genshi template, but I need before learn to use the template package.

Regards

Diorgenes F. Grzesiuk

(in reply to: ↑ 20 ; follow-up: ↓ 22 ) 08/29/08 20:41:58 changed by anonymous

Replying to diorgenes:

You need install the package python-clearsilver. Because the plugin TracWikiToPdf? yet need package template. The Trac 0.11 use new template package. I will re-write my code for use Genshi template, but I need before learn to use the template package. Regards Diorgenes F. Grzesiuk

This is proving to be annoying. I installed python-clearsilver with no luck. went back and have now done a full reinstall of both clearsilver and python clearsilver. Am currently rebuilding and installing htmldoc, and will then rebuild the egg from source. hopefully it will work after that.

(in reply to: ↑ 21 ) 08/29/08 21:22:03 changed by anonymous

Replying to anonymous:

Replying to diorgenes:

You need install the package python-clearsilver. Because the plugin TracWikiToPdf? yet need package template. The Trac 0.11 use new template package. I will re-write my code for use Genshi template, but I need before learn to use the template package. Regards Diorgenes F. Grzesiuk

This is proving to be annoying. I installed python-clearsilver with no luck. went back and have now done a full reinstall of both clearsilver and python clearsilver. Am currently rebuilding and installing htmldoc, and will then rebuild the egg from source. hopefully it will work after that.

I just rebuilt and installed htmldoc, and then rebuilt the egg from source and still no dice.

10/03/08 00:51:52 changed by jackey

Same problem on my Mac. Python 2.5 Genshi 0.5.0 (py25) clearsilver 0.10.5 Trac 0.11

(follow-up: ↓ 25 ) 10/03/08 00:55:37 changed by jackey

2008-10-02 18:46:03,590 Trac[wikitopdf] DEBUG: WikiToPdf? => Finish function wiki_to_pdf 2008-10-02 18:46:03,590 Trac[wikitopdf] DEBUG: WikiToPdf? => Start function html_to_pdf 2008-10-02 18:46:03,591 Trac[wikitopdf] DEBUG: WikiToPdf? => Htmldoc command line: htmldoc --footer .r1 --right 1.5cm --no-links None --format pdf14 --webpage --top 1.5cm --charset iso-8859-15 --bottom 1.5cm --logoimage /opt/local/apache2/htdocs/AMT_logo.png --header l --left 1.5cm --linkstyle plain --size A4 /var/folders/zz/zzzivhrRnAmviuee++++FU+++2M/-Tmp-/tmpnYmThMwikitopdf -f /var/folders/zz/zzzivhrRnAmviuee++++FU+++2M/-Tmp-/tmpMmwHtzwikitopdf 2008-10-02 18:46:03,598 Trac[wikitopdf] DEBUG: WikiToPdf? => Finish function html_to_pdf 2008-10-02 18:46:03,644 Trac[main] DEBUG: 10498 unreachable objects found.

(in reply to: ↑ 24 ) 10/03/08 13:30:43 changed by diorgenes

Replying to jackey:

2008-10-02 18:46:03,590 Trac[wikitopdf] DEBUG: WikiToPdf? => Finish function wiki_to_pdf 2008-10-02 18:46:03,590 Trac[wikitopdf] DEBUG: WikiToPdf? => Start function html_to_pdf 2008-10-02 18:46:03,591 Trac[wikitopdf] DEBUG: WikiToPdf? => Htmldoc command line: htmldoc --footer .r1 --right 1.5cm --no-links None --format pdf14 --webpage --top 1.5cm --charset iso-8859-15 --bottom 1.5cm --logoimage /opt/local/apache2/htdocs/AMT_logo.png --header l --left 1.5cm --linkstyle plain --size A4 /var/folders/zz/zzzivhrRnAmviuee++++FU+++2M/-Tmp-/tmpnYmThMwikitopdf -f /var/folders/zz/zzzivhrRnAmviuee++++FU+++2M/-Tmp-/tmpMmwHtzwikitopdf 2008-10-02 18:46:03,598 Trac[wikitopdf] DEBUG: WikiToPdf? => Finish function html_to_pdf 2008-10-02 18:46:03,644 Trac[main] DEBUG: 10498 unreachable objects found.

Hi Jackey

I don't do test TracWikiToPdf on Mac! I need more details for help you!

Regards

Diorgenes F. Grzesiuk

10/12/08 19:34:59 changed by anonymous

Hi I have installed TracWikiToPdf? on Windows. This just gives empty page, not even a download. Just to install the windows binary is enough? How does the plugin find this binary?

(follow-up: ↓ 28 ) 01/28/09 15:58:47 changed by simon@methodics-eda.com

do i still need to install python_clearsilver to print multiple pages using this plugin? would it be possible to get the status of the genshi implementation. thx!

(in reply to: ↑ 27 ) 01/29/09 06:34:56 changed by anonymous

Replying to simon@methodics-eda.com:

do i still need to install python_clearsilver to print multiple pages using this plugin? would it be possible to get the status of the genshi implementation. thx!

Yes, the package python_clearsilver is necessary, i don't know about status of the genshi implementation, but i think implementation its wasn't started.


Add/Change #3337 (0 bytes PDFs on 0.11)




Change Properties
Action