Skip to content
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

not finding libpoppler (Py3) #16

Closed
scollis opened this issue Dec 4, 2017 · 4 comments
Closed

not finding libpoppler (Py3) #16

scollis opened this issue Dec 4, 2017 · 4 comments

Comments

@scollis
Copy link

scollis commented Dec 4, 2017

Using conda package (env file coming soon).
I get

>>> import Nio
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/scollis/anaconda/envs/pchange/lib/python3.6/site-packages/PyNIO/Nio.py", line 83, in <module>
    from _nio import *
ImportError: dlopen(/Users/scollis/anaconda/envs/pchange/lib/python3.6/site-packages/PyNIO/_nio.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libpoppler.66.dylib
  Referenced from: /Users/scollis/anaconda/envs/pchange/lib/libgdal.20.dylib
  Reason: image not found
>>> 

I have Poppler 0.61 installed.. There is no conda package on conda-forge for poppler-0.66

@scollis
Copy link
Author

scollis commented Dec 4, 2017

name: pchange
channels:
   - conda-forge
   - ncar
dependencies:
   - python=3.6
   - numpy
   - matplotlib
   - cartopy
   - jupyter
   - netcdf4
   - metpy
   - siphon
   - pynio=dev
   - xarray
   - scipy

@khallock
Copy link
Contributor

khallock commented Dec 5, 2017

Hi @scollis,

There is currently an issue with certain dependencies on conda-forge causing these "library not loaded" errors, particularly when libgdal gets involved. The workaround we've found is to explicitly install poppler=0.52 and xerces-c=3.1 alongside PyNIO:
conda install -c conda-forge poppler=0.52 xerces-c=3.1
or
conda create -c ncar -c conda-forge pynio=dev poppler=0.52 xerces-c=3.1

Ideally this won't be necessary in the future, but it should hopefully work for now.

Please let us know if you're still experiencing issues getting PyNIO to work after trying this.

@scollis
Copy link
Author

scollis commented Dec 5, 2017 via email

@scollis
Copy link
Author

scollis commented Dec 6, 2017

I was able to open HRRR data in grib using Nio as an engine to X-Array (which is what I wanted to do)..

Here is my environment.yml file

name: pchange
channels:
   - conda-forge
   - ncar
dependencies:
   - python=3.6
   - poppler=0.52
   - xerces-c=3.1
   - numpy
   - matplotlib
   - cartopy
   - jupyter
   - netcdf4
   - metpy
   - siphon
   - pynio=dev
   - xarray
   - scipy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants