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

Import Ngl error #23

Open
jfowler9 opened this issue Oct 16, 2019 · 6 comments
Open

Import Ngl error #23

jfowler9 opened this issue Oct 16, 2019 · 6 comments

Comments

@jfowler9
Copy link

I installed pyNGL (version 1.6.1) onto my Mac (OS 10.14.6) using the following commands:

conda create --name pyn_env --channel conda-forge pynio pyngl
source activate pyn_env

I then tested pyNGL and pyNIO;

import Nio
import Ngl

pyNio is fine, but I got the following error with pyNGL;

ImportError: dlopen(/Users/jen/anaconda3/envs/pyn_env/lib/python3.7/site-packages/ngl/fplib.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libgfortran.3.dylib
Referenced from: /Users/jen/anaconda3/envs/pyn_env/lib/python3.7/site-packages/ngl/fplib.cpython-37m-darwin.so
Reason: image not found

Can you help me with this error? Thank you.

@KMFleischer
Copy link

Hi,

I've installed the software like you did with minicondas conda for python 3.7 on may mac (OsX 10.14.6), and everythings works fine.

The error message is saying that the gfortran library is not installed in your pyn_env environment, maybe you can install it manually with 'conda install -n pyn_env -c conda-forge gfortran'.

-Karin

@jfowler9
Copy link
Author

jfowler9 commented Oct 18, 2019 via email

@jfowler9
Copy link
Author

jfowler9 commented Oct 18, 2019 via email

@linlintamu
Copy link

Thank you!

It is very tricky that you have to download gfortran on your own and add it to your anaconda/lib.

@RuralBee
Copy link

I via

Hi,

I've installed the software like you did with minicondas conda for python 3.7 on may mac (OsX 10.14.6), and everythings works fine.

The error message is saying that the gfortran library is not installed in your pyn_env environment, maybe you can install it manually with 'conda install -n pyn_env -c conda-forge gfortran'.

-Karin

Hi Karin,
I have the same issue,I via "conda install -c uvcdat gfortran" installed gfortran, but the issue still is
portError: dlopen(/Users/CJB/opt/miniconda3/envs/ncl_py/lib/python3.7/site-packages/ngl/fplib.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libgfortran.4.dylib
Referenced from: /Users/CJB/opt/miniconda3/envs/ncl_py/lib/python3.7/site-packages/ngl/fplib.cpython-37m-darwin.so
Reason: image not found
I am excepting your promote reponse, if it is convenient for you

@lj-mu
Copy link

lj-mu commented Mar 10, 2020

  1. locate libgfortran.4.dylib
  2. ln -s $PATH_libgfortran.4.dylib ~/Applications/miniconda3/lib/

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

5 participants