0

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.

1 Answer 1

0

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.

12
  • Is this an attempt to answer the question? If so, I recommend expanding this to explain what you're recommending the OP do. Apr 7, 2013 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, 2013 at 20:32
  • @strugee the shebang line should be #!/usr/bin/env python3
    – dustin
    Apr 8, 2013 at 21:08
  • @dustin i made that change. still getting errors.
    – strugee
    Apr 9, 2013 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, 2013 at 22:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .