FESOM / pyfesom

python library and tools for pre and post processing of the FESOM ocean model files
http://pyfesom.readthedocs.io/en/latest/index.html
MIT License
11 stars 6 forks source link

ImportError #19

Open auroralin0408 opened 1 year ago

auroralin0408 commented 1 year ago

Hi, I'm trying to import pyfesom but it raised this error:

ImportError Traceback (most recent call last) Cell In[1], line 1 ----> 1 import pyfesom.pyfesom as pf

File ~/Desktop/Nw_Sea/FESOM/pyfesom/pyfesom/init.py:15 13 from .ut import 14 from .climatology import ---> 15 from .transect import 16 from .plotting import 20 author = 'FESOM team'

File ~/Desktop/Nw_Sea/FESOM/pyfesom/pyfesom/transect.py:13 1 # -- coding: UTF-8 -- 2 # This file is part of pyfesom 3 # (...) 8 # 9 ################################################################################ 12 import numpy as np ---> 13 import pyproj 14 from .ut import tunnel_fast1d, vec_rotate_r2g 15 import numpy as np

File ~/miniforge3/envs/py38/lib/python3.8/site-packages/pyproj/init.py:49 32 all = [ 33 "Proj", 34 "Geod", (...) 45 "show_versions", 46 ] 47 import warnings ---> 49 import pyproj.network 50 from pyproj._datadir import ( # noqa: F401 51 _pyproj_global_context_initialize, 52 set_use_global_context, 53 ) 54 from pyproj._show_versions import show_versions # noqa: F401

File ~/miniforge3/envs/py38/lib/python3.8/site-packages/pyproj/network.py:10 6 from typing import Union 8 import certifi ---> 10 from pyproj._network import ( # noqa: F401 11 _set_ca_bundle_path, 12 is_network_enabled, 13 set_network_enabled, 14 ) 17 def set_ca_bundle_path(ca_bundle_path: Union[Path, str, bool, None] = None) -> None: 18 """ 19 .. versionadded:: 3.0.0 20 (...) 38 variables. 39 """

ImportError: dlopen(/Users/auroralin/miniforge3/envs/py38/lib/python3.8/site-packages/pyproj/_network.cpython-38-darwin.so, 0x0002): Library not loaded: '@rpath/libtiff.5.dylib' Referenced from: '/Users/auroralin/miniforge3/envs/py38/lib/libproj.21.0.2.dylib' Reason: tried: '/Users/auroralin/miniforge3/envs/py38/lib/libtiff.5.dylib' (no such file), '/Users/auroralin/miniforge3/envs/py38/lib/libtiff.5.dylib' (no such file), '/Users/auroralin/miniforge3/envs/py38/lib/libtiff.5.dylib' (no such file), '/Users/auroralin/miniforge3/envs/py38/lib/python3.8/site-packages/pyproj/../../../libtiff.5.dylib' (no such file), '/Users/auroralin/miniforge3/envs/py38/lib/libtiff.5.dylib' (no such file), '/Users/auroralin/miniforge3/envs/py38/lib/libtiff.5.dylib' (no such file), '/Users/auroralin/miniforge3/envs/py38/lib/python3.8/site-packages/pyproj/../../../libtiff.5.dylib' (no such file), '/Users/auroralin/miniforge3/envs/py38/bin/../lib/libtiff.5.dylib' (no such file), '/Users/auroralin/miniforge3/envs/py38/bin/../lib/libtiff.5.dylib' (no such file), '/usr/local/lib/libtiff.5.dylib' (no such file), '/usr/lib/libtiff.5.dylib' (no such file)

And I find libtiff.6.dylib in the specific path, but no libtiff.5.dylib. It bothers me a lot, and with your kind help.

koldunovn commented 1 year ago

First question would be - are you sure you want to use pyfesom, or rather pyfesom2 https://github.com/FESOM/pyfesom2 Pyfesom uses basemap, that is not supported in python3.8, so I guess there is a little chance to make it work with the newer versions of python.

I will archive pyfesom, to cause less confusion :)