-
Notifications
You must be signed in to change notification settings - Fork 155
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
dict_item indexing issue in Python 3.5 #21
Comments
Same issue here, using Python 3.6 |
Same issue under 3.7 |
same issue here |
Python 3.7.2
|
Same issue in Python 3.7.3
|
I have forked the project, and apply a fix. Have not tested that yet |
nevelis
pushed a commit
to nevelis/pystun
that referenced
this issue
Oct 4, 2019
python 3.8, same |
bruh, this lib is dead |
I think pystun3 still works, also why does github keep sending me notifications regarding this issue I don't think I ever interacted in this thread |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
I am encountering below mentioned exception only while running Pystun on Python 3.5. The issue can be resolved if you cast the output of line 91,95 in init.py as a list. Please let me know once the fix is part of the main release stream.
nat_type, external_ip, external_port = stun.get_ip_info(stun_host=(stun_details[0]), stun_port=int(stun_details[1]))
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\stun_init_.py", line 253, in get_ip_info
stun_host=stun_host, stun_port=stun_port)
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\stun_init_.py", line 186, in get_nat_type
initialize()
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\stun_init.py", line 93, in _initialize
dictValToAttr.update({items[i][1]: items[i][0]})
TypeError: 'dict_items' object does not support indexing
[20170407 16:03:15.022] WARNING:Could not find pyasn1 and pyasn1_modules. SSL certificate COULD NOT BE VERIFIED.
stun_host=stun_host, stun_port=stun_port)
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\stun_init_.py", line 186, in get_nat_type
initialize()
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\stun_init.py", line 96, in _initialize
dictValToMsgType.update({items[i][1]: items[i][0]})
TypeError: 'dict_items' object does not support indexing
The text was updated successfully, but these errors were encountered: