google-research / football

Check out the new game server:
https://research-football.dev
Apache License 2.0
3.28k stars 1.27k forks source link

ImportError: /../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found #366

Open CarlossShi opened 8 months ago

CarlossShi commented 8 months ago

Environment:

Reproduce:

conda create -n football python=3.8
conda activate football
sudo apt-get install git cmake build-essential libgl1-mesa-dev libsdl2-dev \
libsdl2-image-dev libsdl2-ttf-dev libsdl2-gfx-dev libboost-all-dev \
libdirectfb-dev libst-dev mesa-utils xvfb x11vnc python3-pip
python3 -m pip install --upgrade pip setuptools psutil wheel
python3 -m pip install gfootball
python3 -m gfootball.play_game --action_set=full

And then I get the error below:

libgame.so _gameplayfootball.so && popd
Traceback (most recent call last):
  File "/home/carlos/anaconda3/envs/football/lib/python3.8/runpy.py", line 185, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/home/carlos/anaconda3/envs/football/lib/python3.8/runpy.py", line 111, in _get_module_details
    __import__(pkg_name)
  File "/home/carlos/anaconda3/envs/football/lib/python3.8/site-packages/gfootball/__init__.py", line 17, in <module>
    from gfootball.env import scenario_builder
  File "/home/carlos/anaconda3/envs/football/lib/python3.8/site-packages/gfootball/env/__init__.py", line 21, in <module>
    from gfootball.env import config
  File "/home/carlos/anaconda3/envs/football/lib/python3.8/site-packages/gfootball/env/config.py", line 27, in <module>
    import gfootball_engine as libgame
  File "/home/carlos/anaconda3/envs/football/lib/python3.8/site-packages/gfootball_engine/__init__.py", line 43, in <module>
    from _gameplayfootball import *
ImportError: /home/carlos/anaconda3/envs/football/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/carlos/anaconda3/envs/football/lib/python3.8/site-packages/gfootball_engine/_gameplayfootball.so)

I've tried methods suggested in 'GLIBCXX_3.4.30' not found for librosa in conda virtual environment (after trying out a lot of solutions)?, Anaconda ImportError: /usr/lib64/libstdc++.so.6: version GLIBCXX_3.4.21 not found: conda install -c conda-forge libstdcxx-ng=12 and conda install -c conda-forge libstdcxx-ng, respectively.

However, I get another error:

libgame.so _gameplayfootball.so && popd
Traceback (most recent call last):
  File "/home/carlos/anaconda3/envs/football/lib/python3.8/runpy.py", line 185, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/home/carlos/anaconda3/envs/football/lib/python3.8/runpy.py", line 111, in _get_module_details
    __import__(pkg_name)
  File "/home/carlos/anaconda3/envs/football/lib/python3.8/site-packages/gfootball/__init__.py", line 17, in <module>
    from gfootball.env import scenario_builder
  File "/home/carlos/anaconda3/envs/football/lib/python3.8/site-packages/gfootball/env/__init__.py", line 21, in <module>
    from gfootball.env import config
  File "/home/carlos/anaconda3/envs/football/lib/python3.8/site-packages/gfootball/env/config.py", line 27, in <module>
    import gfootball_engine as libgame
  File "/home/carlos/anaconda3/envs/football/lib/python3.8/site-packages/gfootball_engine/__init__.py", line 43, in <module>
    from _gameplayfootball import *
SystemError: initialization of _gameplayfootball raised unreported exception

Would you please help me solve the problem? Thanks!

qq591822071 commented 5 months ago

I have a similar problem, and my error message is Traceback (most recent call last): File "/home/yuechao/anaconda3/envs/grf/lib/python3.9/runpy.py", line 188, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/home/yuechao/anaconda3/envs/grf/lib/python3.9/runpy.py", line 111, in _get_module_details import(pkg_name) File "/home/yuechao/anaconda3/envs/grf/lib/python3.9/site-packages/gfootball/init.py", line 17, in from gfootball.env import scenario_builder File "/home/yuechao/anaconda3/envs/grf/lib/python3.9/site-packages/gfootball/env/init.py", line 21, in from gfootball.env import config File "/home/yuechao/anaconda3/envs/grf/lib/python3.9/site-packages/gfootball/env/config.py", line 27, in import gfootball_engine as libgame File "/home/yuechao/anaconda3/envs/grf/lib/python3.9/site-packages/gfootball_engine/init.py", line 43, in from _gameplayfootball import * ImportError: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0 Hope to receive a reply

Tingz0 commented 2 months ago

I encounter the same issues. Anyone solve this?