dagwieers/unoconv — Issue #24: SystemError: dynamic module not initialized properly
Author: Drubo
Created: 2012-01-30 09:06:29+00:00
State: open

Hi,

I am using Ubuntu 11.04

$ unoconv --version
unoconv 0.3
Written by Dag Wieers <***@wieers.com>
Homepage at http://dag.wieers.com/home-made/unoconv/

platform posix/linux2
python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
[GCC 4.5.2]

build revision $REV$

when I tried to convert odp to pdf from terminal it shows this:

$ unoconv -f pdf test.odp
/usr/lib/libreoffice/program/../basis-link/ure-link/bin/javaldx: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib/ure/bin/../lib/libjvmfwk.so.3)
/usr/lib/libreoffice/program/soffice.bin: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib/libreoffice/program/../basis-link/program/libsfxli.so)
/usr/lib/libreoffice/program/soffice.bin: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib/libreoffice/program/../ure-link/lib/libjvmfwk.so.3)

But this command converts my odp to pdf.

When I use the following in a php script `echo shell_exec('unoconv -f pdf test.odp 2>&1');` the following error occured and did not convert:

/usr/bin/python: /opt/lampp/lib/libz.so.1: no version information available (required by /usr/bin/python) Traceback (most recent call last): File "/usr/bin/unoconv", line 24, in import uno, unohelper File "/usr/lib/python2.7/dist-packages/uno.py", line 34, in import pyuno SystemError: dynamic module not initialized properly

**Problem**
I want to use unoconv from PHP Script. Please help me to solve the issue....