smart-test-ti / SoloX

💯SoloX - Real-time collection tool for Android/iOS performance data.(Android性能测试android performance\iOS性能测试ios performance\移动端性能测试mobile performance\APP性能测试app performance\app性能测试工具)
https://smart-test-ti.github.io/solox
MIT License
979 stars 173 forks source link

python3.11 -m solox 不能打开页面 #198

Closed lishun001 closed 1 year ago

lishun001 commented 1 year ago

Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/solox/main.py", line 17, in from solox.web import main File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/solox/web.py", line 112, in def main(host=ip(), port=50003): ^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/solox/web.py", line 69, in ip ip = socket.gethostbyname(socket.gethostname()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ socket.gaierror: [Errno 8] nodename nor servname provided, or not known

rafa0128 commented 1 year ago

解决方案: 1、用自定义的方式启动:python -m solox --host={ip} --port={port} 2、如果用python -m solox,可以按照这里处理:https://www.cnblogs.com/lutt/p/11908226.html

lishun001 commented 1 year ago

修改hosts已解决