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

Python exemple #12

Closed
Ad-Vitam opened this issue Sep 12, 2023 · 4 comments
Closed

Python exemple #12

Ad-Vitam opened this issue Sep 12, 2023 · 4 comments

Comments

@Ad-Vitam
Copy link

Hello,

I am trying to use the python binding from the README doc.
But the python exemple didn't work.

With the receiver exemple, the error is :

  File "/root/Flute/test.py", line 3, in <module>
    receiver_writer = receiver.FluteWriter("/root/Flute/dest")
                      ^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'receiver' has no attribute 'FluteWriter'

maybe :
receiver_writer = receiver.ObjectWriterBuilder("/root/Flute/dest")

With the sender exemple, the UDP sending code is missing.

If you have time, can you update ?
Thanks

ypo added a commit that referenced this issue Sep 12, 2023
@ypo
Copy link
Owner

ypo commented Sep 12, 2023

Please let me know if it works for you.

The python bindings are still behind the RUST API and not well tested

@Ad-Vitam
Copy link
Author

Thanks for your help,
that's a bit better but now :

Traceback (most recent call last):
  File "/root/Flute/receiver.py", line 15, in <module>
    pkt = receive_from_udp_socket()
          ^^^^^^^^^^^^^^^^^^^^^^^
NameError: name 'receive_from_udp_socket' is not defined

@ypo
Copy link
Owner

ypo commented Sep 13, 2023

UDP/IP reception is actually not implemented by this FLUTE library. It's up to the application to implement the transport layer.

So the application needs to implement its own method to receive packets. receive_from_udp_socket() is only an example.

I can update the documentation to make that clear.

ypo added a commit that referenced this issue Sep 18, 2023
@Ad-Vitam
Copy link
Author

Thanks for your comment, its more clear for me

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