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

Having an issue with WifiConnection.py #209

Open
Brammerz45 opened this issue Nov 24, 2020 · 6 comments
Open

Having an issue with WifiConnection.py #209

Brammerz45 opened this issue Nov 24, 2020 · 6 comments

Comments

@Brammerz45
Copy link

I am using python 3.9 and I am new to pyparrot. When trying to connect to my Bebop 2 I come across the following error:

File "C:\Users\Michael\AppData\Local\Programs\Python\Python39\lib\site-packages\pyparrot\networking\wifiConnection.py", line 314, in _handshake
self.drone_ip = ipaddress.IPv4Address(self.connection_info.address).exploded
AttributeError: 'ServiceInfo' object has no attribute 'address'

The code bringing up the issue is
image

I have looked up which attributes should replace self.connection_info.address and tried self.connection_info.addresses, self.connection_info.addresses_by_version(), self.connection_info.parsed_addresses()
and each of those bring different errors.

Any help to resolving this issue would be great, thanks.

@Ren3t
Copy link

Ren3t commented Jan 22, 2021

I have the same issue with Bebop 2...

@Brammerz45
Copy link
Author

For anyone else who gets this error, it is solved by reverting to an earlier version of zeroconf. This is done easily in pip via the command pip install zeroconf==0.20.0 Now I reverted to 0.20.0 and it worked instantly but I dont know what the most up to date version of zeroconf this will work with.

@roverico
Copy link

Hello,
In my case we have solved this issue using this sentence against the Sphinx simulator (within a WMWare VirtualBox using WiFi dongle compatible Tp.link)
self.bebop = Bebop(drone_type="Bebop2", ip_address="10.202.0.1")
and
self.bebop = Bebop(drone_type="Bebop2", ip_address="192.168.42.1") against the real bebop2 (using Administrator permissions and disconnecting any firewall/antivirus/spyware)

Cheers,
roverico

@jannacek
Copy link

jannacek commented Jun 8, 2021

I solved the issue by downgrading to zeroconf version 0.20.0, but now I get a new problem:

ConnectionRefusedError: [Errno 61] Connection refused
:(

any help please? :)

@muelly2
Copy link

muelly2 commented Oct 3, 2021

There was a change in zeroconf, where you have to change all instances of
self.connection_info.address
to
self.connection_info.addresses[0]
within wifiConnection.py

@theodom
Copy link

theodom commented Apr 7, 2022

There was a change in zeroconf, where you have to change all instances of
self.connection_info.address
to
self.connection_info.addresses[0]
within wifiConnection.py

I did this exact thing, I changed all the lines that contains self.connection_info.address but it still gives me basically the same error:
print (self.connection_info.addresses[0], self.connection_info.port) AttributeError: 'ServiceInfo' object has no attribute 'addresses'
I have zeroconf on version 0.20.0.

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

6 participants