[apport] package python-sqlite failed to install/upgrade:

Bug #86552 reported by Daniel Elstner
50
Affects Status Importance Assigned to Milestone
python-sqlite (Ubuntu)
Fix Released
Undecided
Matthias Klose

Bug Description

Binary package hint: python-sqlite

Just upgraded from Edgy to Feisty today running "gksu update-manager -d". Everything went smooth except for python-sqlite, which failed to install. Unfortunately I can't post the log here as the terminal window has already been closed. However, I recall that the error message was about some pkg file supposedly already existing.

ProblemType: Package
Date: Tue Feb 20 20:18:56 2007
ErrorMessage:
 ErrorMessage: Unterprozess post-installation script gab den Fehlerwert 1 zurück
Package: python-sqlite
SourcePackage: python-sqlite

Revision history for this message
Andrew Mitchell (ajmitch) wrote :

The error message is:

Setting up python-sqlite (1.0.1-5ubuntu1) ...
pycentral: pycentral pkginstall: already exists: /usr/lib/python2.4/site-packages/pysqlite.egg-info -> /usr/share/pycentral/python-pysqlite2/site-packages/pysqlite.egg-info
pycentral pkginstall: already exists: /usr/lib/python2.4/site-packages/pysqlite.egg-info -> /usr/share/pycentral/python-pysqlite2/site-packages/pysqlite.egg-info
dpkg: error processing python-sqlite (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 python-sqlite

Changed in python-sqlite:
status: Unconfirmed → Confirmed
Revision history for this message
Daniel Elstner (daniel-elstner) wrote :

The problem goes away after uninstalling python-pysqlite2.

Revision history for this message
Martin Pool (mbp) wrote :

Confirmed. Maybe python-sqlite should Replace python-pysqlite2, if that is the intention?

Revision history for this message
Daniel Elstner (daniel-elstner) wrote :

Don't think so, as python-sqlite2 provides the Python interface to SQLite *3*, and e.g. gcompris depends on it. Seems they should be parallel-installable.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Both python-sqlite and python-pysqlite2 have the Python module name pysqlite and so install of one will fail if the other is already installed.

Revision history for this message
Ralf Nieuwenhuijsen (ralf-nieuwenhuijsen) wrote :

Which is problematic because 'griffith' is dependend upon it.

Revision history for this message
Piotr Ożarowski (piotr) wrote :

python-sqlite is providing "sqlite" module (for SQLite2) and python-pysqlite2 - "pysqlite2" (for SQLite3). The only conflicting data is Egg info.

I suggest to remove Egg info from python-sqlite package (so that:
`python -c 'import pkg_resources; pkg_resources.require("pysqlite")'` will return pysqlite2 data.

btw: Griffith uses python-sqlite to convert databases from SQLite2 to SQLite3 while upgrading from 0.6.2

Revision history for this message
Piotr Ożarowski (piotr) wrote :

With attached patch all works fine. Please note that upstream author is not providing Egg support by default, it is added by new setuptools and since python-sqlite is obsolete, I dare to say that removing Egg support will not make any damage to the package

Revision history for this message
Piotr Ożarowski (piotr) wrote :

Another solution is versioned Egg file name (that is allowed), but in that case pkg_resources always detects only the older package (1.0.1) even if python-pysqlite2 is providing versioned Egg.

(I still recommend to remove Egg file from python-sqlite, see my previous patch)

Revision history for this message
Piotr Ożarowski (piotr) wrote :

OK, I change my recommendation to:
* leave this (python-sqlite) package untouched
* apply my patch from #87493 to python-pysqlite2

:-)

Matthias Klose (doko)
Changed in python-sqlite:
assignee: nobody → doko
status: Confirmed → In Progress
Revision history for this message
Matthias Klose (doko) wrote :

fixed in python-sqlite_1.0.1-5ubuntu2

Changed in python-sqlite:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.