1

我一直在尝试在 Plone 上安装 document.viewer,这将允许我内联查看 pdf 文档,到目前为止,我能够转换 pdf 文件并查看它们,但是当我尝试转换 .doc .ppt 文件时,它给出了以下错误,我的操作系统是Fedora。

    Traceback (most recent call last):
  File "/usr/local/Plone/buildout-cache/eggs/collective.documentviewer-2.2-py2.7.egg/collective/documentviewer/convert.py", line 530, in __call__
    pages = self.run_conversion()
  File "/usr/local/Plone/buildout-cache/eggs/collective.documentviewer-2.2-py2.7.egg/collective/documentviewer/convert.py", line 379, in run_conversion
    return docsplit.convert(self.storage_dir, **args)
  File "/usr/local/Plone/buildout-cache/eggs/collective.documentviewer-2.2-py2.7.egg/collective/documentviewer/convert.py", line 285, in convert
    self.convert_to_pdf(path, filename, output_dir)
  File "/usr/local/Plone/buildout-cache/eggs/collective.documentviewer-2.2-py2.7.egg/collective/documentviewer/convert.py", line 256, in convert_to_pdf
    self._run_command(cmd)
  File "/usr/local/Plone/buildout-cache/eggs/collective.documentviewer-2.2-py2.7.egg/collective/documentviewer/convert.py", line 118, in _run_command
    raise Exception(error)
Exception: Command
/usr/local/bin/docsplit pdf /tmp/tmp9c0S1q/dump.doc --output /tmp/tmp9c0S1q
finished with return code
1
and output:
Error: Could not find or load main class .usr.lib.libreoffice

请注意,我已经安装了 openoffice,并且在 usr/lib 文件夹中有一个名为 libreoffice 的文件夹。Plone 作为具有管理权限的独立设备安装。我该如何解决这个问题?

4

1 回答 1

1

您是否安装了https://pypi.python.org/pypi/collective.documentviewer/#install-requirements中的所有依赖项?

于 2013-03-08T13:01:00.340 回答