Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual envs: ImportError with bin/opensfm_run_all #989

Open
5 tasks done
ayoubft opened this issue Mar 8, 2023 · 3 comments
Open
5 tasks done

Virtual envs: ImportError with bin/opensfm_run_all #989

ayoubft opened this issue Mar 8, 2023 · 3 comments

Comments

@ayoubft
Copy link

ayoubft commented Mar 8, 2023

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

  • cloned recursively the repo
  • installed opencv and ceres-solver (with paru package manager)
  • created virtual env using conda called opensfm-env and activated it
  • runned pip install -r requirements
  • runned python setup.py build all went well

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.

@ayoubft ayoubft changed the title ImportError with bin/opensfm_run_all Virtual envs: ImportError with bin/opensfm_run_all Mar 9, 2023
@gautam-sh
Copy link

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

@fabianschenk
Copy link
Contributor

Hi @gautam-sh @ayoubft ,

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

@ayoubft
Copy link
Author

ayoubft commented Apr 29, 2023

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:

  • clone recursively the repo
  • install opencv and ceres-solver (with paru package manager or other)
  • create virtual env using conda with name opensfm-env and activate it
  • run pip install -r requirements
  • run conda install -c conda-forge gcc=12.1.0
  • run python setup.py build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants