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

Has no update_service method... #97

Open
emirelease opened this issue Oct 13, 2022 · 3 comments
Open

Has no update_service method... #97

emirelease opened this issue Oct 13, 2022 · 3 comments

Comments

@emirelease
Copy link

emirelease commented Oct 13, 2022

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
Copy link

You can try:

sudo pip3 install zeroconf==0.24.5

@IronBit-0
Copy link

@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
Copy link

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.

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

No branches or pull requests

4 participants