Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
murphy2712 opened this issue May 26, 2023 · 2 comments
Open

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

murphy2712 opened this issue May 26, 2023 · 2 comments
Labels
pybluez pybluez related problems

Comments

@murphy2712
Copy link

murphy2712 commented May 26, 2023

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.

@bitrate16 bitrate16 added the pybluez pybluez related problems label May 27, 2023
@kkogggokk
Copy link

kkogggokk commented Jun 24, 2023

MacOS : 12.6.7
Python : 3.10.11
I installed it through pip install peripage
But I have a similar issue.
스크린샷 2023-06-25 오전 2 22 22

@bitrate16
Copy link
Owner

@murphy2712 @kkogggokk have you tried to install latest bluez library from original repo? https://github.com/pybluez/pybluez

pip install git+https://github.com/pybluez/pybluez@master#egg=pybluez --user

I currently can not test it without hardware

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pybluez pybluez related problems
Projects
None yet
Development

No branches or pull requests

3 participants