"undefined symbol" error when trying to import opengl rasterize
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python, tensorflow
- Lĩnh vực
- computer-graphics
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện thao tác import từ tensorflow_graphics/rendering/opengl/rasterization_backend.py và kiểm tra cách nó tải rasterizer_op.so. So sánh extension đã biên dịch với môi trường TensorFlow được báo cáo và xác định lý do xảy ra symbol không xác định. Được xem là hoàn tất khi thao tác import rasterization OpenGL thành công trong môi trường đã nêu, kèm theo một regression test hoặc yêu cầu tương thích được ghi lại nếu repository có hỗ trợ một trong hai.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 2.8k
- Fork
- 374
- Merge trung bình
- 5 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của tensorflow/graphics
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
tensorflow/graphics#468 ·
-
Missing TFRecord Generation Script/Instructions for projects/points_to_3Dobjects (CVPR 2021)Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
tensorflow/graphics#5337 ·
-
Attribute Error in the models.pyĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
tensorflow/graphics#730 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
tensorflow/graphics#729 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
tensorflow/graphics#724 ·
Tất cả issue của tensorflow/graphics
Issue tương tự
-
cli good first issue help wanted python up-for-grabs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
andrewsiah/agentswarm-data-tasks#36 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug drawing-tools
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
cofade/open-garden-planner#827 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Methodology pageĐang mởdocumentation site texts
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Krasnopjorovs/temet#66 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày