question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Impossible to import geopandas (libjson problem)

See original GitHub issue

Hi, 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:closed
  • Created 5 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
jorisvandenbosschecommented, May 17, 2018

OK, opened an issue on the fiona feedstock: https://github.com/conda-forge/fiona-feedstock/issues/76

1reaction
aborrusocommented, May 17, 2018

Thank you very much @ocefpaf

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found