Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm having some trouble packaging my Quickly (Python/GTK) app. Creating and packaging a new app (created using quickly create test and cd test; quickly package) works just fine, but the actual app that I've developed fails to get packaged. Here's the log:

...........
----------------------------------
Command returned some ERRORS:
----------------------------------
ERROR: Python module helpers not found
ERROR: Python module ubermessageconfig not found
ERROR: Python module Builder not found
ERROR: Python module Window not found
----------------------------------

However, these modules do exist in app/app_lib. What's causing the errors, then?

Help appreciated.

share|improve this question
    
Is 'app' the actual name of your application? –  mhall119 Jun 18 '12 at 21:09
    
Not really. Doesn't clash with an already-installed package if that's what you're asking about. –  aviraldg Jun 18 '12 at 22:05
add comment

2 Answers 2

up vote 2 down vote accepted

I figured out the reason:

Turns out, Quickly scans your python code to generate a list of dependencies. If you have half-written modules with syntax errors, quickly package will fail (even if you haven't imported the offending modules anywhere.)

share|improve this answer
add comment

Ah, you probably should be using relative imports like "from . helpers import XXX" (note the dot)

That prevents quickly from being confused when it tries to find the package that the import belongs to (it knows to ignore explicitly relative imports).

share|improve this answer
    
I am, and it still doesn't work. –  aviraldg Jun 18 '12 at 20:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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