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

is pyipv8 compatible with android? #1252

Closed
magowiz opened this issue Dec 25, 2023 · 2 comments
Closed

is pyipv8 compatible with android? #1252

magowiz opened this issue Dec 25, 2023 · 2 comments
Labels
question Programmer to programmer ad-hoc documentation

Comments

@magowiz
Copy link

magowiz commented Dec 25, 2023

Hi,
I'm trying to make run in a kivy aplication a small ipv8 example, just to try if ipv8 can run in such particular context, but I got a strange error on socket module:

ipv8/messaging/interfaces/lan_addresses/Unix/ioctl.py line 36
AttributeError: module 'socket' has no attribute 'if_nameindex'

I just wanted to know, if you know, if your library can work in android, I think also I'm going to ask this also to buildozer

@magowiz magowiz added the question Programmer to programmer ad-hoc documentation label Dec 25, 2023
@qstokkink
Copy link
Collaborator

Hi.

There is a Kotlin offshoot of IPv8, specifically for Android: https://github.com/Tribler/kotlin-ipv8 However, it only supports a subset of IPv8 functionality.

If you still want to fix your particular error, you have two options. The easiest (probably?) option is to install netifaces. The harder option would be to overwrite ipv8.messaging.interfaces.lan_addresses.interfaces.get_providers() in the Python code.

All of that said, I have no clue what other errors you may run into when this is fixed though.

@qstokkink
Copy link
Collaborator

I hope your question has been sufficiently addressed. I'll close this issue now, but feel free to reopen it if you have other questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Programmer to programmer ad-hoc documentation
Development

No branches or pull requests

2 participants