Python/QT Packaging Problems (PyPackager and dpkg)
I am trying to package a python/qt app on the N900 using pypackager to build the deb, and dpkg to install the deb.
Problems I am having:
1. In my make.py file, I put in a depend on python2.5-qt4-gui as I am using a 'import PyQt4' statement within the UI.py file. dpkg reports the following when I try to install the resulting .deb (as root):
Code:
dpkg: dependency problems prevent configuration of maeflight:
maeflight depends on python2.5-qt4-gui; however:
Package python2.5-qt4-gui is not configured yet.
dpkg: error processing maeflight (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
maeflight
2. So, I tried apt-get -f install to correct dependencies, with the following result:
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
python2.5-qt4-xmlpatterns
The following NEW packages will be installed:
python2.5-qt4-xmlpatterns
0 upgraded, 1 newly installed, 0 to remove and 37 not upgraded.
27 not fully installed or removed.
Need to get 0B/68.8kB of archives.
After this operation, 307kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 26935 files and directories currently installed.)
Unpacking python2.5-qt4-xmlpatterns (from .../python2.5-qt4-xmlpatterns_4.7-maemo5_armel.deb) ...
dpkg: error processing /var/cache/apt/archives/python2.5-qt4-xmlpatterns_4.7-maemo5_armel.deb (--unpack):
trying to overwrite `/usr/lib/python2.5/site-packages/PyQt4/QtXml.so', which is also in package python2.5-qt4-xml
Errors were encountered while processing:
/var/cache/apt/archives/python2.5-qt4-xmlpatterns_4.7-maemo5_armel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any ideas on what the issue is, and what I could try to resolve this?
|