google-research / football

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

Issue at execution with libboost_python39 #241

Closed lcassano closed 3 years ago

lcassano commented 4 years ago

I successfully installed gfootball. To be able to do this I had to change a couple of lines football/third_party/gfootball_engine/CMakeLists.txt otherwise it couldn't find Python boost. More specifically, I changed: FIND_PACKAGE(Boost COMPONENTS python${PYTHON_MAJOR}${PYTHON_MINOR}) if (Boost_PYTHON${PYTHON_MAJOR}${PYTHON_MINOR}_FOUND) set(BOOST_PYTHON_VERSION python${PYTHON_MAJOR}${PYTHON_MINOR}) else() message(FATAL_ERROR "Python boost not found") endif()

For: FIND_PACKAGE(Boost COMPONENTS python39) if (Boost_PYTHON39_FOUND) set(BOOST_PYTHON_VERSION python39) else() message(FATAL_ERROR "Python boost not found") endif()


But now I have a problem when I run "python3 -m gfootball.play_game --action_set=full", I get the following error:

WARNING:root:Looks like game engine is not compiled, please run: WARNING:root: pushd /Users/lucas/football/football-env/lib/python3.8/site-packages/gfootball_engine && cmake . && make -j nproc && popd WARNING:root: pushd /Users/lucas/football/football-env/lib/python3.8/site-packages/gfootball_engine && ln -s libgame.so _gameplayfootball.so && popd Traceback (most recent call last): File "/usr/local/Cellar/python@3.8/3.8.6/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 185, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/local/Cellar/python@3.8/3.8.6/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 111, in _get_module_details import(pkg_name) File "/Users/lucas/football/gfootball/init.py", line 17, in from gfootball.env import scenario_builder File "/Users/lucas/football/gfootball/env/init.py", line 21, in from gfootball.env import config File "/Users/lucas/football/gfootball/env/config.py", line 24, in import gfootball_engine as libgame File "/Users/lucas/football/football-env/lib/python3.8/site-packages/gfootball_engine/init.py", line 39, in from _gameplayfootball import * ImportError: dlopen(/Users/lucas/football/football-env/lib/python3.8/site-packages/gfootball_engine/_gameplayfootball.so, 2): Symbol not found: _PyCMethod_New Referenced from: /usr/local/opt/boost-python3/lib/libboost_python39-mt.dylib Expected in: flat namespace in /usr/local/opt/boost-python3/lib/libboost_python39-mt.dylib

When I run "pushd /Users/lucas/football/football-env/lib/python3.8/site-packages/gfootball_engine && ln -s libgame.so _gameplayfootball.so && popd" I get -> "ln: _gameplayfootball.so: File exists"

When I run "pushd /Users/lucas/football/football-env/lib/python3.8/site-packages/gfootball_engine && cmake . && make -j nproc && popd" I get the long output I include in the attached file

It seems I still have trouble with boost, however I'm at lost right now and I'm unsure how to fix this issue. (I'm running MacOS Catalina version 10.15.7)

Any help is greatly appreciated.

output_required_command.txt

lcassano commented 4 years ago

The problem is that brew install python3 boost installed python 3.8 with the new version of boost 1.74, which requires python3.9. Installing python3.9 seems to generate other issues. In particular, when I pip3 install gfootball the installation process when building the wheel for pygame. Was anyone able to successfully install football with python3.9+boost1.74?

Any pointers are appreciated. Below I include the error:

Building wheel for pygame (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/9f/wljnkjpd73vg2y76v3kc0v8w0000gn/T/pip-install-opzzfcvz/pygame/setup.py'"'"'; file='"'"'/private/var/folders/9f/wljnkjpd73vg2y76v3kc0v8w0000gn/T/pip-install-opzzfcvz/pygame/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/9f/wljnkjpd73vg2y76v3kc0v8w0000gn/T/pip-wheel-ongxfzxe
cwd: /private/var/folders/9f/wljnkjpd73vg2y76v3kc0v8w0000gn/T/pip-install-opzzfcvz/pygame/
Complete output (425 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-3.9
creating build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/surfarray.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/sysfont.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/_camera_vidcapture.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/sndarray.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/version.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/compat.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/draw_py.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/colordict.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/ftfont.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/midi.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/cursors.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/_numpysndarray.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/sprite.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/macosx.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/_numpysurfarray.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/camera.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/freetype.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/_camera_opencv_highgui.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/pkgdata.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/locals.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
copying src_py/dummybackend.py -> build/lib.macosx-10.15-x86_64-3.9/pygame
creating build/lib.macosx-10.15-x86_64-3.9/pygame/threads
copying src_py/threads/Py25Queue.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/threads
copying src_py/threads/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/threads
creating build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/base_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/font_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/mixer_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/rwobject_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/pixelcopy_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/overlay_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/scrap_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/touch_tags.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/imageext_tags.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/pixelarray_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/draw_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/transform_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/blit_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/bufferproxy_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/surfarray_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/mouse_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/surfarray_tags.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/event_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/imageext_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/sprite_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/touch_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/gfxdraw_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/rect_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/scrap_tags.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/overlay_tags.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/color_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/camera_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/surflock_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/key_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/sysfont_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/font_tags.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/mixer_tags.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/constants_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/mixer_music_tags.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/sndarray_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/image_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/version_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/freetype_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/joystick_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/midi_tags.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/ftfont_tags.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/imagesave_gl_surface_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/cdrom_tags.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/cursors_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/fastevent_tags.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/display_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/fastevent_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/compat_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/ftfont_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/cdrom_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/mask_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/midi_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/freetype_tags.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/math_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/time_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/image_tags.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/threads_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/main.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/mixer_music_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/sndarray_tags.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/test_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
copying test/surface_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests
creating build/lib.macosx-10.15-x86_64-3.9/pygame/tests/test_utils
copying test/test_utils/run_tests.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/test_utils
copying test/test_utils/endian.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/test_utils
copying test/test_utils/test_machinery.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/test_utils
copying test/test_utils/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/test_utils
copying test/test_utils/png.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/test_utils
copying test/test_utils/test_runner.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/test_utils
copying test/test_utils/arrinter.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/test_utils
copying test/test_utils/buftools.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/test_utils
copying test/test_utils/async_sub.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/test_utils
creating build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_tests__tests
copying test/run_teststests/run_teststest.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests
copying test/run_teststests/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests
creating build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/all_ok
copying test/run_teststests/all_ok/fake_3_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/all_ok
copying test/run_teststests/all_ok/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/all_ok
copying test/run_teststests/all_ok/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/all_ok
copying test/run_teststests/all_ok/fake_4_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/all_ok
copying test/run_teststests/all_ok/fake_5_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/all_ok
copying test/run_teststests/all_ok/no_assertionsret_code_of_1test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/all_ok
copying test/run_tests__tests/all_ok/zero_tests_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/all_ok
copying test/run_teststests/all_ok/fake_6_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_tests__tests/all_ok
creating build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/failures1
copying test/run_teststests/failures1/fake_3_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/failures1
copying test/run_teststests/failures1/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/failures1
copying test/run_teststests/failures1/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/failures1
copying test/run_teststests/failures1/fake_4_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/failures1
creating build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/incomplete
copying test/run_teststests/incomplete/fake_3_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/incomplete
copying test/run_teststests/incomplete/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/incomplete
copying test/run_teststests/incomplete/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/incomplete
creating build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/infinite_loop
copying test/run_teststests/infinite_loop/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/infinite_loop
copying test/run_teststests/infinite_loop/fake_1_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/infinite_loop
copying test/run_teststests/infinite_loop/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/infinite_loop
creating build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/print_stderr
copying test/run_teststests/print_stderr/fake_3_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/print_stderr
copying test/run_teststests/print_stderr/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/print_stderr
copying test/run_teststests/print_stderr/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/print_stderr
copying test/run_teststests/print_stderr/fake_4_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/print_stderr
creating build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/print_stdout
copying test/run_teststests/print_stdout/fake_3_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/print_stdout
copying test/run_teststests/print_stdout/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/print_stdout
copying test/run_teststests/print_stdout/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/print_stdout
copying test/run_teststests/print_stdout/fake_4_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_tests__tests/print_stdout
creating build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/incomplete_todo
copying test/run_teststests/incomplete_todo/fake_3_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/incomplete_todo
copying test/run_teststests/incomplete_todo/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/incomplete_todo
copying test/run_teststests/incomplete_todo/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_tests__tests/incomplete_todo
creating build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/exclude
copying test/run_teststests/exclude/magic_tag_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/exclude
copying test/run_teststests/exclude/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/exclude
copying test/run_teststests/exclude/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/exclude
copying test/run_teststests/exclude/invisible_tag_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/exclude
creating build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/timeout
copying test/run_tests__tests/timeout/sleep_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/timeout
copying test/run_teststests/timeout/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/timeout
copying test/run_teststests/timeout/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/timeout
creating build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/everything
copying test/run_tests__tests/everything/sleep_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/everything
copying test/run_teststests/everything/magic_tag_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/everything
copying test/run_teststests/everything/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/everything
copying test/run_teststests/everything/incomplete_todo_test.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/everything
copying test/run_teststests/everything/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/tests/run_teststests/everything
creating build/lib.macosx-10.15-x86_64-3.9/pygame/docs
copying docs/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/docs
copying docs/main.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/docs
creating build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/playmus.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/mask.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/sound.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/overlay.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/aacircle.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/chimp.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/liquid.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/audiocapture.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/sound_array_demos.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/midi.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/scroll.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/cursors.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/moveit.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/init.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/blit_blends.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/testsprite.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/textinput.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/vgrade.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/arraydemo.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/stars.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/camera.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/blend_fill.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/fonty.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/headless_no_windows_needed.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/fastevents.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/prevent_display_stretching.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/glcube.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/aliens.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/freetype_misc.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/scaletest.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/video.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/eventlist.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/scrap_clipboard.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/oldalien.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/pixelarray.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
copying examples/dropevent.py -> build/lib.macosx-10.15-x86_64-3.9/pygame/examples
running build_ext
building 'pygame.imageext' extension
creating build/temp.macosx-10.15-x86_64-3.9
creating build/temp.macosx-10.15-x86_64-3.9/src_c
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -Ddarwin -D_THREAD_SAFE -DENABLE_NEWBUF=1 -I/usr/X11R6/include -I/usr/local/include/SDL -I/usr/local/include/SDL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src_c/imageext.c -o build/temp.macosx-10.15-x86_64-3.9/src_c/imageext.o
src_c/imageext.c:217:45: warning: comparison of integers of different signs: 'int' and 'png_size_t' (aka 'unsigned long') [-Wsign-compare]
if (SDL_RWwrite(rwops, data, 1, length) != length) {
~~~~~~~ ^ ~~
src_c/imageext.c:488:68: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
if (SDL_RWwrite(dest->outfile, dest->buffer, 1, datacount) != datacount) {
~~~~~~~~~~~~ ^ ~~~
src_c/imageext.c:559:32: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
if (num_lines_to_write >
~~~~ ^
3 warnings generated.
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk build/temp.macosx-10.15-x86_64-3.9/src_c/imageext.o -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/sqlite/lib -lSDLmain -lSDL -lSDL_image -lpng -ljpeg -o build/lib.macosx-10.15-x86_64-3.9/pygame/imageext.cpython-39-darwin.so -Wl,-framework,Cocoa
building 'pygame.font' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -Ddarwin -D_THREAD_SAFE -DENABLE_NEWBUF=1 -I/usr/X11R6/include -I/usr/local/include/SDL -I/usr/local/include/SDL -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src_c/font.c -o build/temp.macosx-10.15-x86_64-3.9/src_c/font.o
src_c/font.c:435:29: warning: comparison of integers of different signs: 'unsigned long' and 'Py_ssize_t' (aka 'long') [-Wsign-compare]
if (strlen(astring) != Bytes_GET_SIZE(bytes)) {
~~~ ^ ~~~~~
src_c/font.c:462:29: warning: comparison of integers of different signs: 'unsigned long' and 'Py_ssize_t' (aka 'long') [-Wsign-compare]
if (strlen(astring) != Bytes_GET_SIZE(text)) {
~~~ ^ ~~~~
src_c/font.c:584:12: warning: incompatible pointer types assigning to 'Uint16 ' (aka 'unsigned short ') from 'char *' [-Wincompatible-pointer-types]
buffer = Bytes_AS_STRING(obj);
^ ~~~~
3 warnings generated.
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk build/temp.macosx-10.15-x86_64-3.9/src_c/font.o -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/sqlite/lib -lSDLmain -lSDL -lSDL_ttf -o build/lib.macosx-10.15-x86_64-3.9/pygame/font.cpython-39-darwin.so -Wl,-framework,Cocoa
building 'pygame.mixer' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -Ddarwin -D_THREAD_SAFE -DENABLE_NEWBUF=1 -I/usr/X11R6/include -I/usr/local/include/SDL -I/usr/local/include/SDL -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src_c/mixer.c -o build/temp.macosx-10.15-x86_64-3.9/src_c/mixer.o
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk build/temp.macosx-10.15-x86_64-3.9/src_c/mixer.o -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/sqlite/lib -lSDLmain -lSDL -lSDL_mixer -o build/lib.macosx-10.15-x86_64-3.9/pygame/mixer.cpython-39-darwin.so -Wl,-framework,Cocoa
building 'pygame.mixer_music' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -Ddarwin -D_THREAD_SAFE -DENABLE_NEWBUF=1 -I/usr/X11R6/include -I/usr/local/include/SDL -I/usr/local/include/SDL -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src_c/music.c -o build/temp.macosx-10.15-x86_64-3.9/src_c/music.o
src_c/music.c:385:21: warning: explicitly assigning value of variable of type 'Mix_Music ' (aka 'struct _Mix_Music ') to itself [-Wself-assign]
queue_music = queue_music;
~~~ ^ ~~~
1 warning generated.
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk build/temp.macosx-10.15-x86_64-3.9/src_c/music.o -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/sqlite/lib -lSDLmain -lSDL -lSDL_mixer -o build/lib.macosx-10.15-x86_64-3.9/pygame/mixer_music.cpython-39-darwin.so -Wl,-framework,Cocoa
building 'pygame.pypm' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -Ddarwin -D_THREAD_SAFE -DENABLE_NEWBUF=1 -I/usr/X11R6/include -I/usr/local/include/SDL -I/usr/local/include -I/System/Library/Frameworks/CoreMIDI.framework/Versions/Current/Headers -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src_c/pypm.c -o build/temp.macosx-10.15-x86_64-3.9/src_c/pypm.o
src_c/pypm.c:2247:20: warning: assigning to 'char ' from 'const char ' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
__pyx_v_errmsg = Pm_GetErrorText(__pyx_v_err);
^ ~~~~~~
src_c/pypm.c:6419:27: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4pypm_Output.tp_print = 0;
~~~~~ ^
src_c/pypm.c:6434:26: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4pypm_Input.tp_print = 0;
~~~~ ^
src_c/pypm.c:7037:22: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op) :
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
src_c/pypm.c:7037:22: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE ) PyUnicode_AsUnicode(
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
src_c/pypm.c:7037:22: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op)))
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
src_c/pypm.c:7037:52: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op) :
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
src_c/pypm.c:7037:52: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE ) PyUnicode_AsUnicode(
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
src_c/pypm.c:7037:52: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op)))
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
src_c/pypm.c:7053:26: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op) :
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
src_c/pypm.c:7053:26: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE ) PyUnicode_AsUnicode(
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
src_c/pypm.c:7053:26: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op)))
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
src_c/pypm.c:7053:59: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op) :
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
src_c/pypm.c:7053:59: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE ) PyUnicode_AsUnicode(
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
src_c/pypm.c:7053:59: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op)))
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
13 warnings and 2 errors generated. For help with compilation see:
https://www.pygame.org/wiki/MacCompile
To contribute to pygame development see:
https://www.pygame.org/contribute.html error: command '/usr/bin/clang' failed with exit code 1 ERROR: Failed building wheel for pygame

vi3itor commented 4 years ago

You can try to install previous versions of boost and boost-python, see for example, this comment. You basically need to check the GitHub repo of brew formulas and choose those that fit your needs. The other advice would be to search for open and closed issues in this repo using the keywords brew and boost. Unfortunately, I don't have time to test it on my machine.

lcassano commented 4 years ago

Thanks for the help vi3itor. I have tried installing previous versions of boost and boost-python3 but have been unsuccessful to do so.

The method recommended by homebrew to install previous versions of packages "brew install boost@1.73" doesn't work as no previous versions are available for boost or boost-python3.

I already tried the method you referenced "brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/032f1b7082183f7e3428e2de0e6c435b8ed8db15/Formula/boost.rb" but I get an error: "error: Cannot determine remote HEAD fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree."

Furthermore this method has been disabled apparently -> "Error: Calling Installation of boost from a GitHub commit URL is disabled! Use 'brew extract boost' to stable tap on GitHub instead."

Apparently the "brew install commitURL" still works but is not recommended (https://github.com/Homebrew/brew/issues/8791). However, I'm unsure how to get the right url, as the one provided by the comment you referenced does not work.

I already looked into the open and close issues but I found nothing useful. The update of boost to version 1.74 (which is what is causing me difficulties) took place only 10 days ago so its very recent.

qstanczyk commented 3 years ago

PR #277 is not merged, Windows support added to the environment. Thanks @vi3itor for your great contribution. Closing this issue.