Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I had a script, it is working with the package python-uno on Ubuntu 12.04 lts. The script is in python language and work with OOo to edit XLS files.

Now I upgraded to 13.10 and it seems the uno not working on this release.

Is there any other solution that work like python-uno? Or how can I know when the uno will be available for 13.10 ?!

UPDATE: i upgraded this ubuntu server with 'do-release-upgrade' and after update i got 'cant import uno package' in logs so tried to install python-uno from command line and i show this message :

peiman@digidoc:~$ sudo apt-get install python-uno
[sudo] password for peiman:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-uno is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libreoffice-script-provider-python

E: Package 'python-uno' has no installation candidate
share|improve this question

1 Answer 1

up vote 4 down vote accepted

If you read the message it says:

Package python-uno is not available, but is referred to by another package.  
This may mean that the package is missing, has been obsoleted, or  
is only available from another source  
However the following packages replace it:
  libreoffice-script-provider-python

Hence, what to do, instead of python-uno install libreoffice-script-provider-python instead:

sudo apt-get install libreoffice-script-provider-python

This will install python3-uno package, and the interface for LO to use UNO.

python-uno package was removed:

libreoffice (1:4.1.0-2ubuntu1) saucy; urgency=low

  * unfuzz Ubuntu palette patch
  * remove sessioninstaller for wizards patch -- they are all python now
  * remove python-uno (Python 2 bridge)
  * trying to remove the workdir before installing on ppa builds to squeeze in
    size requirements
  * smaller src-tarballs
  * do not run subsequentchecks in build anymore, as we can run them as an
    autopkgtest, which is better, and eases distress caused by PPA buildds
    being storage contrained
  * use system orcus for real
  * remove double echo
  * merge with upstream
  * use system lpsolve and graphite
  * kill of csh stuff for good
  * clean up dupes in -core breaks against -evolution
  * remove dbghelp.dll binary from tarball creation
  * silence lintian on the copyright file
  * make -dbg use python3-uno proper
  * fix build against poppler 0.23/0.24

 -- Bjoern Michaelsen   Thu, 01 Aug 2013 20:17:26 +0200
share|improve this answer
    
i installed the listed pakage but dont worked the same! it dont work the same! how can i know when the python-uno will release for 13.10 –  peiman F. Feb 9 at 18:21
    
@peimanF. python-uno was dropped of all ubuntu versions, it will not come back. –  Braiam Feb 9 at 18:27
    
i changed my code to 'python3 /var/www/dg2/inc/DocumentConverter.py' but got this error: File "/var/www/dg2/inc/DocumentConverter.py", line 130 raise DocumentConversionException, "failed to connect to OpenOffice.org on port %s" % port ^ SyntaxError: invalid syntax –  peiman F. Feb 9 at 18:43
    
and open office is running for me peiman@digidoc:/usr/bin$ sudo netstat -nap | grep office unix 2 [ ACC ] STREAM LISTENING 2794171 4301/soffice.bin /tmp/OSL_PIPE_1000_SingleOfficeIPC_84166f53c65d9ded4d416e24fa9b5d8 –  peiman F. Feb 9 at 18:58
    
There are several things that must be changed in your code to make it python3 compatible docs.python.org/3/howto/pyporting.html –  Braiam Feb 9 at 18:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.