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.

libpoppler.so.71: cannot open shared object file: No such file or directory

See original GitHub issue
>>> import gmt
Traceback (most recent call last):
  File "/users1j/cliu/soft/anaconda2/envs/gmt-python/lib/python3.6/site-packages/gmt/clib/utils.py", line 159, in load_libgmt
    libgmt = ctypes.CDLL('.'.join([libname, clib_extension()]))
  File "/users1j/cliu/soft/anaconda2/envs/gmt-python/lib/python3.6/ctypes/__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libpoppler.so.71: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/users1j/cliu/soft/anaconda2/envs/gmt-python/lib/python3.6/site-packages/gmt/__init__.py", line 27, in <module>
    _begin()
  File "/users1j/cliu/soft/anaconda2/envs/gmt-python/lib/python3.6/site-packages/gmt/session_management.py", line 17, in begin
    with LibGMT() as lib:
  File "/users1j/cliu/soft/anaconda2/envs/gmt-python/lib/python3.6/site-packages/gmt/clib/core.py", line 103, in __init__
    self._bind_clib_functions(libname)
  File "/users1j/cliu/soft/anaconda2/envs/gmt-python/lib/python3.6/site-packages/gmt/clib/core.py", line 136, in _bind_clib_functions
    self._libgmt = load_libgmt(libname)
  File "/users1j/cliu/soft/anaconda2/envs/gmt-python/lib/python3.6/site-packages/gmt/clib/utils.py", line 168, in load_libgmt
    raise GMTCLibNotFoundError(msg)
gmt.exceptions.GMTCLibNotFoundError: Couldn't find the GMT shared library 'libgmt'. Have you tried setting the LD_LIBRARY_PATH environment variable?
Original error message:

    libpoppler.so.71: cannot open shared object file: No such file or directory

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

14reactions
adamnicholaspricecommented, Mar 1, 2018

This is the line of syntax seemed to have fixed by issue.

source activate [env-name]
conda config --add channels conda-forge
conda install gdal

After which run the

conda list

command to make sure packages are coming from conda-forge

3reactions
leouiedacommented, Feb 27, 2018

@adamnicholasprice thanks! I think I see a problem. Your gdal isn’t coming from conda-forge for some reason but poppler is. That might be causing the linking issue. Could you try the following please?

  1. Delete the gmt-python environment:
conda env remove --name gmt-python
  1. Create (or edit) a .condarc file in your home directory to include this (it will make conda-forge a priority):
channels:
  - conda-forge
  - defaults
  1. Repeat the install process. If things don’t work, check conda list to see if gdal is coming from the conda-forge channel and report back.

More information about these issues on the conda-forge documentation: https://conda-forge.org/docs/conda-forge_gotchas.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

error while loading shared libraries: libpoppler.so.58
error while loading shared libraries: libpoppler.so.90: cannot open shared object file: No such file or directory.
Read more >
Encountered missing shared library issue / Installation ...
Encountered this weird shared library issue ... libraries: libpoppler.so.114: cannot open shared object file: No such file or directory.
Read more >
libpoppler.so.71: cannot open shared object file: No such ...
使用conda安装gdal后,在回滚变更环境后出错:geoio ImportError: libpoppler.so.71: cannot open shared object file: No such file or directory.
Read more >
Library import errors: libpoppler.so.91 and libtbb.so.2 ...
Error returned: ImportError: libpoppler.so.91: cannot open shared object file: No such file or directory. Solution: Run the command “conda ...
Read more >
GDAL import fails with ImportError: libpoppler.so.71: cannot ...
GDAL import fails with ImportError: libpoppler.so.71: cannot open shared object file: No such file or directory.
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