conda-forge / geopandas-feedstock

A conda-smithy repository for geopandas.
BSD 3-Clause "New" or "Revised" License
16 stars 14 forks source link

import geopandas not working with ipython but works with python #62

Closed 4rachelgreen closed 5 years ago

4rachelgreen commented 5 years ago

Issue: I am not able to import geopandas in Jupyter notebooks and get the following error: ImportError: libpoppler.so.71: cannot open shared object file: No such file or directory

I have tried recreating the environment but still get this error when importing geopandas (as well as fiona). I also tried updating poppler but still getting the same error.

However, when using the jupyter terminal and python I can import geopandas successfully.


Environment (conda list):

``` $ conda list # # Name Version Build Channel _libgcc_mutex 0.1 main affine 2.2.2 py_0 conda-forge altair 3.2.0 py37_0 conda-forge asn1crypto 0.24.0 py37_1003 conda-forge attrs 19.1.0 py_0 conda-forge bokeh 1.3.4 py37_0 conda-forge boost-cpp 1.70.0 ha2d47e9_1 conda-forge branca 0.3.1 py_0 conda-forge bzip2 1.0.8 h516909a_0 conda-forge ca-certificates 2019.6.16 hecc5488_0 conda-forge cairo 1.16.0 h18b612c_1001 conda-forge cartopy 0.17.0 py37h4331854_1006 conda-forge certifi 2019.6.16 py37_1 conda-forge cffi 1.12.3 py37h8022711_0 conda-forge cfitsio 3.470 hb60a0a2_2 conda-forge chardet 3.0.4 py37_1003 conda-forge click 7.0 py_0 conda-forge click-plugins 1.1.1 py_0 conda-forge cligj 0.5.0 py_0 conda-forge cloudpickle 1.2.1 py_0 conda-forge contextily 1.0rc2 py_0 conda-forge cryptography 2.7 py37h72c5cf5_0 conda-forge curl 7.65.3 hf8cf82a_0 conda-forge cycler 0.10.0 py_1 conda-forge cytoolz 0.10.0 py37h516909a_0 conda-forge dask 2.3.0 py_0 conda-forge dask-core 2.3.0 py_0 conda-forge dbus 1.13.6 he372182_0 conda-forge decorator 4.4.0 py_0 conda-forge deprecated 1.2.6 py_0 conda-forge descartes 1.1.0 py_3 conda-forge distributed 2.3.2 py_1 conda-forge entrypoints 0.3 py37_1000 conda-forge expat 2.2.5 he1b5a44_1003 conda-forge fiona 1.8.6 py37h5f563d9_4 conda-forge folium 0.10.0 py_0 conda-forge fontconfig 2.13.1 he4413a7_1000 conda-forge freetype 2.10.0 he983fc9_1 conda-forge freexl 1.0.5 h14c3975_1002 conda-forge fsspec 0.4.2 py_0 conda-forge gdal 2.4.2 py37h0b7157c_7 conda-forge geographiclib 1.49 py_0 conda-forge geojson 2.5.0 py_0 conda-forge geopandas 0.5.1 py_0 conda-forge geopy 1.20.0 py_0 conda-forge geos 3.7.2 he1b5a44_1 conda-forge geotiff 1.5.1 hcd53e25_3 conda-forge gettext 0.19.8.1 hc5be6a0_1002 conda-forge giflib 5.1.7 h516909a_1 conda-forge glib 2.58.3 h6f030ca_1002 conda-forge gst-plugins-base 1.14.5 h0935bb2_0 conda-forge gstreamer 1.14.5 h36ae1b5_0 conda-forge hdf4 4.2.13 h9a582f1_1002 conda-forge hdf5 1.10.4 nompi_h3c11f04_1106 conda-forge heapdict 1.0.0 py37_1000 conda-forge icu 58.2 hf484d3e_1000 conda-forge idna 2.8 py37_1000 conda-forge imageio 2.5.0 py37_0 conda-forge jinja2 2.10.1 py_0 conda-forge joblib 0.13.2 py_0 conda-forge jpeg 9c h14c3975_1001 conda-forge json-c 0.13.1 h14c3975_1001 conda-forge jsonschema 3.0.2 py37_0 conda-forge kealib 1.4.10 h1978553_1003 conda-forge kiwisolver 1.1.0 py37hc9558a2_0 conda-forge krb5 1.16.3 h05b26f9_1001 conda-forge libblas 3.8.0 12_openblas conda-forge libcblas 3.8.0 12_openblas conda-forge libcurl 7.65.3 hda55be3_0 conda-forge libdap4 3.20.2 hd48c02d_1000 conda-forge libedit 3.1.20170329 hf8c457e_1001 conda-forge libffi 3.2.1 he1b5a44_1006 conda-forge libgcc-ng 9.1.0 hdf63c60_0 libgdal 2.4.2 h182c168_7 conda-forge libgfortran-ng 7.3.0 hdf63c60_0 libiconv 1.15 h516909a_1005 conda-forge libkml 1.3.0 h4fcabce_1010 conda-forge liblapack 3.8.0 12_openblas conda-forge libnetcdf 4.6.2 hbdf4f91_1001 conda-forge libopenblas 0.3.7 h6e990d7_1 conda-forge libpng 1.6.37 hed695b0_0 conda-forge libpq 11.5 hd9ab2ff_1 conda-forge libspatialindex 1.9.0 he1b5a44_1 conda-forge libspatialite 4.3.0a h57ae47a_1030 conda-forge libssh2 1.8.2 h22169c7_2 conda-forge libstdcxx-ng 9.1.0 hdf63c60_0 libtiff 4.0.10 h57b8799_1003 conda-forge libuuid 2.32.1 h14c3975_1000 conda-forge libxcb 1.13 h14c3975_1002 conda-forge libxml2 2.9.9 h13577e0_2 conda-forge locket 0.2.0 py_2 conda-forge lz4-c 1.8.3 he1b5a44_1001 conda-forge markupsafe 1.1.1 py37h14c3975_0 conda-forge matplotlib 3.1.1 py37_0 conda-forge matplotlib-base 3.1.1 py37hfd891ef_0 conda-forge mercantile 1.1.2 py_0 conda-forge msgpack-python 0.6.1 py37h6bb024c_0 conda-forge munch 2.3.2 py_0 conda-forge ncurses 6.1 hf484d3e_1002 conda-forge networkx 2.3 py_0 conda-forge numpy 1.17.1 py37h95a1406_0 conda-forge olefile 0.46 py_0 conda-forge openjpeg 2.3.1 h58a6597_0 conda-forge openssl 1.1.1c h516909a_0 conda-forge owslib 0.18.0 py_0 conda-forge packaging 19.0 py_0 conda-forge palettable 3.2.0 py_0 conda-forge pandas 0.25.1 py37hb3f55d8_0 conda-forge partd 1.0.0 py_0 conda-forge patsy 0.5.1 py_0 conda-forge pcre 8.41 hf484d3e_1003 conda-forge pillow 6.1.0 py37h6b7be26_1 conda-forge pip 19.2.3 py37_0 conda-forge pixman 0.38.0 h516909a_1003 conda-forge poppler 0.67.0 ha967d66_7 conda-forge poppler-data 0.4.9 1 conda-forge postgresql 11.5 hc63931a_1 conda-forge proj4 6.1.1 hc80f0dc_1 conda-forge psutil 5.6.3 py37h516909a_0 conda-forge pthread-stubs 0.4 h14c3975_1001 conda-forge pycparser 2.19 py37_1 conda-forge pycrs 1.0.1 py_0 conda-forge pyepsg 0.4.0 py_0 conda-forge pykdtree 1.3.1 py37h3010b51_1002 conda-forge pyopenssl 19.0.0 py37_0 conda-forge pyparsing 2.4.2 py_0 conda-forge pyproj 2.3.0 py37h2fd02e8_0 conda-forge pyqt 5.9.2 py37hcca6a23_2 conda-forge pyrsistent 0.15.4 py37h516909a_0 conda-forge pysal 2.1.0 py_0 conda-forge pyshp 2.1.0 py_0 conda-forge pysocks 1.7.0 py37_0 conda-forge python 3.7.3 h33d41f4_1 conda-forge python-dateutil 2.8.0 py_0 conda-forge pytz 2019.2 py_0 conda-forge pywavelets 1.0.3 py37hd352d35_1 conda-forge pyyaml 5.1.2 py37h516909a_0 conda-forge qt 5.9.7 h52cfd70_2 conda-forge rasterio 1.0.25 py37hb3f55d8_1 conda-forge rasterstats 0.13.1 py_1 conda-forge readline 8.0 hf8c457e_0 conda-forge requests 2.22.0 py37_1 conda-forge rioxarray 0.0.9 pypi_0 pypi rtree 0.8.3 py37h666c49c_1002 conda-forge scikit-image 0.15.0 py37hb3f55d8_2 conda-forge scikit-learn 0.21.3 py37hcdab131_0 conda-forge scipy 1.3.1 py37h921218d_2 conda-forge seaborn 0.9.0 py_1 conda-forge setuptools 41.2.0 py37_0 conda-forge shapely 1.6.4 py37hec07ddf_1006 conda-forge simplejson 3.16.0 py37h14c3975_1002 conda-forge sip 4.19.8 py37hf484d3e_1000 conda-forge six 1.12.0 py37_1000 conda-forge snuggs 1.4.6 py_0 conda-forge sortedcontainers 2.1.0 py_0 conda-forge sqlite 3.29.0 hcee41ef_0 conda-forge statsmodels 0.10.1 py37hc1659b7_0 conda-forge tblib 1.4.0 py_0 conda-forge tk 8.6.9 hed695b0_1002 conda-forge toolz 0.10.0 py_0 conda-forge tornado 6.0.3 py37h516909a_0 conda-forge tqdm 4.35.0 py_0 conda-forge tzcode 2019a h516909a_1002 conda-forge urllib3 1.25.3 py37_0 conda-forge vincent 0.4.4 py_1 conda-forge wheel 0.33.6 py37_0 conda-forge wrapt 1.11.2 py37h516909a_0 conda-forge xarray 0.12.3 py_0 conda-forge xerces-c 3.2.2 hea5cb30_1003 conda-forge xlrd 1.2.0 py_0 conda-forge xorg-kbproto 1.0.7 h14c3975_1002 conda-forge xorg-libice 1.0.10 h516909a_0 conda-forge xorg-libsm 1.2.3 h84519dc_1000 conda-forge xorg-libx11 1.6.8 h516909a_0 conda-forge xorg-libxau 1.0.9 h14c3975_0 conda-forge xorg-libxdmcp 1.1.3 h516909a_0 conda-forge xorg-libxext 1.3.4 h516909a_0 conda-forge xorg-libxrender 0.9.10 h516909a_1002 conda-forge xorg-renderproto 0.11.1 h14c3975_1002 conda-forge xorg-xextproto 7.3.0 h14c3975_1002 conda-forge xorg-xproto 7.0.31 h14c3975_1007 conda-forge xz 5.2.4 h14c3975_1001 conda-forge yaml 0.1.7 h14c3975_1001 conda-forge zict 1.0.0 py_0 conda-forge zlib 1.2.11 h516909a_1005 conda-forge zstd 1.4.0 h3b9ef0a_0 conda-forge ```


Details about conda and system ( conda info ):

``` $ conda info active environment : geo active env location : /home/rgreen/miniconda3/envs/geo shell level : 2 user config file : /home/rgreen/.condarc populated config files : /home/rgreen/.condarc conda version : 4.7.11 conda-build version : not installed python version : 3.7.3.final.0 virtual packages : __cuda=10.1 base environment : /home/rgreen/miniconda3 (writable) channel URLs : https://conda.anaconda.org/conda-forge/linux-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /home/rgreen/miniconda3/pkgs /home/rgreen/.conda/pkgs envs directories : /home/rgreen/miniconda3/envs /home/rgreen/.conda/envs platform : linux-64 user-agent : conda/4.7.11 requests/2.22.0 CPython/3.7.3 Linux/4.4.0-151-generic ubuntu/16.04.6 glibc/2.23 UID:GID : 15131:15131 netrc file : None offline mode : False ```
ocefpaf commented 5 years ago

I don't see ipython in your env packages list so I'm guessing it is from another install. Try which ipython and which python and check the paths, the should be in the same env folder.

ocefpaf commented 5 years ago

Closing this b/c it is probably another installation of ipython b/c ipython is not installed in the environment.