seemoo-lab / opendrop

An open Apple AirDrop implementation written in Python
https://owlink.org
GNU General Public License v3.0
8.71k stars 272 forks source link

Has no update_service method... #97

Open emirelease opened 2 years ago

emirelease commented 2 years ago

Whenever I run "opendrop find", it will show the warning below: /home//.local/lib/python3.10/site-packages/zeroconf/_services/browser.py:168: FutureWarning: <opendrop.client.AirDropBrowser object at 0x7f9409ff7fd0> has no update_service method. Provide one (it can be empty if you don't care about the updates), it'll become mandatory. warnings.warn(

I have no idea why it's doing this and I have no idea what to do about it. I've tried: -reinstalling all required packages including opendrop

takatost commented 2 years ago

You can try:

sudo pip3 install zeroconf==0.24.5
IronBit-0 commented 2 years ago

@takatost's advice worked for me. The Error message is only a warning, so the program is still functioning. The warning means that in the future the program might not work, but it'll work now. You could also fix the warning message by adding

def update_service(self, zeroconf, service_type, name):
        """Callback when a service is updated."""
        pass

to opendrop/client.py's AirDropBrowser class. This was how it was allegedly fixed in #90.

lucasromeiro commented 1 year ago

Hi, @takatost @IronBit-0 @emirelease

I'm having trouble extracting keys from my Mac Studio. did you have any problems?
can you give me any tips?

thank you for any help.