Closed cuiyijiee closed 5 years ago
hi , when i run wsstat --demo on my mac with python3.7 , it just show this:
wsstat --demo
ivydeMac-mini-2:~ ivy$ wsstat --demo Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/bin/wsstat", line 11, in <module> load_entry_point('wsstat==1.3.0', 'console_scripts', 'wsstat')() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 487, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2728, in load_entry_point return ep.load() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2346, in load return self.resolve() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2352, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wsstat/main.py", line 5, in <module> from wsstat.clients import WebsocketTestingClient File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wsstat/clients.py", line 24 asyncio.ensure_future = asyncio.async ^ SyntaxError: invalid syntax
this is my pip3 installed modules
ivydeMac-mini-2:~ ivy$ pip3 list Package Version -------------- ------- asyncio 3.4.3 atomicwrites 1.2.1 attrs 18.2.0 more-itertools 5.0.0 pip 18.1 pluggy 0.8.0 py 1.7.0 pytest 4.0.2 setuptools 40.6.2 six 1.12.0 urwid 2.0.1 websockets 7.0 wsstat 1.3.0
i am not good at python ,but i want to use this great repository ,plz help me , thank you !
hi , when i run
wsstat --demo
on my mac with python3.7 , it just show this:this is my pip3 installed modules
i am not good at python ,but i want to use this great repository ,plz help me , thank you !