Skip to content
This repository has been archived by the owner on Nov 13, 2020. It is now read-only.

Error #7

Closed
bnjmnt4n opened this issue Dec 19, 2014 · 10 comments
Closed

Error #7

bnjmnt4n opened this issue Dec 19, 2014 · 10 comments

Comments

@bnjmnt4n
Copy link

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
Copy link
Author

Ping? :)

@kennethreitz
Copy link
Contributor

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
Copy link

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
Copy link
Contributor

@birdsarah this was caused by using python3?

@bnjmnt4n
Copy link
Author

bnjmnt4n commented Mar 6, 2015

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

@kennethreitz
Copy link
Contributor

How did you switch to python 3?

@bnjmnt4n
Copy link
Author

bnjmnt4n commented Mar 6, 2015

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

@birdsarah
Copy link

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
Copy link

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
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

5 participants