Impossible to import geopandas (libjson problem)
See original GitHub issueHi,
I have Ubuntu 18 and I have a libjson
dependency problem when I try to use geopandas. How to solve it?
Thank you
!conda install geopandas -c conda-forge
Fetching package metadata .............
Solving package specifications: .
# All requested packages already installed.
# packages in environment at /srv/conda:
#
geopandas 0.3.0 py36_0 conda-forge
import geopandas as gpd
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-16-a62d01c1d62e> in <module>()
----> 1 import geopandas as gpd
/srv/conda/lib/python3.6/site-packages/geopandas/__init__.py in <module>()
2 from geopandas.geodataframe import GeoDataFrame
3
----> 4 from geopandas.io.file import read_file
5 from geopandas.io.sql import read_postgis
6 from geopandas.tools import sjoin
/srv/conda/lib/python3.6/site-packages/geopandas/io/file.py in <module>()
1 import os
2
----> 3 import fiona
4 import numpy as np
5
/srv/conda/lib/python3.6/site-packages/fiona/__init__.py in <module>()
67 from six import string_types
68
---> 69 from fiona.collection import Collection, BytesCollection, vsi_path
70 from fiona._drivers import driver_count, GDALEnv
71 from fiona.drvsupport import supported_drivers
/srv/conda/lib/python3.6/site-packages/fiona/collection.py in <module>()
7
8 from fiona import compat
----> 9 from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
10 from fiona.ogrext import Session, WritingSession
11 from fiona.ogrext import (
ImportError: libjson-c.so.2: cannot open shared object file: No such file or directory
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (8 by maintainers)
Top Results From Across the Web
Python: why do I get an error when I import geopandas?
I get around this problem by creating a new environment and ensuring my gdal install is from the conda-forge channel by setting the ......
Read more >Unable to read in shapefile using GeoPandas
Here are the troubleshooting steps that I use to address an error such as yours: Double check the file path; Try to open...
Read more >Installation — GeoPandas 0.12.2+0.gefcb367.dirty ...
Ending up with a mixture of packages from both channels for the dependencies of GeoPandas can lead to import problems. See the conda-forge...
Read more >pip install geopandas error | The Search Engine You Control
(Ex. create -n py35 python=3.5 anaconda ). Then pip install geopandas. Finally, try to import geopandas and see if you still get the...
Read more >How to Install Geopandas Package on Ubuntu?
Geopandas is a Python library. It is used to add geographical data to pandas library as an object Geopandas is like a data...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK, opened an issue on the fiona feedstock: https://github.com/conda-forge/fiona-feedstock/issues/76
Thank you very much @ocefpaf