geopandas / scipy2018-geospatial-data

BSD 3-Clause "New" or "Revised" License
334 stars 193 forks source link

compile error #9

Closed mlcobb closed 6 years ago

mlcobb commented 6 years ago

I ran conda env create -f environment.yml on a new install of anaconda on a windows 7 machine and get the following errors:

1) Failed building wheel for rasterio Running setup.py clean for rasterio Failed to build rasterio mkl-random 1.0.1 requires cython, which is not installed. mkl-fft 1.0.0 requires cython, which is not installed.

2) ---------------------------------------- Command "c:\users\mlcobb\appdata\local\continuum\anaconda3\envs\scipygeo18\python.exe -u -c "import setuptools, tokenize;file='C:\Users\mlcobb\AppData\Local\Temp\pip-install-l_bqk9xw\rasterio\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\mlcobb\AppData\Local\Temp\pip-record-ccox88lp\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\mlcobb\AppData\Local\Temp\pip-install-l_bqk9xw\rasterio\

CondaValueError: pip returned an error

Any help appreciated. Thanks, Mike

ljwolf commented 6 years ago

I think we can get around this by installing rasterio from conda. I'll take a look.

ReneeErnst commented 6 years ago

I'm also having a problem trying to get the conda environment created on my windows machine for this tutorial. It sits stuck on solving environment and has been that way for over an hour. I've had no problems doing the same for other tutorials or setting up conda environments for other projects on my machine. Tried restarting just to see if that might help. Also tried setting up for another tutorial and then coming back to this one. No luck.

ljwolf commented 6 years ago

That's odd... not sure why that would happen. That's when you run conda env create -f environment.yml?

ReneeErnst commented 6 years ago

Yeah, that's what I'm running. It is an odd one given that it's not been an issue doing installs using the same command for other tutorials. It did just get to the point of installing packages after sitting there for just over an hour, so fingers crossed it completes now. I do have the most recent version of conda, so that's not the problem.

ReneeErnst commented 6 years ago

Hit the same issue with the rasterio package.

ljwolf commented 6 years ago

OK, we've just made a minor change to the environment.yml. Try re-downloading & installing the environment.

ReneeErnst commented 6 years ago

It's in the process of installing right now. I am seeing a warning that mkl-fft and mkl-random require cython, but that it is not installed. It did complete though.

ljwolf commented 6 years ago

Ok that should be ok.

On Sat, Jul 7, 2018, 18:36 Renee Murray notifications@github.com wrote:

It's in the process of installing right now. I am seeing a warning that mkl-fft and mkl-random require cython, but that it is not installed.

[image: image] https://user-images.githubusercontent.com/13136940/42415902-63cbd99c-8225-11e8-88ac-9c715f10ce0b.png

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/geopandas/scipy2018-geospatial-data/issues/9#issuecomment-403254992, or mute the thread https://github.com/notifications/unsubscribe-auth/ACJY885_UBo9PiYmav2CIChU8ekwMl9vks5uEWIWgaJpZM4VFqF7 .

--

Levi John Wolf Lecturer in Quantitative Human Geography | University of Bristol Fellow | Center for Spatial Data Science, University of Chicago Associate Member | Center for Multilevel Modeling, University of Bristol Interim Director | Q-Step Program, University of Bristol ljwolf.org