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

opendrop find not printing and errors Mac OS 12.3.1 #92

Closed
bennyscripts opened this issue Aug 3, 2022 · 4 comments
Closed

opendrop find not printing and errors Mac OS 12.3.1 #92

bennyscripts opened this issue Aug 3, 2022 · 4 comments

Comments

@bennyscripts
Copy link

When trying to use opendrop find It doesn't print anything other than the future warning that i fixed myself and when an airdrop user shows up in the airdrop finder window it prints an error to the screen. The error that shows up is below.

Exception in thread zeroconf-ServiceBrowser-_airdrop._tcp-17461:
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/[email protected]/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/opt/homebrew/lib/python3.9/site-packages/zeroconf/_services/browser.py", line 534, in run
    self._fire_service_state_changed_event(event)
  File "/opt/homebrew/lib/python3.9/site-packages/zeroconf/_services/browser.py", line 417, in _fire_service_state_changed_event
    self._service_state_changed.fire(
  File "/opt/homebrew/lib/python3.9/site-packages/zeroconf/_services/__init__.py", line 55, in fire
    h(**kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/zeroconf/_services/browser.py", line 178, in on_change
    getattr(listener, _ON_CHANGE_DISPATCH[state_change])(zeroconf, service_type, name)
AttributeError: 'AirDropBrowser' object has no attribute 'update_service'

Below is a GIF of what happens when I run opendrop find.
CleanShot 2022-08-03 at 5 02 00

I have also looked at running owl at the same time but I wasn't able to get owl working on my wifi adapter.

@bennyscripts
Copy link
Author

I've just edited the find function in the CLI and replaced logger.info with print and it seemed to start working. So i feel this is something to do with the logger class. Im going to edit the logger class and see if it starts to print things.

@bennyscripts
Copy link
Author

bennyscripts commented Aug 3, 2022

So i didn't realise but my logging lib doesn't print anything so i have made my own logging class which prints and logs to the normal logging lib. so now it is printing perfectly fine.

@bennyscripts
Copy link
Author

bennyscripts commented Aug 3, 2022

Making my own logging class fixed it perfectly fine. (added colours cuz why not)
CleanShot 2022-08-03 at 5 21 44@2x

For other users looking for a fix to this take a look at this pull request: #93

@lucasromeiro
Copy link

Hello everyone, this happened in the first step to get the keys:

image

I continued the tutorial normally, but when I run the make command I get this error:

image

Can someone help me?

My MAC is a MacStudio with M1 Max and MAC OS 13.1 (22C65) (ventura).

Please, 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

2 participants