Cannot import Boost.Python from Python 3.11
- Linguagem predominante
- C++
- Estrelas
- 537
- Forks
- 223
- Merge médio
- 11h 22min
- PRs com merge (30d)
- 2
Descrição
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?
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
No source file or test is named in the issue. Reproduce the reported setup with bootstrap.sh, b2, and Python 3.11, then inspect where the built Python module is installed and why import Boost.Python cannot find it. Done means identifying a reproducible installation or configuration fix and confirming that the import succeeds.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- cpp, python
- Domínio
- backend, build-system
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 25/100