Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lishun001 opened this issue Aug 11, 2023 · 2 comments
Closed

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

lishun001 opened this issue Aug 11, 2023 · 2 comments
Labels
good first issue Good for newcomers

Comments

@lishun001
Copy link

**
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 rafa0128 added the good first issue Good for newcomers label Aug 11, 2023
@rafa0128
Copy link
Member

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

@lishun001
Copy link
Author

修改hosts已解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants