Skip to content

pymunk 6.X have incompatible changes #1

Description

@Freed-Wu
❯ angry-birds
<frozen importlib._bootstrap>:241: RuntimeWarning: Your system is avx2 capable but pygame was not built with support for it. The performance of some of your blits could be adversely affected. Consider enabling compile time detection with environment variables like PYGAME_DETECT_AVX2=1 if you are compiling without cross compilation.
pygame 2.5.2 (SDL 2.30.1, Python 3.11.8)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "/usr/bin/angry-birds", line 5, in <module>
    from angry_birds.__main__ import main
  File "/usr/lib/python3.11/site-packages/angry_birds/__main__.py", line 6, in <module>
    from .state import level
  File "/usr/lib/python3.11/site-packages/angry_birds/state/level.py", line 9, in <module>
    from ..component import button, physics, bird, pig, block
  File "/usr/lib/python3.11/site-packages/angry_birds/component/physics.py", line 495, in <module>
    my_phy = Physics()
             ^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/angry_birds/component/physics.py", line 30, in __init__
    self.reset()
  File "/usr/lib/python3.11/site-packages/angry_birds/component/physics.py", line 46, in reset
    self.setup_lines()
  File "/usr/lib/python3.11/site-packages/angry_birds/component/physics.py", line 59, in setup_lines
    self.space.add(static_lines)
  File "/usr/lib/python3.11/site-packages/pymunk/space.py", line 405, in add
    raise Exception(f"Unsupported type  {type(o)} of {o}.")
Exception: Unsupported type  <class 'list'> of [<pymunk.shapes.Segment object at 0x77aa86b892d0>].

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions