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

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

Open
CarlossShi opened this issue Oct 26, 2023 · 4 comments
Open

Comments

@CarlossShi
Copy link

CarlossShi commented Oct 26, 2023

Environment:

  • System: WSL, Ubuntu 22.04.2 LTS
  • Python 3.7.17, 3.8.18, 3.9.18

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!

@ChaoYue97
Copy link

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
Copy link

Tingz0 commented Apr 15, 2024

I encounter the same issues. Anyone solve this?

@ValkyrieMashiro
Copy link

ValkyrieMashiro commented Jul 16, 2024

Same issue.
(grf) zxh@ubuntu-AS-4124GS-TNR:~$ python3 -m gfootball.play_game --action_set=full
Traceback (most recent call last):
File "/home/zxh/anaconda3/envs/grf/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/zxh/anaconda3/envs/grf/lib/python3.8/runpy.py", line 111, in _get_module_details
import(pkg_name)
File "/home/zxh/anaconda3/envs/grf/lib/python3.8/site-packages/gfootball/init.py", line 17, in
from gfootball.env import scenario_builder
File "/home/zxh/anaconda3/envs/grf/lib/python3.8/site-packages/gfootball/env/init.py", line 21, in
from gfootball.env import config
File "/home/zxh/anaconda3/envs/grf/lib/python3.8/site-packages/gfootball/env/config.py", line 27, in
import gfootball_engine as libgame
File "/home/zxh/anaconda3/envs/grf/lib/python3.8/site-packages/gfootball_engine/init.py", line 43, in
from _gameplayfootball import *
SystemError: initialization of _gameplayfootball raised unreported exception

@madaxt
Copy link

madaxt commented Sep 25, 2024

I encountered a similar issue while using Python 3.8.20 on Ubuntu 22.04, but everything worked seamlessly when I switched to Python 3.10.

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

5 participants