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

Error message when running on colab #352

Open
dchen48 opened this issue Mar 28, 2023 · 2 comments
Open

Error message when running on colab #352

dchen48 opened this issue Mar 28, 2023 · 2 comments

Comments

@dchen48
Copy link

dchen48 commented Mar 28, 2023

When I run the tutorial code on colab, I got the error message "ImportError: libboost_system.so.1.65.1: cannot open shared object file: No such file or directory". Can someone tells me how to solve this issue on colab? Thanks.

@sky1ove
Copy link

sky1ove commented Apr 9, 2023

same bug

@jlm429
Copy link

jlm429 commented Apr 28, 2023

I think colab python upgrade may be causing this.

googlecolab/colabtools#3450

If you set(BOOST_PYTHON_VERSION python38) in football/third_party/gfootball_engine/CMakeLists.txt it works. Change to 3.9 or 3.10 and it breaks.

EDIT

If you edit football/third_party/gfootball_engine/CMakeLists.txt with

set(BOOST_PYTHON_VERSION python${Python3_VERSION_MAJOR})

It works fine with 3.10 and outputs the following:

Using Python: 3.10.11 -- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: python Using python_boost: python -- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: thread system filesystem python -- Configuring done -- Generating done -- Build files have been written to: /content/football/third_party/gfootball_engine

However, when trying import gfootball.env as football_env, I'm still getting:

ImportError: libboost_filesystem.so.1.65.1: cannot open shared object file: No such file or directory

I'm not sure why it's looking for 1.65.1 instead of 1.71.0

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