在本地测试一切OKAY。
把环境搬到VPS上面。就报错了。
环境90%都是一样的。都是centos。而且是一个版本。而且都安装了跟libreoffice相关的一些组件
(我甚至把gnome ,x11桌面都装上了!)。
/opt/libreoffice3.5/program/python /opt/web/hero/util/DocumentConverter.py /opt/web/aa.doc /opt/web/aa.pdf
Traceback (most recent call last):
File "/opt/web/hero/util/DocumentConverter.py", line 227, in <module>
converter.convert(argv[1], argv[2])
File "/opt/web/hero/util/DocumentConverter.py", line 143, in convert
document = self.desktop.loadComponentFromURL("file:///"+inputUrl, "_blank", 0, self._toProperties(loadProperties))
__main__.IllegalArgumentException: URL seems to be an unsupported one.
file:/// 是我自己加的,加与不加。都还是出问题。
/opt/libreoffice3.5/program/python DocumentConverter.py /opt/aa.doc /opt/aa.pdf
-----------------又是一通宵呀,桑不起~~~
把环境搬到VPS上面。就报错了。
环境90%都是一样的。都是centos。而且是一个版本。而且都安装了跟libreoffice相关的一些组件
(我甚至把gnome ,x11桌面都装上了!)。
/opt/libreoffice3.5/program/python /opt/web/hero/util/DocumentConverter.py /opt/web/aa.doc /opt/web/aa.pdf
Traceback (most recent call last):
File "/opt/web/hero/util/DocumentConverter.py", line 227, in <module>
converter.convert(argv[1], argv[2])
File "/opt/web/hero/util/DocumentConverter.py", line 143, in convert
document = self.desktop.loadComponentFromURL("file:///"+inputUrl, "_blank", 0, self._toProperties(loadProperties))
__main__.IllegalArgumentException: URL seems to be an unsupported one.
file:/// 是我自己加的,加与不加。都还是出问题。
/opt/libreoffice3.5/program/python DocumentConverter.py /opt/aa.doc /opt/aa.pdf
-----------------又是一通宵呀,桑不起~~~