Skip to content

CondaValueError: pip returned an error while creating the conda environment #3603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
paugier opened this issue Feb 13, 2018 · 12 comments
Closed
Labels
Support Support question

Comments

@paugier
Copy link

paugier commented Feb 13, 2018

Details

Expected Result

Building the doc with conda (as described in the files .readthedocs.yml and doc/environment.yml).

Actual Result

The build fails at the first command (creating the conda environment) with the very short error log:

  Running setup.py bdist_wheel for fluidfft: started

CondaValueError: pip returned an error.

See the failing build and a very similar succeeding build (Completed Nov. 22, 2017). Note that pip has to install exactly the same packages for the two builds (with the same pip version).

Of course I can create the environment at home with the commands:

hg clone https://bitbucket.org/fluiddyn/fluidsim
conda env create --name latest --file fluidsim/doc/environment.yml
@paugier paugier changed the title CondaValueError: pip returned an error while creating the conda environment CondaValueError: pip returned an error while creating the conda environment Feb 13, 2018
@Tikam02
Copy link

Tikam02 commented Feb 13, 2018

Try running as default environment 2.7 or 3.4, without anaconda

@paugier
Copy link
Author

paugier commented Feb 13, 2018

Thank you for the advice, but I don't see how the documentation could be built without conda. The dependencies:

  - numpy
  - cython
  - h5py
  - sphinx
  - numpydoc
  - jupyter
  - matplotlib
  - fftw
  - pyfftw
  - mako

FFTW on the readthedocs server without conda?

For scientific code, it is a very nice feature of readthedocs to be able to work with conda. I don't see how I could use readthedocs without conda (or a similar distribution) for such type of codes.

@stsewd
Copy link
Member

stsewd commented Feb 13, 2018

I tested on my local instance, seems like a problem with your repo visibility, I tried git clone https://bitbucket.org/fluiddyn/fluidsim on my terminal and also fails.

@paugier
Copy link
Author

paugier commented Feb 13, 2018

I think the repository has no problem. It is a Mercurial repository and Git can not handle Mercurial repositories (while it is possible to clone a Git repository with Mercurial).

Anyway, can you please try with

hg clone https://bitbucket.org/fluiddyn/fluidsim

@stsewd
Copy link
Member

stsewd commented Feb 13, 2018

@paugier, sorry, my bad. I was able to pass the first step on my local instance, but increasing the memory and time limits. So I think that's the problem here (memory limit exceeded).

@paugier
Copy link
Author

paugier commented Feb 13, 2018

Thank you for the hint. Do you know what are the memory and time limits for the "production" instance?

@stsewd
Copy link
Member

stsewd commented Feb 13, 2018

According to https://docs.readthedocs.io/en/latest/builds.html#build-process 1GB and 15 minutes.

@paugier
Copy link
Author

paugier commented Feb 14, 2018

Thanks a lot @stsewd for your time and your useful hint. I manage to decrease the memory usage during the build and the new version of the documentation is now available!

Of course, it could be nice to get an explicit warning when the memory or time limits are exceeded.

@RichardLitt RichardLitt added the Support Support question label Feb 14, 2018
@RichardLitt
Copy link
Member

Of course, it could be nice to get an explicit warning when the memory or time limits are exceeded.

This would be good, I think. Any chance you'd like to work on a PR for this? If not, let's flag open a new ticket for this.

@stsewd
Copy link
Member

stsewd commented Feb 15, 2018

@RichardLitt I create a new issue for this (#3613).
@paugier glad I was helpful here :)

@mrconway
Copy link

mrconway commented May 12, 2018

I've been getting this error for the past couple of months without any change in the build procedure:

https://readthedocs.org/projects/alphapy/builds/7177424/

Could be a memory limit issue as well... the process just stops in the middle of downloading the Python packages.

@RichardLitt
Copy link
Member

@mrconway Could you open a new issue and reference this one for that? This should have been resolved, so we should look into your error separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

5 participants