Failed to import cmake_example
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- build-system
调研方向
在报告的 Python 3.8 环境中使用 pip install . 和 import cmake_example 重现失败。检查基于 CMake 的构建过程,以及与报告的未定义 C++ 符号相关的生成的 cmake_example 扩展。完成标准是软件包能够成功安装并在没有链接器错误的情况下导入。
由索引模型根据 Issue 内容生成。
描述
After successfully installing cmake_example after running pip install . command. I try to import cmake_example module, but it shows undefined symbol
(pybind11) xx@xx:~/code/cmake_example$ pip install . --user
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Processing /home/py/code/cmake_example
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: cmake-example
Building wheel for cmake-example (pyproject.toml) ... done
Created wheel for cmake-example: filename=cmake_example-0.0.1-cp38-cp38-linux_x86_64.whl size=48911 sha256=9ebbda22de67d214c2039da9003236fe2d8e8eda90c4e2bbee1f4fa7778d7aa5
Stored in directory: /tmp/pip-ephem-wheel-cache-jcrqt4zq/wheels/15/39/14/4a8a39410655bf49353e750dd2e25ce81174f227c1bbb4635b
Successfully built cmake-example
Installing collected packages: cmake-example
Successfully installed cmake-example-0.0.1
(pybind11) xx@xx::~/code/cmake_example$ python
Python 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cmake_example as m
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /home/py/.local/lib/python3.8/site-packages/cmake_example.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE
- 主要语言
- C++
- 星标
- 671
- 派生
- 220
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pybind/cuda_example 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
pybind/cuda_example#191 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
pybind/cuda_example#187 · 8 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
pybind/cuda_example#153 · 5 条评论 ·
-
难度 4/5 3-5 天 新手友好度 38/100
pybind/cuda_example#132 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
pybind/cuda_example#123 · 1 条评论 ·
查看 pybind/cuda_example 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
-
triage
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
patrick-hudson/put.gd-desktop#2044 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
uxlfoundation/oneDNN#6604 · 1 条评论 ·
维护者通常 2 天内回复