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
Failing on binder with libjson error #76
Comments
I pulled the new json-c and things should be OK for now. Thanks @jorisvandenbossche! |
For people who still get this error, here is a workaround that worked for me. In the
|
Do not do that. The ABI change and this will crash badly. This issue was solved as I said in #76 (comment) All you need to do is to update or recreate your envs. |
Sorry, I didn't know about these side effects, but removing and re-installing |
The new json-c was probably cached. Can you do a |
I just did the following after removing the symbolic link I created previously:
Now when I try to import fiona, I get the error about the missing |
Let's try a fresh env: conda create --name TEST python=3.6 fiona
conda activate TEST
> python -c "import fiona; print(fiona.__version__)"
1.7.11 Here are the results of my
as you can see I got the same |
I created a new environment and could import fiona without problems. In my existing environment I uninstalled json-c, which was version |
Have the same issue in Geopandas. On conda install geopandas: `The following NEW packages will be INSTALLED:
Geopandas is pulling in the _1 version of fiona and Not sure if I should file this issue here or on geopandas, please advise. |
Conda is getting some old and unpinned build number to wiggle its way out of solving a more complex set of dependencies. I removed those to avoid giving conda the choice to do the wrong thing there. Can you try again? Note that you'll probably need to clear your cache. You'll know that you got the right fiona if it is build number 3. |
This worked. Thank you. Clearing cache was a step I had not taken. |
I still have the same issue on python 2.7 with json-c being the 0.13.1 version and causing the ImportError (conda-forge channel on top of priority list and cache cleared). BTW, everything works fine on windows. |
@YassineAbdelouadoud please send the steps to reproduce your environment and the results of conda list. |
Steps to reproduce :
Attached are a text file containing the output of conda list and the env file (saved as txt to upload here) |
For some reason you are getting Just unpinning the micro version of Python did the trick for me. However, if you want to force the right name: dimosim
channels:
- conda-forge
- defaults
dependencies :
- python=2.7
- pandas
- scipy
- cython
- numba
- pytz
- h5py
- jupyter
- pytables
- matplotlib
- seaborn
- colorama
- pytest
- pyqtgraph
- networkx<2.0
- nb_conda
- geopandas
- rasterio
- fiona=1.7.11
- pip:
- pyopengl
- pytess
- geojson
- lxml
- pytest-cov
- tabulate
- pyephem
- multiprocess
- pvlib
- sphinx
- nbsphinx
- sphinx-autoapi
- sphinxcontrib-fulltoc
- sphinx_rtd_theme
- geojson
- pyproj
- tqdm
- xlwt |
It turns out the pinning of the python micro version was not needed anymore so just unppining it worked like a charm. Thanks for your help ! |
(don't know in which feedstock to best open it)
From geopandas/geopandas#727 (comment)
Importing fiona is failing with
ImportError: libjson-c.so.2: cannot open shared object file: No such file or directory
in a simple binder environment: https://github.com/aborruso/geopandashub(when it was failing it was: https://github.com/aborruso/geopandashub/blob/1f746abd31f29e0e0554dc42e5da16f6cd7bc85a/binder/environment.yml, now
defaults
was added)The text was updated successfully, but these errors were encountered: