Skip to content

AttributeError: 'super' object has no attribute 'init' #15

@murphy2712

Description

@murphy2712

Hi,
I installed the updated repo (from ppa6 naming which was printing fine a couple months ago) and executed the requirement installs, but executing the peripage.py command now gives me this error:

$ python3 peripage.py -m myprinteradress -p A6p -t test
Traceback (most recent call last):
  File "/Users/xxx/Personal/peripage-python-main/peripage.py", line 10, in <module>
    main()
  File "/Users/xxx/Personal/peripage-python-main/peripage/__main__.py", line 76, in main
    printer.connect()
  File "/Users/xxx/Personal/peripage-python-main/peripage/__init__.py", line 156, in connect
    self.sock.connect((self.mac, 1))
  File "/opt/homebrew/lib/python3.11/site-packages/bluetooth/macos.py", line 119, in connect
    return self._sock.connect(addrport)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/lightblue/_bluetoothsockets.py", line 348, in connect
    self.__eventlistener = self.__createlistener()
                           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/lightblue/_bluetoothsockets.py", line 642, in __createlistener
    listener = _ChannelEventListener.alloc().initWithDelegate_(self)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/lightblue/_bluetoothsockets.py", line 787, in initWithDelegate_
    self = super().init()
           ^^^^^^^^^^^^
AttributeError: 'super' object has no attribute 'init'
sys:1: UninitializedDeallocWarning: leaking an uninitialized object of type _ChannelEventListener

I'm running on a Mac M1 with Ventura 13.3.1.
Thanks for the help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pybluezpybluez related problems

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions