Skip to content

Fix Nuitka build #32

@tnibert

Description

@tnibert

The application compiles successfully, but running it yields the following error:

$ ./andromeda.bin 
<frozen importlib._bootstrap>:816: 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.6.1 (SDL 2.32.66, Python 3.14.4)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "/home/tim/code/andromeda/andromeda-linux/andromeda.py", line 17, in <module>
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "/home/tim/code/andromeda/andromeda-linux/levels/levelconfigs.py", line 3, in <module levels.levelconfigs>
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "/home/tim/code/andromeda/andromeda-linux/sprites/boss.py", line 1, in <module sprites.boss>
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "/home/tim/code/andromeda/andromeda-linux/core/textelement.py", line 1, in <module core.textelement>
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "/home/tim/code/andromeda/andromeda-linux/core/gameobject.py", line 3, in <module core.gameobject>
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "/home/tim/code/andromeda/andromeda-linux/core/statemachine.py", line 5, in <module core.statemachine>
  File "/home/tim/code/andromeda/andromeda-linux/core/statemachine.py", line 23, in State
NameError: name 'State' is not defined

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