Comments (9)
I have forked the project, and apply a fix. Have not tested that yet
https://github.com/a7md0/pystun
from pystun.
Same issue in Python 3.7.3
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
stun.get_ip_info()
File "C:\Tools\Python37\lib\site-packages\stun\__init__.py", line 253, in get_ip_info
stun_host=stun_host, stun_port=stun_port)
File "C:\Tools\Python37\lib\site-packages\stun\__init__.py", line 186, in get_nat_type
_initialize()
File "C:\Tools\Python37\lib\site-packages\stun\__init__.py", line 93, in _initialize
dictValToAttr.update({items[i][1]: items[i][0]})
TypeError: 'dict_items' object is not subscriptable
from pystun.
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
from pystun.
Same issue here, using Python 3.6
from pystun.
Same issue under 3.7
from pystun.
same issue here
from pystun.
Python 3.7.2
$ pystun
Traceback (most recent call last):
File "/usr/bin/pystun", line 11, in <module>
load_entry_point('pystun==0.1.0', 'console_scripts', 'pystun')()
File "/usr/lib/python3.7/site-packages/stun/cli.py", line 55, in main
stun_port=options.stun_port
File "/usr/lib/python3.7/site-packages/stun/__init__.py", line 253, in get_ip_info
stun_host=stun_host, stun_port=stun_port)
File "/usr/lib/python3.7/site-packages/stun/__init__.py", line 186, in get_nat_type
_initialize()
File "/usr/lib/python3.7/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
from pystun.
python 3.8, same
from pystun.
bruh, this lib is dead
from pystun.
Related Issues (20)
- Is pystun still being maintained? HOT 5
- [Bug] The wrong way to determine the port restricted NAT or restricted NAT HOT 1
- [Bug] Never returns OpenInternet if explicit bind address not specified
- Stun Packet Magic Cookie Must Be `0x2112A442` HOT 1
- Installation on IronPython error
- KeyError: b'0101' issue in Python 3.5 HOT 2
- KeyError: '0100'
- NAT type detect run "Do Test3" had a BUG HOT 1
- how set passwd and username
- i think the stun server is all down, so this tool can't work well now.
- Question about STUN server HOT 1
- KeyError: u'0800'
- why not test mapping rules?
- TypeError: 'dict_items' object is not subscriptable HOT 2
- Fixed multiple bugs with pystun and added async support
- Broken on Python 3.11 HOT 2
- UnboundLocalError
- Logic error in handling error response HOT 2
- always getting 54320 as external port HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pystun.