Skip to content

Just importing and the automatic device enumeration causes a crash on MAC running Sequoia #121

Description

@superhac

Not sure what the issue is but just running the keyboard example I end up with this traceback:

{\rtf1\ansi\ansicpg1252\cocoartf2822
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\paperw11900\paperh16840\margl1440\margr1440\vieww11520\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0

\f0\fs24 \cf0 python la.py\
/Users/jin46/.vpinfe/lib/python3.13/site-packages/inputs.py:2318: ObjCSuperWarning: Objective-C subclass uses super(), but super is not objc.super\
  class MacKeyboardSetup(NSObject):\
Process Process-1:\
Traceback (most recent call last):\
  File "/opt/homebrew/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/multiprocessing/process.py", line 313, in _bootstrap\
    self.run()\
    ~~~~~~~~^^\
  File "/opt/homebrew/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/multiprocessing/process.py", line 108, in run\
    self._target(*self._args, **self._kwargs)\
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\
  File "/Users/jin46/.vpinfe/lib/python3.13/site-packages/inputs.py", line 2364, in mac_keyboard_process\
    keyboard = MacKeyboardListener(pipe)\
  File "/Users/jin46/.vpinfe/lib/python3.13/site-packages/inputs.py", line 2244, in __init__\
    super(AppKitKeyboardListener, self).__init__(\
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^\
        pipe, codes=dict(MAC_KEYS))\
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^\
  File "/Users/jin46/.vpinfe/lib/python3.13/site-packages/inputs.py", line 1475, in __init__\
    self.install_handle_input()\
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^\
  File "/Users/jin46/.vpinfe/lib/python3.13/site-packages/inputs.py", line 2354, in install_handle_input\
    delegate = MacKeyboardSetup.alloc().init_with_handler(\
        self.handle_input)\
  File "/Users/jin46/.vpinfe/lib/python3.13/site-packages/inputs.py", line 2331, in init_with_handler\
    self = super(MacKeyboardSetup, self).init()\
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\
AttributeError: 'super' object has no attribute 'init'\
/opt/homebrew/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/multiprocessing/process.py:327: UninitializedDeallocWarning: leaking an uninitialized object of type MacKeyboardSetup\
  traceback.print_exc()\
Traceback (most recent call last):\
  File "/Users/jin46/Downloads/la.py", line 17, in <module>\
    main()\
    ~~~~^^\
  File "/Users/jin46/Downloads/la.py", line 11, in main\
    events = get_key()\
  File "/Users/jin46/.vpinfe/lib/python3.13/site-packages/inputs.py", line 3661, in get_key\
    return keyboard.read()\
           ~~~~~~~~~~~~~^^\
  File "/Users/jin46/.vpinfe/lib/python3.13/site-packages/inputs.py", line 2517, in read\
    return next(iter(self))\
  File "/Users/jin46/.vpinfe/lib/python3.13/site-packages/inputs.py", line 2471, in __iter__\
    event = self._do_iter()\
  File "/Users/jin46/.vpinfe/lib/python3.13/site-packages/inputs.py", line 2495, in _do_iter\
    data = self._get_data(read_size)\
  File "/Users/jin46/.vpinfe/lib/python3.13/site-packages/inputs.py", line 2575, in _get_data\
    return self._pipe.recv_bytes()\
           ~~~~~~~~~~~~~~~~~~~~~^^\
  File "/opt/homebrew/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/multiprocessing/connection.py", line 216, in recv_bytes\
    buf = self._recv_bytes(maxlength)\
  File "/opt/homebrew/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/multiprocessing/connection.py", line 430, in _recv_bytes\
    buf = self._recv(4)\
  File "/opt/homebrew/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/multiprocessing/connection.py", line 399, in _recv\
    raise EOFError\
EOFError}

Any help would be great! Thanks.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions