Boost::Python doesn't work with Python 3.8 on 64bit Windows.

未关闭
#311 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
cpp, python
领域
backend

调研方向

首先在 Windows 上使用 Boost 1.73.0、CPython 3.8.3 64-bit 和 Visual Studio 2017 重现该失败,然后在 CPython 3.7 下比较同一扩展。检查针对 ben_scott1_ext 报告的 DLL 加载失败,并使用 issue 中的依赖信息来缩小差异范围。在指定的 Python 3.8 配置下成功加载 Boost.Python 扩展即视为完成。

由索引模型根据 Issue 内容生成。

描述

I seem to be unable to get boost::python working for CPython 3.8 (official 3.8.3 release for windows 64 bit) with boost 1.73.0. I'm using Visual Studio 2017 (15.9.23).

Problem is that boost and all extensions compile without error but any and all extensions using boost:::python fail to load. The exact error is "ImportError: DLL load failed while importing ben_scott1_ext: The specified module could not be found." which is not particularly helpful. According to dependency walker no dependencies seem to be missing. Interestingly enough the same extensions work fine on CPython 3.7 (and earlier),

Any idea on how to diagnose this further?

Python version:
Version : 3.8.3
Compiler : MSC v.1924 64 bit (AMD64)
Build : ('tags/v3.8.3:6f8c832', 'May 13 2020 22:37:02')

主要语言
C++
星标
537
派生
223
平均合并
11 小时 22 分钟
30 天内合并 PR
2

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

boostorg/python 的其他 Issue

查看 boostorg/python 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。