ImportError: /usr/lib/libboost_python.so.1.66.0: undefined symbol: PyString_InternFromString
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 899
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I am using python3 as default. I am able to build setup.py successfully without any error, but while I try to execute ./bin/opensfm_run_all data/berlin I got this error:
Traceback (most recent call last):
File "/home/gary/project/OpenSfM/bin/opensfm", line 10, in
from opensfm import commands
File "/home/gary/project/OpenSfM/opensfm/commands/init.py", line 2, in
from . import extract_metadata
File "/home/gary/project/OpenSfM/opensfm/commands/extract_metadata.py", line 5, in
from opensfm import dataset
File "/home/gary/project/OpenSfM/opensfm/dataset.py", line 14, in
from opensfm import io
File "/home/gary/project/OpenSfM/opensfm/io.py", line 18, in
from opensfm import features
File "/home/gary/project/OpenSfM/opensfm/features.py", line 9, in
from opensfm import csfm
ImportError: /usr/lib/libboost_python.so.1.66.0: undefined symbol: PyString_InternFromString
Seems like it is using python2's boost instead of python3's. Is there any suggestion on how to fix this?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing ./bin/opensfm_run_all data/berlin, then inspect setup.py, opensfm/features.py, and the import of opensfm.csfm shown in the traceback. Determine why the built extension loads /usr/lib/libboost_python.so.1.66.0 with the wrong Python symbols; done means the command starts without the undefined-symbol ImportError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100