Python Uno on Ubuntu 13.10

Hello,

I recently upgraded to Ubuntu 13.10, which apparently deprecated the
python-uno package which supports Python 2.7. Unfortunately I need this
for use with Appy POD (http://appyframework.org/pod.html), which is a
Python based libreoffice template framework for Writer and Calc. Any ideas
how I can get Python 2.7 Uno support on Ubuntu 13.10?

Any help would be greatly appreciated.

Best regards,
Element Green

You probably need to install Synaptic. I do not it is installed by default.

I believe the command in terminal is

sudo apt-get install synaptic

Once Synaptic is installed, open it and search for python-uno to see if there is one for 2.7 available.

Thanks for the tip. However, I usually just use the command line
applications apt-get, dpkg and apt-cache. This isn't a package manager or
operator error, from what I can tell. There appears to be a lack of Python
Uno support for Python 2.7 on Ubuntu 13.10. I'm trying to figure out how
to add such support to the existing packages, if possible. Or secondarily
finding a different set of Ubuntu packages which do include this support.

There is a python3-uno, but it doesn't help me, since Appy POD does not yet
support Python 3. The package was called python-uno on previous Ubuntu
versions, but now its marked as deprecated and attempting to install it
indicates that the libreoffice-script-provider-python replaces it.
Installing this does not provide Python uno support though and from the
package description it doesn't sound like that is what its for: "Python
script support provider for LibreOffice scripting framework".

Does anyone know if Python uno support depends on the libreoffice binaries?
If Ubuntu 13.10 did indeed drop Python uno support for 2.7, do I have to
find another source for the libreoffice binaries to get this to work?

Best regards,

Element Green

Hi,

There is a python3-uno, but it doesn't help me, since Appy POD does not yet
support Python 3. The package was called python-uno on previous Ubuntu
versions, but now its marked as deprecated and attempting to install it
indicates that the libreoffice-script-provider-python replaces it.
  Installing this does not provide Python uno support though and from the
package description it doesn't sound like that is what its for: "Python
script support provider for LibreOffice scripting framework".

From what I can tell, my Ubuntu 13.04 has both python-uno (using python 2.7) or python3-uno as mutually exclusive installable possibilities. That would appear to have changed with the release of Ubuntu 13.10 ?

Does anyone know if Python uno support depends on the libreoffice binaries?
  If Ubuntu 13.10 did indeed drop Python uno support for 2.7, do I have to
find another source for the libreoffice binaries to get this to work?

I seem to recall that Python3 support was introduced as the default with the switch to the LO 4.1 series, which is what is supplied with Ubuntu 13.10, I believe.

If you want to carry on using pyuno built against python 2.7, I guess you will need to completely remove the Ubuntu provided LO and python dependencies, and attempt to install either an earlier version of an Ubuntu provided LO package (if possible), or else the DEB packages available from the LO download site, which will not integrate in the same way as the Ubuntu provided packages.

Alex

Hi :slight_smile:
It might be worth talking to the devs on irc or something. I think
this issue is a bit beyond most of us here. They might be able to
help you deal with the immediate problem by finding the best version
of LibreOffice for you for now but then maybe help you with upgrading
to a newer version of python and whatever else you are stuck on at the
moment.
Regards from
Tom :slight_smile:

Hi,

There is a python3-uno, but it doesn't help me, since Appy POD does not

yet
support Python 3. The package was called python-uno on previous Ubuntu
versions, but now its marked as deprecated and attempting to install it
indicates that the libreoffice-script-provider-python replaces it.
  Installing this does not provide Python uno support though and from the
package description it doesn't sound like that is what its for: "Python
script support provider for LibreOffice scripting framework".

From what I can tell, my Ubuntu 13.04 has both python-uno (using python
2.7) or python3-uno as mutually exclusive installable possibilities. That
would appear to have changed with the release of Ubuntu 13.10 ?

Indeed, I previously had Ubuntu 13.04 and python-uno (for Python 2.7) was
available and worked great. Not sure why it got deprecated, I can't seem
to find a ChangeLog entry anywhere to that effect.

Does anyone know if Python uno support depends on the libreoffice
binaries?
  If Ubuntu 13.10 did indeed drop Python uno support for 2.7, do I have to
find another source for the libreoffice binaries to get this to work?

I seem to recall that Python3 support was introduced as the default with
the switch to the LO 4.1 series, which is what is supplied with Ubuntu
13.10, I believe.

I wonder if the Python version is a build time option for LibreOffice? I
might be able to repackage libreoffice for Python 2.7 from the Ubuntu
packages.

If you want to carry on using pyuno built against python 2.7, I guess you

will need to completely remove the Ubuntu provided LO and python
dependencies, and attempt to install either an earlier version of an Ubuntu
provided LO package (if possible), or else the DEB packages available from
the LO download site, which will not integrate in the same way as the
Ubuntu provided packages.

I was afraid that might be the case.

Alex

Thank you for the info.

Element

Thank you for the tip. I previously tried the user channel on IRC, but
didn't get a response at the time. I have a question field on Appy POD and
Askubuntu, hopefully that turns up something there.

Best regards,

Element

I don't know what "user channel" on IRC you tried, but both #ubuntu and #python would be my first choices. Also note, that there's no telling who's listening at any one snapshot in time, so you want to repeat your question there at various times throughout the day & night. You get very different pools of knowledge at different times - especially "after hours" when the other side of the world wakes up. One person may simply tell you to go elsewhere to find your answer, or that what you're trying is simply not possible - while the same question posed two hours later may very well result in a solution from someone else that just showed up (or started paying attention).

For the record, don't argue with anyone because you never know who has power there, and they may decide to ban you because they're having a bad day and don't like how you reacted to what they said - no matter how polite you are in your disagreement. And those bans can last a lifetime. So just nod and smile, wait for that person to go away and then ask the question again when they're not paying attention.

Hi :slight_smile:
I didn't even know there was an irc channel for users :frowning: I'm not into
irc and i think most of us probably find that sort of thing a bit too
geeky. Well, i think it sounds geeky and that i'm unlikely to
understand it. Also i get the impression it's like social networking
or real-time communications which puts me off a little.

There is an AskLO bot but i don't know how to access it and i've got a
feeling they aren't any more technical than we are on this list. The
trick is trying to find some way of accessing the devs without being
too off-topic for their channel
Apols and regards from
Tom :slight_smile: