Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

ImportError #19

Open
auroralin0408 opened this issue Apr 18, 2023 · 1 comment
Open

ImportError #19

auroralin0408 opened this issue Apr 18, 2023 · 1 comment

Comments

@auroralin0408
Copy link

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
Copy link
Member

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 :)

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

No branches or pull requests

2 participants