2013-03-08 45 views
1

我一直在試圖在Plone上安裝document.viewer,它允許我查看內嵌的pdf文檔,到目前爲止我能夠轉換pdf文件並查看它們,但是當我嘗試轉換.doc .ppt文件給出以下錯誤,我的操作系統是Fedora。在Plone中安裝文檔查看器

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作爲一個獨立的管理權限來安裝。我該如何解決這個問題?

+0

手動嘗試日誌中的命令並查看可能出現的錯誤與docsplit。 – vangheem 2013-03-11 19:19:19

+0

看看這個問題:https://github.com/collective/collective.documentviewer/issues/11希望這可以幫助你解決問題。 – vangheem 2013-03-12 21:32:31

回答