Bug#522022: ERROR: python-loader:<type 'exceptions.ImportError'>: No module named pythonloader
Hi,
Raphael Hertzog wrote:
> So the problem only happens during upgrades. If python-uno is unpacked but
> not configured, it will not work, you can easily reproduce the problem
> by doing this:
> rhertzog@rivendell:~$ sudo dpkg --unpack /var/cache/apt/archives/python-uno_1%3a3.0.1-11_i386.deb
> (Lecture de la base de données... 235909 fichiers et répertoires déjà installés.)
> Préparation du remplacement de python-uno 1:3.0.1-11 (en utilisant .../python-uno_1%3a3.0.1-11_i386.deb) ...
> Dépaquetage de la mise à jour de python-uno ...
> rhertzog@rivendell:~$ sudo dpkg --unpack /var/cache/apt/archives/openoffice.org-emailmerge_1%3a3.0.1-11_all.deb
> (Lecture de la base de données... 235909 fichiers et répertoires déjà installés.)
> Préparation du remplacement de openoffice.org-emailmerge 1:3.0.1-11 (en utilisant .../openoffice.org-emailmerge_1%3a3.0.1-11_all.deb) ...
> Removing extension org.openoffice.legacy.mailmerge.py...
> ERROR: python-loader:<type 'exceptions.ImportError'>: No module named pythonloader, traceback follows
> no traceback available
>
> unopkg failed.
> done.
> Dépaquetage de la mise à jour de openoffice.org-emailmerge ...
>
> Either you pre-depend on python-uno or you ensure that python-uno is
> functional when simply unpacked (and not configured). Or you stop removing
Tell that our beloved new python policy guys with pycentral/pysupport, please.
Where the stuff is only there after the packages' postinst ran.
> the extension in the preinst and do everything in the postinst.
No, it has to be removed in the preinst, because the postinst registers the
*new* one, and the old one should be gone before the new one gets installed.
Otherwise you might get interesting effects..
Looks like I need a Pre-Depends: on python-uno. sigh.
Grüße/Regards,
René
--
.''`. René Engelhard -- Debian GNU/Linux Developer
: :' : http://www.debian.org | http://people.debian.org/~rene/
`. `' rene@debian.org | GnuPG-Key ID: 248AEB73
`- Fingerprint: 41FA F208 28D4 7CA5 19BB 7AD9 F859 90B0 248A EB73
Reply to: