You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does not work with python 3.11. Fails with traceback:
Traceback (most recent call last):
File "/home/camargo/venv-pystun/bin/pystun", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/camargo/venv-pystun/lib/python3.11/site-packages/stun/cli.py", line 51, in main
nat_type, external_ip, external_port = stun.get_ip_info(
^^^^^^^^^^^^^^^^^
File "/home/camargo/venv-pystun/lib/python3.11/site-packages/stun/__init__.py", line 252, in get_ip_info
nat_type, nat = get_nat_type(s, source_ip, source_port,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/camargo/venv-pystun/lib/python3.11/site-packages/stun/__init__.py", line 186, in get_nat_type
_initialize()
File "/home/camargo/venv-pystun/lib/python3.11/site-packages/stun/__init__.py", line 93, in _initialize
dictValToAttr.update({items[i][1]: items[i][0]})
~~~~~^^^
TypeError: 'dict_items' object is not subscriptable
The text was updated successfully, but these errors were encountered:
>>> import stun
>>> stun.get_ip_info(stun_host='stun.ekiga.net')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/misan/.local/lib/python3.10/site-packages/stun/__init__.py", line 252, in get_ip_info
nat_type, nat = get_nat_type(s, source_ip, source_port,
File "/home/misan/.local/lib/python3.10/site-packages/stun/__init__.py", line 186, in get_nat_type
_initialize()
File "/home/misan/.local/lib/python3.10/site-packages/stun/__init__.py", line 93, in _initialize
dictValToAttr.update({items[i][1]: items[i][0]})
TypeError: 'dict_items' object is not subscriptable
Does not work with python 3.11. Fails with traceback:
The text was updated successfully, but these errors were encountered: