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

Problems with xesmf import after offline migration conda environment #141

Open
cccchou opened this issue Jul 18, 2024 · 1 comment
Open

Comments

@cccchou
Copy link

cccchou commented Jul 18, 2024

After migrating my conda environment offline(using conda pack), on the new platform, I get an error importing xesmf:
Traceback (most recent call last).
File "/home/gusf/miniconda3/envs/nc2p/lib/python3.11/site-packages/esmpy/interface/loadESMF.py", line 144, in
_ESMF = ct.CDLL(os.path.join(libsdir,'libesmf_fullylinked.so'),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gusf/miniconda3/envs/nc2p/lib/python3.11/ctypes/init.py", line 376, in init
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: /home/conda/feedstock_root/build_artifacts/esmf_1677849384616/h_env_placehold_placehold_placehold_placehold_placehold_placehold placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold placeh/lib/libesmf_fullylinked.so: cannot open shared object file: No such file or directory
Traceback (most recent call last).
File "/home/gusf/miniconda3/envs/nc2p/lib/python3.11/site-packages/esmpy/interface/loadESMF.py", line 144, in
_ESMF = ct.CDLL(os.path.join(libsdir,'libesmf_fullylinked.so'),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gusf/miniconda3/envs/nc2p/lib/python3.11/ctypes/init.py", line 376, in init
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: /home/conda/feedstock_root/build_artifacts/esmf_1677849384616/h_env_placehold_placehold_placehold_placehold_placehold_placehold placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold placeh/lib/libesmf_fullylinked.so: cannot open shared object file: No such file or directory

I know this is caused by a problem with the OS path after migrating the environment, so how do I change the LINK path? I have successfully deployed ESMF on the new platform.

@cccchou
Copy link
Author

cccchou commented Jul 18, 2024

My libesmf_fullylinked.so is in /home/gusf/miniconda3/envs/nc2p/lib/libesmf_fullylinked.so in python and /home/gusf/zzp/esmf-8.6.0/lib/libO/Linux.intel.64.mpiuni.default in ESMF

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

1 participant