"undefined symbol" error when trying to import opengl rasterize
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- python, tensorflow
- Ambito
- computer-graphics
Direzione di ricerca
Inizia riproducendo l'import da tensorflow_graphics/rendering/opengl/rasterization_backend.py e verifica come carica rasterizer_op.so. Confronta l'estensione compilata con l'ambiente TensorFlow riportato e determina perché si verifica il simbolo non definito. Il lavoro è completato quando l'import della rasterizzazione OpenGL ha esito positivo nell'ambiente indicato, con un test di regressione o un requisito di compatibilità documentato, se il repository ne supporta uno.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Environment:
python==3.10
tensorflow==2.10.0
tensorflow_graphics==2021.12.2
(also tried with nightly 2022.9.6)
Ubuntu 20.04.5 LTS
CUDA Version: 11.8
Driver Version: 520.61.05
>>> from tensorflow_graphics.rendering.opengl.rasterization_backend import rasterize
2022-10-27 13:22:59.773129: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-10-27 13:23:00.420227: E tensorflow/stream_executor/cuda/cuda_blas.cc:2981] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2022-10-27 13:23:01.339306: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory
2022-10-27 13:23:01.339417: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory
2022-10-27 13:23:01.339433: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
File ~/anaconda3/envs/tfg/lib/python3.10/site-packages/tensorflow_graphics/rendering/opengl/rasterization_backend.py:26
25 try:
---> 26 from tensorflow_graphics.rendering.opengl import gen_rasterizer_op as render_ops
27 except ImportError:
ImportError: cannot import name 'gen_rasterizer_op' from 'tensorflow_graphics.rendering.opengl' (/home/penn/anaconda3/envs/tfg/lib/python3.10/site-packages/tensorflow_graphics/rendering/opengl/__init__.py)
During handling of the above exception, another exception occurred:
NotFoundError Traceback (most recent call last)
Cell In [1], line 1
----> 1 from tensorflow_graphics.rendering.opengl.rasterization_backend import rasterize
File ~/anaconda3/envs/tfg/lib/python3.10/site-packages/tensorflow_graphics/rendering/opengl/rasterization_backend.py:30
28 import os
29 dir_path = os.path.dirname(os.path.abspath(__file__))
---> 30 render_ops = tf.load_op_library(os.path.join(dir_path, "rasterizer_op.so"))
31 # pylint: enable=g-import-not-at-top
34 def _dim_value(dim: Optional[int] = None) -> int:
File ~/anaconda3/envs/tfg/lib/python3.10/site-packages/tensorflow/python/framework/load_library.py:54, in load_op_library(library_filename)
31 @tf_export('load_op_library')
32 def load_op_library(library_filename):
33 """Loads a TensorFlow plugin, containing custom ops and kernels.
34
35 Pass "library_filename" to a platform-specific mechanism for dynamically
(...)
52 RuntimeError: when unable to load the library or get the python wrappers.
53 """
---> 54 lib_handle = py_tf.TF_LoadLibrary(library_filename)
55 try:
56 wrappers = _pywrap_python_op_gen.GetPythonWrappers(
57 py_tf.TF_GetOpList(lib_handle))
NotFoundError: /home/penn/anaconda3/envs/tfg/lib/python3.10/site-packages/tensorflow_graphics/rendering/opengl/rasterizer_op.so: undefined symbol: _ZNK10tensorflow15shape_inference16InferenceContext5inputEN4absl12lts_2021110211string_viewEPSt6vectorINS0_11ShapeHandleESaIS6_EE
- Lingua principale
- Python
- Stelle
- 2.8k
- Fork
- 374
- Merge medio
- 5g 9h
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di tensorflow/graphics
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
tensorflow/graphics#468 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
tensorflow/graphics#5337 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
tensorflow/graphics#730 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
tensorflow/graphics#729 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
tensorflow/graphics#724 ·
Tutte le issue di tensorflow/graphics
Issue simili
-
`destroy` sans terminal répond « Aborted. » au lieu de réclamer `--yes` comme `clean` et `reset`Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
stephrobert/dsoxlab#354 ·
I maintainer di solito rispondono entro 1 giorno
-
hardware help wanted testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
jasonacox/pypowerwall#472 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: DoubleMLRDDData accepts a score_col that is no data column (as in its docstring example); the running variable then becomes a covariate and RDFlex failsForse già presa @vrjdev l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
DoubleML/doubleml-for-py#455 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Python mod.Box[T] annotation gets a false generic_arg edge that replaces the parameter_type one ('is' on tree-sitter nodes)Forse già presa @rohit-jsfreaky l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Graphify-Labs/graphify#5110 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni