boostorg / boostorg/python

Cannot import Boost.Python from Python 3.11

Đang mở
#436 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C++
Star
537
Fork
223
Merge trung bình
11 giờ 22 phút
Pull request đã merge (30 ngày)
2

Mô tả

Hi all,
I'm trying to `import Boost.Python` from Python 3.11 and I'm getting a `ModuleNotFoundError`:
I'm using Boost 1.82.0 on Ubuntu x86_64.

```
>>> import Boost.Python
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'Boost'
```

I've built Boost.Python using the following bootstrap/`b2` commands:

```
$ ./bootstrap.sh --with-python-version=3.11 --with-libraries=python
$ ./b2 -j$(nproc) --with-python install
```

I have also tried `--with-python=/usr/bin/python3.11` on bootstrap but that also doesn't seem to work.
I have tried setting `LD_LIBRARY_PATH` to `/usr/local/lib` as well (where I installed Boost.Python) but that also didn't do the trick (I ran `ldconfig` and `ldconfig -n /usr/local/lib` too).

Can anyone give us a hand?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.