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

[Error when using example code ] argument for 's' must be a bytes object #3

Open
Mark4551124015 opened this issue May 5, 2023 · 2 comments
Labels
good first issue Good for newcomers

Comments

@Mark4551124015
Copy link

when doing 'pak.serialize()' in dhcp.py _send_packet()
argument for 's' must be a bytes object

@EricLee543
Copy link
Member

The message in this exception says that you did not make your packet in bytes format. Probably, you used string instead of bytes when you wrote the information when building the packet

@Mark4551124015
Copy link
Author

fixed,options in dhcp need to be encode in bytes

@EricLee543 EricLee543 added the good first issue Good for newcomers label May 8, 2023
@EricLee543 EricLee543 reopened this May 8, 2023
@EricLee543 EricLee543 changed the title [Error when using example code ] [Error when using example code ] argument for 's' must be a bytes object May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants