-
Notifications
You must be signed in to change notification settings - Fork 474
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
TypeError: ord() expected string of length 1, but int found Error in Pox Controller #251
Comments
I think you can probably just remove the This looks like it had been missed until now in the Python 3 (#192) transition. If removing the |
After removing ord() |
I don't have a lot of time to work on this right now. The basic issue is a Python2/Python3 conversion problem that didn't get caught yet. Here are some options:
|
I added b in join and it worked . |
Implemented the Jaisaiarun fix from issue noxrepo#251 (noxrepo#251).
I'd forgotten about this issue, but have made a bunch of fixes to DNS (including the problem above) in this branch of my fork: https://github.com/MurphyMc/pox/tree/gar-wip3 ... that stuff should probably eventually all get upstreamed. |
Hi dears |
Hey, firendly reminder to put this fix on main. |
The problem still persists |
Can you share withus the code of DHCP after removing ord and DNS code |
I had to both add that "b" in read_dns_name_from_index and remove the ord's in _read_dns_name_from_index to get rid of the problem |
I don't have enough experience to edit, I tried and the error still appears Can you send the code files after modification to make DHCP work? |
I don't know about the DHCP problem, but it fixed the DNS problem for me, maybe you can do what I did to dns.py in dhcp.py, just replace pox/pox/lib/packet/dns.py with the dns.py in this zip |
Thanks for the help, I appreciate it But the problem persists, I think from the DHCP file TypeError: ord() expected string of length 1, but int found |
Try editing that file, line 248, and just remove that ord call, so it says opt = barr[ofs], do the same with other "ord"s you see in that same function |
Just a note that you are using an old version of POX. I suspect this problem is fixed in the halosaur branch. |
The Selecting a Branch / Version section of the manual hasn't been updated for a while, but describes the POX versioning scheme and the procedure to select them. |
|
File a new issue and include relevant information (such as the command line / configuration you are using). |
|
@Jaisaiarun Thanks for sharing the tip. |
@aperezleiras I try to apply your tip of removing These lines should be like: My git branch: "gar-experimental" |
Why not just upgrade to the halosaur branch, where this was fixed almost two years ago? |
@MurphyMc Thanks for your suggestion. I will switch the branch to "halosaur" and check the message during runtime. |
Up to this point, everything works fine until I ran this from the mininet prompt: h1 dhclient h1-eth0
The mininet prompt hangs for minutes and the following appears on the pox prompt:
The text was updated successfully, but these errors were encountered: