Closed aborruso closed 6 years ago
There is a mix of package from defaults
and conda-forge
that won't work. You nedd to use one or the other.
I would try to add these commands before creating the env
:
conda config --remove channels defaults
conda config --add channels conda-forge
and then modifying the env file to be:
channels:
- conda-forge
dependencies:
- matplotlib
- pandas
- geopandas
- beautifulsoup4
- altair
- vega_datasets
- notebook
- vega3
- cython
- descartes
- cartopy
- contextily
- lxml
- csvkit
- httpie
- ipywidgets
- ipython-sql
- chardet
- pip:
- bash_kernel
- yq
- requests-html
- csvs-to-sqlite
- goodtables
- pyexcel-cli
- daff
I would try to add these commands before creating the env:
How do you do that with binder?
How do you do that with binder?
Sorry I just assumed the user was providing a dockerfile. If not. just try the env without defaults
. In my experience some versions of conda still pull things from defaults
even when it is not listed, but I guess the latest version won't.
@ocefpaf please do not close the issue.
Now I will try with without defaults, thank you
PS: the last time I tried it worked.
Yep, for me it is also working (with some mixture of conda-forge and defaults, which should not necessarily be a problem), so therefore I was thinking there is something else here causing the trouble (but then probably not related to geopandas).
@aborruso one way to go would be to start with a very minimal environment.yaml file with only basics (like the one @ocefpaf linked above), see if that works, and then start adding your other deps, and see where it goes wrong (then you might be able to pin a specific package that causes problems).
@ocefpaf if I try to import geopandas in your https://github.com/ocefpaf/GCOOS_meeting/blob/master/environment.yml I have no geopandas module.
I feel myself stupid :(
Thank you
@ocefpaf please do not close the issue.
I closed b/c it is not an issue with the feedstock, not an actionable issue, nothing to fix here.
It is an issue with how conda deals with multiple channels and conda useage.
For more info see:
https://conda-forge.org/docs/conda-forge_gotchas.html#using-multiple-channels
https://github.com/conda/conda/issues/7656
and
https://github.com/geopandas/geopandas/issues/237#issuecomment-418449906
@ocefpaf if I try to import geopandas in your https://github.com/ocefpaf/GCOOS_meeting/blob/master/environment.yml I have no geopandas module. I feel myself stupid :(
That was an example that by removing defaults
from your env things will work even without the commands that you cannot execute on binder. You should use your env without defaults like I posted in https://github.com/conda-forge/geopandas-feedstock/issues/44#issuecomment-418706141
I read your notes @ocefpaf and I think that with binder the only way is to start with a very minimal environment.yaml (thank you @jorisvandenbossche )
@ocefpaf it's the same removing defaults
I must do a very slow try and error
I read your notes @ocefpaf and I think that with binder the only way is to start with a very minimal environment.yaml
Not sure what you mean by that but minimal or not you'll have to list only 1 channel. Either defaults
or conda-forge
, not both.
If defaults
packages are still being pulled even when removing it from the env it is a conda
bug or binder is giving you a cached imaged. You can check that by using conda list
after the creation and checking if all the packages are from conda-forge
or not.
@ocefpaf I have tried with only conda-forge and I have also packages from defaults.
I write an issue in binder, thank you
I write an issue in binder, thank you
I'm not sure they can help you. Please take some time to read the link I sent. It ultimately an issue with conda and is being fixed, meanwhile we need to workaround it.
I'll try the workaround I suggested and I'll report back here. Hold on.
@ocefpaf thank you for your patience.
I'm using mybinder, now I can use only it.
I have read your links and I do not find a workaround that I can apply in binder. The only workaround seems to me to try and error adding one by one packages.
I'm sorry if I'm writing stupid things and thank you again
@aborruso this works for me:
https://github.com/ocefpaf/test_binder_env
It turns out you did not specify the Python version and AnacondaInc just released the latest miniconda
with Python 3.7 even thought it is still labeled as Python 3.6.
@ocefpaf you and python=3.6
have done magic. Thank you very much, it works
The lib ncurses gets installed as version 5.9-10. Making the installation with conda install -c conda-forge geopandas python=3.6
updates the ncurses to 6.1, so the error goes away
ImportError: libncurses.so.6: cannot open shared object file: No such file or directory
Issue: Hi, I have a mybinder project with these settings and the docker machine is created without problems.
When I import geopandas I have:
I do not how to solve and it's possible that someone of you knows how to do it.
Thank you
Environment (
conda list
):Details about
conda
and system (conda info
):