I’m attempting to create a Flatpak from the Python-based Amulet Minecraft Map Editor. The Flatpak building is fine, and the app launches without an issue, but when loading a saved Minecraft world in the 3D editor, I get this:
INFO - PyMCTranslate Version 291
Gtk-Message: 13:20:08.646: Failed to load module "xapp-gtk3-module"
INFO - Loading level /home/evilsupahfly/.minecraft/saves/Otherwhere
INFO - Loading level /home/evilsupahfly/.minecraft/saves/Otherwhere
CRITICAL - NotImplementedError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 178, in _enable_page
self.GetPage(page).enable()
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/edit.py", line 69, in enable
self._canvas = EditCanvas(self, self._world)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/api/canvas/edit_canvas.py", line 150, in __init__
super().__init__(parent, world)
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/api/canvas/base_edit_canvas.py", line 63, in __init__
super().__init__(parent)
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/opengl/canvas/event_canvas.py", line 15, in __init__
super().__init__(parent)
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/opengl/canvas/canvas.py", line 41, in __init__
display_attributes = GLAttributes()
^^^^^^^^^^^^^^
SystemError: <class 'wx._glcanvas.GLAttributes'> returned a result with an exception set
CRITICAL - NotImplementedError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 178, in _enable_page
self.GetPage(page).enable()
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/edit.py", line 69, in enable
self._canvas = EditCanvas(self, self._world)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/api/canvas/edit_canvas.py", line 150, in __init__
super().__init__(parent, world)
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/api/canvas/base_edit_canvas.py", line 63, in __init__
super().__init__(parent)
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/opengl/canvas/event_canvas.py", line 15, in __init__
super().__init__(parent)
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/opengl/canvas/canvas.py", line 41, in __init__
display_attributes = GLAttributes()
^^^^^^^^^^^^^^
SystemError: <class 'wx._glcanvas.GLAttributes'> returned a result with an exception set
CRITICAL - NotImplementedError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 178, in _enable_page
self.GetPage(page).enable()
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/edit.py", line 69, in enable
self._canvas = EditCanvas(self, self._world)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/api/canvas/edit_canvas.py", line 150, in __init__
super().__init__(parent, world)
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/api/canvas/base_edit_canvas.py", line 63, in __init__
super().__init__(parent)
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/opengl/canvas/event_canvas.py", line 15, in __init__
super().__init__(parent)
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/opengl/canvas/canvas.py", line 41, in __init__
display_attributes = GLAttributes()
^^^^^^^^^^^^^^
SystemError: <class 'wx._glcanvas.GLAttributes'> returned a result with an exception set
During handling of the above exception, another exception occurred:
NotImplementedError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 178, in _enable_page
self.GetPage(page).enable()
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/edit.py", line 69, in enable
self._canvas = EditCanvas(self, self._world)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/api/canvas/edit_canvas.py", line 150, in __init__
super().__init__(parent, world)
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/api/canvas/base_edit_canvas.py", line 63, in __init__
super().__init__(parent)
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/opengl/canvas/event_canvas.py", line 15, in __init__
super().__init__(parent)
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/opengl/canvas/canvas.py", line 41, in __init__
display_attributes = GLAttributes()
^^^^^^^^^^^^^^
SystemError: <class 'wx._glcanvas.GLAttributes'> returned a result with an exception set
CRITICAL - NotImplementedError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 178, in _enable_page
self.GetPage(page).enable()
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/edit.py", line 69, in enable
self._canvas = EditCanvas(self, self._world)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/api/canvas/edit_canvas.py", line 150, in __init__
super().__init__(parent, world)
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/api/canvas/base_edit_canvas.py", line 63, in __init__
super().__init__(parent)
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/opengl/canvas/event_canvas.py", line 15, in __init__
super().__init__(parent)
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/opengl/canvas/canvas.py", line 41, in __init__
display_attributes = GLAttributes()
^^^^^^^^^^^^^^
SystemError: <class 'wx._glcanvas.GLAttributes'> returned a result with an exception set
During handling of the above exception, another exception occurred:
NotImplementedError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 178, in _enable_page
self.GetPage(page).enable()
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/edit.py", line 69, in enable
self._canvas = EditCanvas(self, self._world)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/api/canvas/edit_canvas.py", line 150, in __init__
super().__init__(parent, world)
File "/app/lib/python3.11/site-packages/amulet_map_editor/programs/edit/api/canvas/base_edit_canvas.py", line 63, in __init__
super().__init__(parent)
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/opengl/canvas/event_canvas.py", line 15, in __init__
super().__init__(parent)
File "/app/lib/python3.11/site-packages/amulet_map_editor/api/opengl/canvas/canvas.py", line 41, in __init__
display_attributes = GLAttributes()
^^^^^^^^^^^^^^
SystemError: <class 'wx._glcanvas.GLAttributes'> returned a result with an exception set
(amulet_map_editor:2): GLib-GObject-CRITICAL **: 13:20:40.497: ../gobject/gsignal.c:2778: instance '0x65340a9834c0' has no handler with id '3836'
It looks to me like there was some issue with wxPython creating the 3D map canvas, but I’ll be honest here - I have no idea what all this means, or even where to begin when trying to fix it.
Is this related to the Python project itself - some flaw in the Map Editor’s code? Or is this something that didn’t build properly in the Flatpak sandbox? How can I know which is which?