Amulet-Map-Editor icon indicating copy to clipboard operation
Amulet-Map-Editor copied to clipboard

Errors loading world.

Open Xlaits opened this issue 4 years ago • 10 comments
trafficstars

Describe the bug I cannot load any worlds.

To Reproduce Steps to reproduce the behavior:

  1. Open a world.

Expected behavior World should open for editing.

Screenshots See code below.

Desktop (please complete the following information):

  • OS: Void Linux x86_64
  • Kernel: 5.13.19_1
                __.;=====;.__                   xlaits@cinnamon 
            _.=+==++=++=+=+===;.                --------------- 
             -=+++=+===+=+=+++++=_              OS: Void Linux x86_64 
        .     -=:``     `--==+=++==.            Kernel: 5.13.19_1 
       _vi,    `            --+=++++:           Uptime: 23 hours, 55 mins 
      .uvnvi.       _._       -==+==+.          Packages: 1628 (xbps-query) 
     .vvnvnI`    .;==|==;.     :|=||=|.         Shell: bash 5.1.8 
+QmQQmpvvnv; _yYsyQQWUUQQQm #QmQ#:QQQWUV$QQm.   Resolution: 1920x1080 
 -QQWQWpvvowZ?.wQQQE==<QWWQ/QWQW.QQWW(: jQWQE   DE: Cinnamon 4.8.6 
  -$QQQQmmU'  jQQQ@+=<QWQQ)mQQQ.mQQQC+;jWQQ@'   WM: Mutter (Muffin) 
   -$WQ8YnI:   QWQQwgQQWV`mWQQ.jQWQQgyyWW@!     WM Theme: Cinnamox-Rosso-Cursa  
     -1vvnvv.     `~+++`        ++|+++          Theme: Adwaita-dark [GTK2/3] 
      +vnvnnv,                 `-|===           Icons: gnome [GTK2/3] 
       +vnvnvns.           .      :=-           Terminal: gnome-terminal 
        -Invnvvnsi..___..=sv=.     `            CPU: AMD FX-8320 (8) @ 3.500GHz 
          +Invnvnvnnnnnnnnvvnn;.                GPU: NVIDIA GeForce GTX 950 
            ~|Invnvnvvnvvvnnv}+`                Memory: 6883MiB / 15968MiB 
               -~|{*l}*|~

Additional context

list index out of range
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

Xlaits avatar Nov 23 '21 02:11 Xlaits

I am also getting the following error at the first load:

<class 'wx._glcanvas.GLAttributes'> returned a result with an exception set
NotImplementedError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/programs/edit/edit.py", line 50, in enable
    self._canvas = EditCanvas(self, self._world, self._close_self_callback)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/programs/edit/api/canvas/edit_canvas.py", line 92, in __init__
    super().__init__(parent, world)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/programs/edit/api/canvas/base_edit_canvas.py", line 58, in __init__
    super().__init__(parent)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/opengl/canvas/event_canvas.py", line 12, in __init__
    super().__init__(parent)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/opengl/canvas/canvas.py", line 23, in __init__
    display_attributes = wx.glcanvas.GLAttributes()
SystemError: <class 'wx._glcanvas.GLAttributes'> returned a result with an exception set

Xlaits avatar Nov 23 '21 02:11 Xlaits

Additional error logs from the console:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
2021-11-22 21:27:27,210 - amulet_map_editor - INFO - Failed to display world button for /run/media/xlaits/6991-B6C9/World-2 Image.Scale(): argument 1 has unexpected type 'float'
2021-11-22 21:27:27,214 - amulet_core - INFO - Loading level /run/media/xlaits/6991-B6C9/World-2
21:27:27: Debug: Adding duplicate image handler for 'Windows bitmap file'
21:27:27: Debug: Adding duplicate animation handler for '1' type
21:27:27: Debug: Adding duplicate animation handler for '2' type
2021-11-22 21:27:27,956 - amulet_map_editor - ERROR - Failed to load extension About
Image.Scale(): argument 1 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 108, in _load_extensions
    ext = extension(self, self.world, self._close_self_callback)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/programs/about_program.py", line 35, in __init__
    self.add_object(WorldUI(self, self.world.level_wrapper), 0, wx.ALL | wx.CENTER)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 81, in __init__
    img, width = get_world_image(world_format.world_image_path)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 64, in get_world_image
    img.Scale(width, 128, wx.IMAGE_QUALITY_NEAREST).ConvertToBitmap(),
TypeError: Image.Scale(): argument 1 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 108, in _load_extensions
    ext = extension(self, self.world, self._close_self_callback)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/programs/about_program.py", line 35, in __init__
    self.add_object(WorldUI(self, self.world.level_wrapper), 0, wx.ALL | wx.CENTER)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 81, in __init__
    img, width = get_world_image(world_format.world_image_path)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 64, in get_world_image
    img.Scale(width, 128, wx.IMAGE_QUALITY_NEAREST).ConvertToBitmap(),
TypeError: Image.Scale(): argument 1 has unexpected type 'float'
2021-11-22 21:27:27,961 - amulet_map_editor - ERROR - Failed to load extension Convert
Image.Scale(): argument 1 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 108, in _load_extensions
    ext = extension(self, self.world, self._close_self_callback)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/programs/convert/convert.py", line 51, in __init__
    WorldUI(self._input, self.world.level_wrapper), 0, wx.ALL | wx.CENTER
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 81, in __init__
    img, width = get_world_image(world_format.world_image_path)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 64, in get_world_image
    img.Scale(width, 128, wx.IMAGE_QUALITY_NEAREST).ConvertToBitmap(),
TypeError: Image.Scale(): argument 1 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 108, in _load_extensions
    ext = extension(self, self.world, self._close_self_callback)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/programs/convert/convert.py", line 51, in __init__
    WorldUI(self._input, self.world.level_wrapper), 0, wx.ALL | wx.CENTER
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 81, in __init__
    img, width = get_world_image(world_format.world_image_path)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 64, in get_world_image
    img.Scale(width, 128, wx.IMAGE_QUALITY_NEAREST).ConvertToBitmap(),
TypeError: Image.Scale(): argument 1 has unexpected type 'float'
2021-11-22 21:27:27,963 - amulet_map_editor - CRITICAL - NotImplementedError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/programs/edit/edit.py", line 50, in enable
    self._canvas = EditCanvas(self, self._world, self._close_self_callback)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/programs/edit/api/canvas/edit_canvas.py", line 92, in __init__
    super().__init__(parent, world)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/programs/edit/api/canvas/base_edit_canvas.py", line 58, in __init__
    super().__init__(parent)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/opengl/canvas/event_canvas.py", line 12, in __init__
    super().__init__(parent)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/opengl/canvas/canvas.py", line 23, in __init__
    display_attributes = wx.glcanvas.GLAttributes()
SystemError: <class 'wx._glcanvas.GLAttributes'> returned a result with an exception set

2021-11-22 21:27:34,024 - amulet_map_editor - CRITICAL - Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 247, in _open_world
    self.open_world_callback(path)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 327, in _update_recent
    self._open_world_callback(path)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 349, in _run_callback
    self._open_world_callback(path)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/amulet_ui.py", line 185, in _open_world
    self._add_world_tab(world, world.world_name)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/amulet_ui.py", line 151, in _add_world_tab
    self._disable_enable()
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/amulet_ui.py", line 147, in _disable_enable
    self._last_page.enable()
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 176, in enable
    self._enable_active()
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 164, in _enable_active
    self._extensions.pop(self.GetSelection())
IndexError: pop from empty list
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
2021-11-22 21:28:01,684 - amulet_map_editor - INFO - Failed to display world button for /run/media/xlaits/6991-B6C9/World-2 Image.Scale(): argument 1 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
2021-11-22 21:28:19,152 - amulet_map_editor - INFO - Failed to display world button for /run/media/xlaits/6991-B6C9/World-2 Image.Scale(): argument 1 has unexpected type 'float'
2021-11-22 21:28:19,156 - amulet_map_editor - CRITICAL - Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 247, in _open_world
    self.open_world_callback(path)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 327, in _update_recent
    self._open_world_callback(path)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 349, in _run_callback
    self._open_world_callback(path)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/amulet_ui.py", line 164, in _open_world
    self._disable_enable()
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/amulet_ui.py", line 147, in _disable_enable
    self._last_page.enable()
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 176, in enable
    self._enable_active()
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 164, in _enable_active
    self._extensions.pop(self.GetSelection())
IndexError: pop from empty list
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
2021-11-22 21:28:31,730 - amulet_map_editor - INFO - Failed to display world button for /run/media/xlaits/6991-B6C9/World-2 Image.Scale(): argument 1 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
2021-11-22 21:28:44,758 - amulet_map_editor - INFO - Failed to display world button for /run/media/xlaits/6991-B6C9/World-2 Image.Scale(): argument 1 has unexpected type 'float'
2021-11-22 21:28:44,762 - amulet_map_editor - CRITICAL - Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 155, in _enable_active
    self._extensions[self.GetSelection()].enable()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 247, in _open_world
    self.open_world_callback(path)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 327, in _update_recent
    self._open_world_callback(path)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/wx/ui/select_world.py", line 349, in _run_callback
    self._open_world_callback(path)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/amulet_ui.py", line 164, in _open_world
    self._disable_enable()
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/amulet_ui.py", line 147, in _disable_enable
    self._last_page.enable()
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 176, in enable
    self._enable_active()
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 164, in _enable_active
    self._extensions.pop(self.GetSelection())
IndexError: pop from empty list
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 5201, in OnPaint
    renderer.DrawTabs(self, dc)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2356, in DrawTabs
    self.DrawTab(pc, dc, posx, i, tabWidth, tabHeight, pc._nTabXButtonStatus)
  File "/home/xlaits/AmuletMC/AmuletEnv/lib/python3.10/site-packages/wx/lib/agw/flatnotebook.py", line 2655, in DrawTab
    dc.DrawText(pc.GetPageText(tabIdx), posx + textOffset, imageYCoord)
TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'float'
  overload 2: argument 2 has unexpected type 'float'
Fatal Python error: PyThreadState_Get: the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL)
Python runtime state: finalizing (tstate=0x0000564871a9d3b0)

Current thread 0x00007f8ae8de5740 (most recent call first):
  <no Python frame>

Extension modules: wx.siplib, wx._core, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg.lapack_lite, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, amulet_nbt.amulet_cy_nbt, wx._stc, wx._glcanvas, PIL._imaging, wx._adv (total: 21)
Aborted

Xlaits avatar Nov 23 '21 02:11 Xlaits

This looks very similar to #449 but slightly different. Whatever is causing it is probably causing both.

gentlegiantJGC avatar Nov 24 '21 13:11 gentlegiantJGC

This looks very similar to #449 but slightly different. Whatever is causing it is probably causing both.

Similar, but not exact. It looks like they could load the world, but not enter the 3D editor. I cannot even load the world.

Xlaits avatar Nov 26 '21 15:11 Xlaits

I just ran into this now after upgrading python packages to 3.10 and making a new virtual environment. Previously I could load a Bedrock 1.17 world fine using python3.9, but the same world using python3.10 I see this behaviour. From a quick googling it seems like wxPython is returning an "argument n has unexpected type 'float'" error which could be related to an implicit conversion to int bug closed in 3.10 https://bugs.python.org/issue37999

quaderror avatar Dec 13 '21 12:12 quaderror

I too solved very similar issue by downgrading python 3.10 to 3.9. Might want to update front page with python 3.7-3.9 requirement for now?

frazor avatar Dec 14 '21 00:12 frazor

I don't have the option to downgrade to Python 3.9 from 3.10. How do I work around this issue?

I got Amulet to launch, but it's filled with errors like this related to wrong data types.

sudofox avatar Dec 20 '21 21:12 sudofox

Instead of just outright downgrading Python to 3.9, you may be able to install 3.9 alongside 3.10. For example, on Arch, download the python39 package from the AUR yourself or using yay. Then, create a new virtual environment using python3.9 instead of python3. This will make a new environment running 3.9 instead of 3.10, while not messing up any other system packages that may require 3.10.

Tested this out myself, and it seems to work perfectly fine.

Arrowpuppet avatar Feb 18 '22 00:02 Arrowpuppet

That is assuming that they CAN do something like that. No other distros that I am aware of have an AUR equivalent, not counting the arch-based ones. From: ArrowpuppetSent: Thursday, February 17, 2022 7:20 PMTo: Amulet-Team/Amulet-Map-EditorCc: Xlaits Xavier; AuthorSubject: Re: [Amulet-Team/Amulet-Map-Editor] Errors loading world. (Issue #465) Instead of just outright downgrading Python to 3.9, you may be able to install 3.9 alongside 3.10. For example, on Arch, download the python39 package from the AUR yourself or using yay. Then, create a new virtual environment through the command python3.9 -m venv example-env where 'example-env' would be whatever env name you want. This will make the environment run 3.9 instead of 3.10, while not messing up any other system packages that may require 3.10.Tested this out myself, and it seems to work perfectly fine.—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: ***@***.***> 

	Virus-free. www.avast.com

Xlaits avatar Feb 20 '22 05:02 Xlaits

I also get this error, here is some information!

After I compiled WxPython and installed Amulet Editor, I get this error when I try to open a world.

Error

2022-06-16 00:34:30,299 - amulet_core - INFO - Loading level /home/freeklucas/.minecraft/saves/Test (1)
00:34:30: Debug: Adding duplicate image handler for 'Windows bitmap file'
00:34:30: Debug: Adding duplicate animation handler for '1' type
00:34:30: Debug: Adding duplicate animation handler for '2' type
2022-06-16 00:34:32,377 - amulet_map_editor - CRITICAL - NotImplementedError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/freeklucas/python/amulet/amulet/lib/python3.9/site-packages/amulet_map_editor/api/framework/pages/world_page.py", line 157, in _enable_active
    self._extensions[self.GetSelection()].enable()
  File "/home/freeklucas/python/amulet/amulet/lib/python3.9/site-packages/amulet_map_editor/programs/edit/edit.py", line 50, in enable
    self._canvas = EditCanvas(self, self._world, self._close_self_callback)
  File "/home/freeklucas/python/amulet/amulet/lib/python3.9/site-packages/amulet_map_editor/programs/edit/api/canvas/edit_canvas.py", line 93, in __init__
    super().__init__(parent, world)
  File "/home/freeklucas/python/amulet/amulet/lib/python3.9/site-packages/amulet_map_editor/programs/edit/api/canvas/base_edit_canvas.py", line 58, in __init__
    super().__init__(parent)
  File "/home/freeklucas/python/amulet/amulet/lib/python3.9/site-packages/amulet_map_editor/api/opengl/canvas/event_canvas.py", line 12, in __init__
    super().__init__(parent)
  File "/home/freeklucas/python/amulet/amulet/lib/python3.9/site-packages/amulet_map_editor/api/opengl/canvas/canvas.py", line 23, in __init__
    display_attributes = wx.glcanvas.GLAttributes()
SystemError: <class 'wx._glcanvas.GLAttributes'> returned a result with an error set

Steps To Reproduce:

  1. Open a GNU/Linux Debian 11 VM if you don't use Debian 11
  2. Compile WxPython
  3. Install and open Amulet Editor
  4. Try to open a World

Environment:

  • OS: GNU/Linux (Debian 11)
  • Minecraft Platform: Java Edition
  • Minecraft Version: 1.18.2, but I also get this error if I open a world on another version.
  • Amulet Version: 0.9.4

Screenshots

image

freeklucas avatar Jun 15 '22 22:06 freeklucas

I believe the error in the first post has been fixed but the GLAttributes error that caused the actual error has not been fixed. I am going to close this and continue tracking the GLAttributes error in #449 so we don't have two tickets for the same issue.

gentlegiantJGC avatar Sep 05 '22 14:09 gentlegiantJGC