Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I uploaded my python project by running "quickly submitubuntu", but it failed to build on Launchpad. "quickly submitubuntu" is supposed to add package dependencies automatically, but the error log https://launchpadlibrarian.net/108711786/buildlog_ubuntu-precise-i386.indicator-launcher_12.06.24_FAILEDTOBUILD.txt.gz says some python modules aren't found; for example "ERROR: Python module gconf not found". Is this a bug in quickly, or is there something wrong in my program?

share|improve this question

closed as too localized by Marco Ceppi Oct 30 '12 at 15:31

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

5 Answers

up vote 11 down vote accepted
+50

Recommended fix

This was a bug in Quickly that has now been fixed in version 12.04-0ubuntu3. The fixed package is now available in the precise-proposed pocket in the archive. It will still take some days to verify and upload the fixed package to precise-upload, which is where all users will automatically get the fix from, but in the meantime you can install it from -proposed following these steps:

  1. Open the Ubuntu Software Centre
  2. Click on the Edit > Software Sources... menu entry
  3. Ensure the Pre-released updates (precise-proposed) entry is checked (see image below)
  4. Click on the Close button to save changes
  5. You can quit the Software Center now

enter image description here

Then:

  1. Open a terminal
  2. Type the sudo apt-get update command, followed by Enter
  3. Type the sudo apt-get install quickly-ubuntu-template command, followed by Enter

This will install the fixed Quickly package, which will enable you to use the quickly submitubuntu command as usual.

Alternative workaround

Note: the recommended fix should work for most cases. Apply this workaround only if the recommended fix did not work or if you are knowledgeable in packaging and know what you're doing.

As andrewsomething explained, that dependency is missing and there is a workaround for now. Well from that I figured out how to get it uploaded and working as expected. In fact, I just officially submitted my app for the Ubuntu App Showdown! andrewsomething's instructions didn't quite work for me (I think the sed line was wrong, if you read this). Here's what I did:

  1. In terminal run: quickly package --extras
  2. Edit the control file in the debian folder of your project and add libglib2.0-bin to the Build-Depends list. Be sure to keep the list separated by commas as it should be.
  3. In terminal run: debuild -S
  4. In terminal run: dput ppa:yourusername/ppa ../projectname_*_source.changes

(In the dput command be sure to have the right ppa name and the newest source.changes file which would have been created by the debuild command.)

Thanks again to andrewsomething for his original instructions!

share|improve this answer
Hi! I give a fatal error :( paste.ubuntu.com/1066120 Any idea, please? Thanks in advance! – costales Jun 30 '12 at 15:30
2  
go to the debian/control file of your project and modify name: blog.gauner.org/blog/2010/12/06/… – function Jun 30 '12 at 15:34
After bumping up the version in changelog and control file, it worked! Thanks andrewsomething and thejambi – function Jun 30 '12 at 16:30
This was giving me problems until I added DEBFULLNAME and DEBEMAIL environment variables because the packaging system couldn't find my signing key. Thanks, guys. wiki.ubuntu.com/PackagingGuide/… – John Watson Jul 3 '12 at 1:01
@JohnWatson Indeed, I had to do that too. – RobinJ Jul 4 '12 at 8:20
show 5 more comments

The part of the log that describes why it fails to build is:

if [ -d debian/indicator-launcher/opt/extras.ubuntu.com/indicator-launcher/share/glib-2.0/schemas ]; then glib-compile-schemas debian/indicator-launcher/opt/extras.ubuntu.com/indicator-launcher/share/glib-2.0/schemas; fi
/bin/sh: 1: glib-compile-schemas: not found
make[1]: *** [override_dh_install] Error 127
make[1]: Leaving directory `/build/buildd/indicator-launcher-12.06.24'
make: *** [binary] Error 2

The build process tries to call glib-compile-schemas but it is not installed. You should add the libglib2.0-bin package to the Build-Depends in debian/control

This is a bug in quickly, not your app. I've file a bug about this:

https://bugs.launchpad.net/ubuntu/+source/quickly/+bug/1018038


Since quickly tries to automate the packaging, running quickly submmitubuntu will apparently over write any manual changes to files in debian/. Also quickly configure dependencies seems to only add dependencies to binary package not build time dependencies.

Until the bug is fixed, you can work around it in this round about way:

quickly package --extras
sed -i -e 's/Build-Depends:\ /Build-Depends:\ libglib2.0-bin, \ /' debian/control
debuild -S
dput ppa:lp-username/ppa-name ../foo_0.1_source.changes
share|improve this answer
thank you so much andrewsomething! i'll try modifying debian/control – function Jun 26 '12 at 19:15
actually, running "quickly submmitubuntu" creates a new debian/control file, erasing all of my modifications...I guess I'll just wait for the bug to be fixed – function Jun 26 '12 at 19:49
you did the leg-work on what actually happens...do you want to post that on the launchpad thread? – Call me V Jun 26 '12 at 22:50
1  
@costales blog.gauner.org/blog/2010/12/06/… – function Jun 30 '12 at 15:39
1  
I think you do "quickly package" instead of "quickly package --extras" – function Jun 30 '12 at 17:40
show 5 more comments

Sometimes quickly doesn't find dependencies.

FYI, it's now possible in trunk to add manual dependencies.

Just use $ quickly configure dependencies and add dependencies separated by spaces or newline there.

source launchpad answers

share|improve this answer

We have the same problem. We had a line into our control file, but each time we made an ubuntu submit command, the file is erasing, and the libglib2.0-bin is not in the file. We also try that $ quickly configure dependencies but it doesn't work. Can you tell us how to resolve this problem please ?

share|improve this answer
the same thing happened to me, the file resetting; just waiting for updates at bugs.launchpad.net/ubuntu/+source/quickly/+bug/1018038 – function Jun 27 '12 at 0:38

I still have the problem even if I am using quickly configure dependencies. My control is :

Source: facebookupload

Section: python Priority: extra Build-Depends: cdbs (>= 0.4.43), debhelper (>= 6), python (>= 2.6.6-3~), python-distutils-extra (>= 2.10) Maintainer: christian246 Standards-Version: 3.8.3 XS-Python-Version: current

Package: facebookupload Architecture: all XB-Python-Version: ${python:Versions} Depends: ${misc:Depends}, ${python:Depends}, gir1.2-gtk-3.0, gir1.2-nautilus-3.0, gir1.2-glib-2.0, gir1.2-gdkpixbuf-2.0, python-poster, gir1.2-launchpad-integration-3.0, yelp, libglib2.0-bin Description: UNKNOWN UNKNOWN

share|improve this answer
quickly configure dependencies doesn't seem to work; look at the first answer – function Jul 5 '12 at 2:30

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