heroku-python / conda-buildpack

[DEPRECATED] Buildpack for Conda.
MIT License
157 stars 251 forks source link

Error #7

Closed bnjmnt4n closed 9 years ago

bnjmnt4n commented 9 years ago
Traceback (most recent call last):
  File "/app/.heroku/miniconda/bin/conda", line 3, in <module>
    from conda.cli import main
ImportError: No module named 'conda'

See https://travis-ci.org/wei2912/bce-simulation/builds/44591616.

bnjmnt4n commented 9 years ago

Ping? :)

kennethreitz commented 9 years ago

Interesting. You may want to try purging your application's build cache and see if this resolves the problem.

you can use the heroku repo:purge_cache command, available with this heroku plugin: https://github.com/heroku/heroku-repo

birdsarah commented 9 years ago

Hi, @kennethreitz. Thanks for maintaining this.

I was having the same issue:

Traceback (most recent call last):
  File "/app/.heroku/miniconda/bin/conda", line 3, in <module>
    from conda.cli import main
ImportError: No module named 'conda'

 !     Push rejected, failed to compile Python/Conda app

I switched to Python 2, (not Python 3) packages and it worked.

kennethreitz commented 9 years ago

@birdsarah this was caused by using python3?

bnjmnt4n commented 9 years ago

Could be. I encountered this issue when I switched to Python 3 too. I eventually switched back to Python 2, and it worked.

kennethreitz commented 9 years ago

How did you switch to python 3?

bnjmnt4n commented 9 years ago

I updated the conda-requirements.txt file to install Python 3.

birdsarah commented 9 years ago

I guess there's a lot going on right now, because I have actually forgotten!

I believe it was in the conda-requirements file. This buildpack, to my understanding, doesn't use the runtime.txt so I can't imagine what else I would have done.

asmeurer commented 9 years ago

What exactly did you put in the conda-requirements.txt file? conda should always keep itself correctly installed, even if you change python versions.

icoxfog417 commented 9 years ago

About #14

The error arose at from conda.cli import main (it is not the problem of command line tool, but the python code). I don't know exactly what, but I thought we need Python3 conda environment package to run the script.