【问题标题】:collective.sendaspdf "Running wkhtmltopdf failed"collective.sendaspdf “运行 wkhtmltopdf 失败”
【发布时间】:2013-01-29 02:58:30
【问题描述】:

我正在 Plone 4.2.4 服务器上安装collective.sendaspdf。

此插件提供了两个额外的文档操作按钮,一个“以 PDF 格式发送”,另一个“以 PDF 格式查看”

按照packages pypi page 上的说明进行操作后。尝试单击上述文档操作链接之一时,我得到以下回溯:

Exception AttributeError: AttributeError("'_DummyThread' object has no attribute 
'_Thread__block'",) in <module 'threading' from '/home/dan/Plone/Python-2.7/lib/python2.7
/threading.pyc'> ignored

2013-02-13 14:04:50 ERROR collective.sendaspdf Running wkhtmltopdf failed. Please check that you 
use a version compatible with your OS and the version is 0.9.
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute 
'_Thread__block'",) in <module 'threading' from '/home/dan/Plone/Python-2.7/lib/python2.7
/threading.pyc'> ignored

2013-02-13 14:05:55 ERROR collective.sendaspdf Running wkhtmltopdf failed. Please check that you 
use a version compatible with your OS and the version is 0.9.

我尝试将 wkhtmltopdf 固定到它需要的版本,在 [versions] 标题下,但这对我没有任何作用。我曾尝试仅在eggs 部分下单独加载collective.sendaspdf,但同样,这也不起作用。我尝试手动下载它们,将它们放入我的src 文件夹并相应地配置develop 部分,但这又给了我同样的错误。我什至尝试过 easy_install,但我遇到了同样的问题。

the pypi page 上的说明不能按照字母顺序进行,因为我相信[wkhtmltopdf] 标题下的 url 会导致存档损坏(我不能使用 tar、gzip 或 bunzip2 来提取文件)但是他确实有包含源的 zip 文件,我尝试手动下载和使用 easy_install)但无济于事。

我一直在研究

ERROR collective.sendaspdf Running wkhtmltopdf failed. Please check that you 
use a version compatible with your OS and the version is 0.9.

我收到了错误消息,但我似乎没有看到任何 Plone 用户遇到困难,似乎大多数人都在使用 Rails。

有谁知道我该怎么做:

  1. 让它发挥作用
  2. 找到另一种将 HTML 从 Plone 转换为 PDF 的方法。

我已经尝试过 Form2PDF、zopyx.smartpringng 和现在的collective.sendaspdf(这是我用得最远的一个)——除了它落在了最后一道障碍

谢谢。

【问题讨论】:

    标签: plone wkhtmltopdf


    【解决方案1】:

    我担心您在第一个障碍中失败了:安装 wkhtmltopdf。访问 https://code.google.com/p/wkhtmltopdf/ 并按照他们的说明进行安装,或者在此处查找与您的系统兼容的版本的 URL

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-03-19
      • 2014-01-04
      • 1970-01-01
      • 2023-03-25
      • 1970-01-01
      • 2013-11-12
      相关资源
      最近更新 更多