-
Notifications
You must be signed in to change notification settings - Fork 155
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
undefined symbol: _ZN3fLS13FLAGS_log_dirE #23
Comments
Maybe the library can't find gflags at runtime. Could you try to export the paths of gflags and glog into |
Thanks for the prompt answer! But my
Any other possible reason for the error? Or is it possible for you to provide some more details about your environment where you succeeded to build? |
My I guess that you might have multiple versions of |
I have the same problem,and I I export the path of env/env-name/lib. but I didn't solve this problem.
Could you give me some advice?Thanks! |
Could you check the runtime path in
These are paths that take into effect when the binary is loaded. $ORIGIN corresponds to the directory where If you have a different path, you can change it by Tell me if it helps. |
Thank for you reply.
The path does not seem to be wrong.But still didn't help.May be other questions? |
I am not sure how to solve this problem. Maybe you can try adding soft links to |
Thank for you reply ! If there is an error, you are welcome to point out!Thanks! |
For the OMP problem, I never encountered that before. GraphVite doesn't directly depend on OMP, so it might be a bug when invoking PyTorch on multi-GPU for evaluation. This might be a fix for that. Also, you may skip the evaluation stage with |
This issue persists even after installing intel-openmp=2019.4. Can someone please consolidate these requirements and update in requirements file or add necessary steps user should run? |
The issue continued to persist for me as well (like #89), I solved as follows:
Update as follows (some requirements commented out):
Install remaining dependencies and then install gaphvite from conda:
Please check if you see the following files:
At this point, open
And check:
Find
Open
From command line:
I did not have to comment out any part of the code or change the
and other way around:
|
Hey @suamin, thanks for your help but unfortunately the solution did not work for me. I'm documenting some things that I have tried which others might be interested in. Initially I was using Python 3.8 which I realised I had to downgrade to Python 3.7 in order to install graphvite, else you might face the error seen below. (line) jiayi@cdas1:~/graphvite$ conda install -c milagraph graphvite
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Found conflicts! Looking for incompatible packages. failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- graphvite -> python[version='>=2.7,<2.8.0a0|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0']
Your python: python=3.8
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
The following specifications were found to be incompatible with your system:
- feature:/linux-64::__glibc==2.27=0
- feature:|@/linux-64::__glibc==2.27=0
- graphvite -> libgcc-ng[version='>=5.4.0'] -> __glibc[version='>=2.17|>=2.17,<3.0.a0']
Your installed version is: 2.27 I was able to follow what @suamin have suggested above all the way until the python import for either faiss or graphvite as seen below. >>> import graphvite
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jiayi/anaconda3/envs/line/lib/python3.7/site-packages/graphvite/__init__.py", line 36, in <module>
lib = imp.load_dynamic("libgraphvite", lib_file)
File "/home/jiayi/anaconda3/envs/line/lib/python3.7/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: /home/jiayi/anaconda3/envs/line/lib/python3.7/site-packages/graphvite/lib/libgraphvite.so: undefined symbol: _ZN6google10LogMessageC1EPKciiiMS0_FvvE
>>> import faiss
Traceback (most recent call last):
File "/home/jiayi/anaconda3/envs/line/lib/python3.7/site-packages/faiss/swigfaiss_avx2.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "/home/jiayi/anaconda3/envs/line/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 670, in _load_unlocked
File "<frozen importlib._bootstrap>", line 583, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 1043, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: libcudart.so.10.0: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jiayi/anaconda3/envs/line/lib/python3.7/site-packages/faiss/__init__.py", line 41, in <module>
from .swigfaiss_avx2 import *
File "/home/jiayi/anaconda3/envs/line/lib/python3.7/site-packages/faiss/swigfaiss_avx2.py", line 17, in <module>
_swigfaiss_avx2 = swig_import_helper()
File "/home/jiayi/anaconda3/envs/line/lib/python3.7/site-packages/faiss/swigfaiss_avx2.py", line 16, in swig_import_helper
return importlib.import_module('_swigfaiss_avx2')
File "/home/jiayi/anaconda3/envs/line/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_swigfaiss_avx2'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jiayi/anaconda3/envs/line/lib/python3.7/site-packages/faiss/swigfaiss.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "/home/jiayi/anaconda3/envs/line/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 670, in _load_unlocked
File "<frozen importlib._bootstrap>", line 583, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 1043, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: libcudart.so.10.0: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jiayi/anaconda3/envs/line/lib/python3.7/site-packages/faiss/__init__.py", line 49, in <module>
from .swigfaiss import *
File "/home/jiayi/anaconda3/envs/line/lib/python3.7/site-packages/faiss/swigfaiss.py", line 17, in <module>
_swigfaiss = swig_import_helper()
File "/home/jiayi/anaconda3/envs/line/lib/python3.7/site-packages/faiss/swigfaiss.py", line 16, in swig_import_helper
return importlib.import_module('_swigfaiss')
File "/home/jiayi/anaconda3/envs/line/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_swigfaiss' I've tried checking the variables which allowed me to identify that some were unset, different from what others had as seen in this comment thread. However, no answers to how I could solve them for now, which is why I will be looking at other package alternatives. (line) jiayi@cdas1:~/graphvite$ env |grep PATH
CMAKE_PREFIX_PATH=/home/jiayi/anaconda3/envs/line:/home/jiayi/anaconda3/envs/line/x86_64-conda-linux-gnu/sysroot/usr
CONDA_BACKUP_CMAKE_PREFIX_PATH=/home/jiayi/anaconda3/envs/line:/home/jiayi/anaconda3/envs/line/x86_64-conda-linux-gnu/sysroot/usr
PATH=/home/jiayi/anaconda3/envs/line/bin:/home/jiayi/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/bin:/home/jiayi/.local/bin:/home/jiayi/anaconda3/bin:/home/jiayi/anaconda3/condabin:/home/jiayi/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/cuda/bin (line) jiayi@cdas1:~/graphvite$ whereis libglog
libglog: (line) jiayi@cdas1:~/graphvite$ echo $LD_LIBRARY_PATH
|
@gohjiayi I think there is some problem with your CUDA installation. Can you paste results for:
Check for compatibility of your system. |
Thanks for your help @suamin. Output as seen below. I didn't look into my CUDA installation in particular. (PS: removed some information from my nvidia-smi as I have a few GPUs running) (line) jiayi@cdas1:~$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243
(line) jiayi@cdas1:~$ nvidia-smi
Fri Dec 24 14:48:05 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 455.23.05 Driver Version: 455.23.05 CUDA Version: 11.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 Tesla P100-PCIE... On | 00000000:3B:00.0 Off | 0 |
| N/A 32C P0 25W / 250W | 2MiB / 16280MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 2 N/A N/A 6832 C ...ansact_figures/bin/python 1261MiB |
| 2 N/A N/A 10166 C ...hna/miniconda3/bin/python 3313MiB |
+-----------------------------------------------------------------------------+ |
Thanks. This seems fine, it could be worth trying:
but as @KiddoZhu mentioned above, GraphVite doesn't directly depend on OMP. This issue is mostly likely rooted in PyTorch and/or FAISS installation. Can you try and only import
edit: pls also share your conda environment (list of packages) |
Hi,
When I was trying to install it from source I got error when executing
python setup.py install
The message is as follow:
Any idea why this is happening? How can I get around this problem?
The text was updated successfully, but these errors were encountered: