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 trying to write an application using Quickly.

I'm writing a new Python 3 file in which I import a module installed via pip3 (pystache). However, when I go to quickly package, I get a traceback error:

alex@ubuntu:~/Development/templater$ quickly package
......
----------------------------------
Command returned some ERRORS:
----------------------------------
ERROR: Python module pystache not found
----------------------------------
Do you want to continue (this is not safe!)? y/[n]: 

How can I ensure that this works, and pystache is picked up by the build system?

At the request of an answer, I've run which python, which returns /usr/bin/python.

share|improve this question
add comment

1 Answer 1

Do you have another version of Python installed? That is my guess so when you installed the module it was set to work with say Python 2.7.

Type this in the terminal. I will tell you what python version it recognizes.

which python

For python3.2 (on my system), it would say usr/bin/python3.2.

If you see usr/bin/python, then the modules are being synced to python 2.7 or whatever the standard version is installed.

share|improve this answer
    
Is this an attempt to answer the question? If so, I recommend expanding this to explain what you're recommending the OP do. –  Eliah Kagan Apr 7 '13 at 21:25
    
@dustin: i'm trying to use python 3. when i installed the module i used pip3, not pip. at the top of my custom python script i have #!/usr/bin/python3, not #!/usr/bin/python. –  strugee Apr 8 '13 at 20:32
    
@strugee the shebang line should be #!/usr/bin/env python3 –  dustin Apr 8 '13 at 21:08
    
@dustin i made that change. still getting errors. –  strugee Apr 9 '13 at 22:38
    
@strugee are you opening a new file and doing import pystache and then getting errors? You might want to think about asking this question on stackoverflow since it is programming not Ubuntu. –  dustin Apr 9 '13 at 22:43
show 7 more comments

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.