Ich habe ein Python-Projekt in Ubuntu 12.04 mit Python 2.7 entwickelt. Es ist mit pyoo und uno installiert mitPython-Uno funktioniert nicht in Ubuntu 14.04
pip install pyoo
apt-get -y install python-uno
Während dieses Projekt auf Ubuntu 14.04 verwenden.
a) während der Installation apt-get install python-uno
sagt es Paket python-uno nicht verfügbar ist, aber von einem anderen
Paket bezeichnet. Dies kann bedeuten, dass das Paket fehlt, dass es veraltet ist,
oder nur aus einer anderen Quelle verfügbar aber die folgenden Pakete ersetzen: libreoffice-script-provider-python
So habe ich apt-get install libreoffice-script-provider-python
installiert
b) auf Ubuntu 14.14 zeigt es folgende Fehler
`Traceback (most recent call last):
File "/data/mdm/rawtoreportv5/ditupload.py", line 3, in <module>
from ditmgmt.ditmt import *
File "/data/mdm/rawtoreportv5/ditmgmt/ditmt.py", line 1, in <module>
import pyoo
File "/usr/local/lib/python2.7/dist-packages/pyoo.py", line 26, in <module>
FORMAT_TEXT = uno.getConstantByName('com.sun.star.i18n.NumberFormatIndex.TEXT')
AttributeError: 'module' object has no attribute 'getConstantByName'
`
Was soll ich tun, um es richtig auf Ubuntu 14.04 mit Python 2.7 zu laufen?
eine apt-cache Abfrage durchführen und es könnte auf etwas werfen –
Bitte erläutern Sie, wie relevant es für meine Anfrage ist ... !! –