mapillary / OpenSfM

Open source Structure-from-Motion pipeline
https://www.opensfm.org/
BSD 2-Clause "Simplified" License
3.3k stars 848 forks source link

Virtual envs: ImportError with `bin/opensfm_run_all` #989

Open ayoubft opened 1 year ago

ayoubft commented 1 year ago

Building OpenSfM

What I have

Operating System: Manjaro Linux KDE Plasma Version: 5.26.5 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 Kernel Version: 5.15.94-1-MANJARO (64-bit) Graphics Platform: X11 Processors: 8 × Intel® Core™ i7-8650U CPU @ 1.90GHz Memory: 31.1 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 620 Manufacturer: LENOVO System Version: ThinkPad T580

What I did

What I got

But when I want to test bin/opensfm_run_all data/berlin I get this error:

Traceback (most recent call last):
  File "/source/OpenSfM/bin/opensfm_main.py", line 9, in <module>
    from opensfm import commands
  File "/source/OpenSfM/opensfm/__init__.py", line 1, in <module>
    from opensfm import pybundle
ImportError: /home/ayoubf/miniconda3/envs/opensfm-env/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/libtbb.so.12)

What could possibly have gone wrong ?

Thank you.

gautam-sh commented 1 year ago

Hello, I am getting the same error. ANy workaround you found? Thanks.

fabianschenk commented 1 year ago

Hi @gautam-sh @ayoubft ,

Have you tried one of the first two results on google? [1] https://github.com/rstudio/reticulate/issues/1282 [2] https://stackoverflow.com/questions/72540359/glibcxx-3-4-30-not-found-for-librosa-in-conda-virtual-environment-after-tryin

ayoubft commented 1 year ago

Thanks @fabianschenk and I apologize for not returning back here and mentioning that I already tried this solution and got it working.

So the installation process should look like this: