boostorg / boostorg/python

Cannot import Boost.Python from Python 3.11

Offen
#436 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C++
Sterne
537
Forks
223
Ø Merge
11 Std. 22 Min.
Gemergte PRs (30 T.)
2

Beschreibung

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?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.