opendrop icon indicating copy to clipboard operation
opendrop copied to clipboard

Has no update_service method...

Open emirelease opened this issue 2 years ago • 3 comments

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

emirelease avatar Oct 13 '22 02:10 emirelease

You can try:

sudo pip3 install zeroconf==0.24.5

takatost avatar Oct 16 '22 06:10 takatost

@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.

IronBit-0 avatar Oct 18 '22 17:10 IronBit-0

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.

lucasromeiro avatar Feb 19 '23 13:02 lucasromeiro