GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Traceback error on Arch Linux · Issue #161 · PythonTurtle/PythonTurtle

Traceback error on Arch Linux #161

New issue
Copy link
New issue
Copy link
Open
Open
Traceback error on Arch Linux#161
Copy link

Description

@skippa
skippa
opened on May 14, 2022
Issue body actions

Installed as per instructions, when I run PythonTurtle I get this:

Traceback (most recent call last):
  File "/home/noah/.local/bin/PythonTurtle", line 8, in <module>
    sys.exit(application.run())
  File "/home/noah/.local/lib/python3.10/site-packages/pythonturtle/application.py", line 223, in run
    ApplicationWindow(None, -1, pythonturtle.name, size=(600, 600))
  File "/home/noah/.local/lib/python3.10/site-packages/pythonturtle/application.py", line 59, in __init__
    shelltoprocess.Shell(self.bottom_sizer_panel,
  File "/home/noah/.local/lib/python3.10/site-packages/pythonturtle/shelltoprocess/shell.py", line 41, in __init__
    ForkedShell.__init__(self, parent, *args,
  File "/home/noah/.local/lib/python3.10/site-packages/pythonturtle/shelltoprocess/forkedpyshell.py", line 318, in __init__
    self.Bind(wx.EVT_MENU,
  File "/usr/lib/python3.10/site-packages/wx/core.py", line 1406, in _EvtHandler_Bind
    event.Bind(self, id, id2, handler)
  File "/usr/lib/python3.10/site-packages/wx/core.py", line 1477, in Bind
    target.Connect(id1, id2, et, function)
TypeError: EvtHandler.Connect(): argument 1 has unexpected type 'WindowIDRef'

wxPython version is 4.0.7.post2, Python version 3.10.4

Any ideas?

Activity

  1. skippa commented on Jun 11, 2022

    @skippa
    skippa
    on Jun 11, 2022
    Author
    More actions

    Is it a version mismatch problem here?

  2. cool-RR commented on Jun 11, 2022

    @cool-RR
    cool-RR
    on Jun 11, 2022
    Member
    More actions

    Hmm, I see that the answer I sent by email was ignored by GitHub for some reason:

    I don't know, sorry. It's possible it's because the wxPython version is too high, you could try using it in a virtualenv with an old version. This is a project from 2009 that isn't very maintained.

  3. cool-RR commented on Oct 11, 2022

    @cool-RR
    cool-RR
    on Oct 11, 2022 via email
    Member
    More actions
    I don't know, sorry. It's possible it's because the wxPython version is too high, you could try using it in a virtualenv with an old version. This is a project from 2009 that isn't very maintained.
    …
    On Sat, May 14, 2022 at 3:53 AM Craig Skipsey ***@***.***> wrote: Installed as per instructions, when I run PythonTurtle I get this: Traceback (most recent call last): File "/home/noah/.local/bin/PythonTurtle", line 8, in <module> sys.exit(application.run()) File "/home/noah/.local/lib/python3.10/site-packages/pythonturtle/application.py", line 223, in run ApplicationWindow(None, -1, pythonturtle.name, size=(600, 600)) File "/home/noah/.local/lib/python3.10/site-packages/pythonturtle/application.py", line 59, in __init__ shelltoprocess.Shell(self.bottom_sizer_panel, File "/home/noah/.local/lib/python3.10/site-packages/pythonturtle/shelltoprocess/shell.py", line 41, in __init__ ForkedShell.__init__(self, parent, *args, File "/home/noah/.local/lib/python3.10/site-packages/pythonturtle/shelltoprocess/forkedpyshell.py", line 318, in __init__ self.Bind(wx.EVT_MENU, File "/usr/lib/python3.10/site-packages/wx/core.py", line 1406, in _EvtHandler_Bind event.Bind(self, id, id2, handler) File "/usr/lib/python3.10/site-packages/wx/core.py", line 1477, in Bind target.Connect(id1, id2, et, function) TypeError: EvtHandler.Connect(): argument 1 has unexpected type 'WindowIDRef' wxPython version is 4.0.7.post2 Any ideas? — Reply to this email directly, view it on GitHub <#161>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAN3SQ3Y6VRGQ437EHWV6TVJ32PTANCNFSM5V42QUYA> . You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
  4. bittner commented on Oct 11, 2022

    @bittner
    bittner
    on Oct 11, 2022
    Member
    More actions

    According to our README the supported wxPython version is 4.0.1.

    If you're willing to find out what changed in their API since that version we could add some conditional code the make it work for both that and your newer version of wxPython.

    A pull request to fix the problem would be awesome!

  5. ShaunRoselt commented on Jan 3, 2026

    @ShaunRoselt
    ShaunRoselt
    on Jan 3, 2026
    More actions

    I also get some kind of traceback error:

    📦[deck@Python ~]$ PythonTurtle
    /home/deck/.local/lib/python3.13/site-packages/pythonturtle/misc/helpers.py:7: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
      import pkg_resources
    Gtk-Message: 07:50:19.210: Failed to load module "canberra-gtk-module"
    Gtk-Message: 07:50:19.232: Failed to load module "colorreload-gtk-module"
    Gtk-Message: 07:50:19.232: Failed to load module "window-decorations-gtk-module"
    Traceback (most recent call last):
      File "/home/deck/.local/lib/python3.13/site-packages/pythonturtle/turtlewidget.py", line 64, in on_paint
        dc.DrawBitmap(self.bitmap, *top_left_corner)
        ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: DC.DrawBitmap(): 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/deck/.local/lib/python3.13/site-packages/pythonturtle/turtlewidget.py", line 64, in on_paint
        dc.DrawBitmap(self.bitmap, *top_left_corner)
        ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: DC.DrawBitmap(): arguments did not match any overloaded call:
      overload 1: argument 2 has unexpected type 'float'
      overload 2: argument 2 has unexpected type 'float'
    Segmentation fault         (core dumped) PythonTurtle
    
  6. cool-RR commented on Jan 3, 2026

    @cool-RR
    cool-RR
    on Jan 3, 2026
    Member
    More actions

    Hi Shaun. I'm sorry, PythonTurtle has been bottom priority for me for a long time. It's unlikely anyone will help. If you have time I suggest you get Claude Code to take a stab at it.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.