Terminal中执行python minium_test.py 执行,没有拿到环境信息:有对应的解决办法吗?
具体报错如下:
websocket run error
Traceback (most recent call last):
File "C:\programFiles\python\lib\site-packages\websocket\_app.py", line 407, in _callback
callback(self, *args)
TypeError: _on_open() takes 1 positional argument but 2 were given
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\programFiles\python\lib\site-packages\websocket\_app.py", line 322, in run_forever
self._callback(self.on_open)
File "C:\programFiles\python\lib\site-packages\websocket\_app.py", line 412, in _callback
self.on_error(self, e)
TypeError: _on_error() takes 2 positional arguments but 3 were given
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\programFiles\python\lib\site-packages\websocket\_app.py", line 407, in _callback
callback(self, *args)
TypeError: _on_error() takes 2 positional arguments but 3 were given
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\programFiles\python\lib\site-packages\minium-0.0.2-py3.7.egg\minium\wechatdriver\connection.py", line 70, in _ws_run_forever
self._client.run_forever()
File "C:\programFiles\python\lib\site-packages\websocket\_app.py", line 371, in run_forever
self._callback(self.on_error, e)
File "C:\programFiles\python\lib\site-packages\websocket\_app.py", line 412, in _callback
self.on_error(self, e)
TypeError: _on_error() takes 2 positional arguments but 3 were given
Traceback (most recent call last):
File "C:\programFiles\python\lib\site-packages\minium-0.0.2-py3.7.egg\minium\wechatdriver\minium.py", line 102, in launch_dev_tool
connection=Connection(self.uri)
File "C:\programFiles\python\lib\site-packages\minium-0.0.2-py3.7.egg\minium\wechatdriver\connection.py", line 37, in __init__
self._connect()
File "C:\programFiles\python\lib\site-packages\minium-0.0.2-py3.7.egg\minium\wechatdriver\connection.py", line 67, in _connect
raise Exception("connect to server timeout: %s, thread:%s"%(self.uri,self._thread.is_alive()))
Exception: connect to server timeout: ws://localhost:9420, thread:False
connect to server timeout: ws://localhost:9420, thread:False
Traceback (most recent call last):
File "C:\programFiles\python\lib\site-packages\minium-0.0.2-py3.7.egg\minium\wechatdriver\minium.py", line 102, in launch_dev_tool
connection=Connection(self.uri)
File "C:\programFiles\python\lib\site-packages\minium-0.0.2-py3.7.egg\minium\wechatdriver\connection.py", line 37, in __init__
self._connect()
File "C:\programFiles\python\lib\site-packages\minium-0.0.2-py3.7.egg\minium\wechatdriver\connection.py", line 67, in _connect
raise Exception("connect to server timeout: %s, thread:%s"%(self.uri,self._thread.is_alive()))
Exception: connect to server timeout: ws://localhost:9420, thread:False