Open astraiosmem opened 7 months ago
after adding the following code to the "/home/astraios/.cache/pypoetry/virtualenvs/agpt-47GbBSF9-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py " file, the problem is solved:
import sys
sys.path.append("/home/astraios/miniconda3/lib/python3.11/site-packages")
the address can be located by pip show socksio
I simply changed https_proxy to socks5, and it also solves the problem. Thanks for looking into _config.py
file for us.
$env:https_proxy = "socks5://127.0.0.1:10808"
instead of
$env:https_proxy = "socks://127.0.0.1:10808"
This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.
修改创建所创建的虚拟环境的python中的httpx包的内容。按照题主的路径是:home/astraios/.cache/pypoetry/virtualenvs/agpt-47GbBSF9-py3.11/lib/python3.11/site-packages/httpx/_config.py。查找到Proxy类下的url = URL(url)行。在此行前添加url = "socks5://127.0.0.1:10808"(10808为题主端口号)保存即可。
We would be interested in having someone help out with adding this
This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.
$env:https_proxy = "socks5://127.0.0.1:10808"
where to add this code?
after adding the following code to the "/home/astraios/.cache/pypoetry/virtualenvs/agpt-47GbBSF9-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py " file, the problem is solved:
import sys sys.path.append("/home/astraios/miniconda3/lib/python3.11/site-packages")
the address can be located by
pip show socksio
i meet the same questions could you send all changes points to sovles this problem. thanks
⚠️ Search for existing issues first ⚠️
Which Operating System are you using?
Linux
Which version of AutoGPT are you using?
Latest Release
Do you use OpenAI GPT-3 or GPT-4?
GPT-3.5
Which area covers your issue best?
Installation and setup
Describe your issue.
Excuse me, does anyone know how to solve this?
OS:Debian 13
description
I have an Xray proxy configured with a SOCKS port of 10808, since I'm located in mainland China, and I must use a proxy to bypass the Great Firewall (GFW), so turning off proxy will not work for me, I noticed that the url.scheme value passed by the system is 'socks', while the detection code expects 'socks5'. the code related is as follows (in /home/astraios/.cache/pypoetry/virtualenvs/agpt-47GbBSF9-py3.11/lib/python3.11/site-packages/httpx/_config.py):
This results in a ValueError: Unknown scheme for proxy URL URL('socks://127.0.0.1:10808/')
the complete info:
after comment the two line and rerun
./autogpt.sh run --gpt3only
, the error changed:error:
the related code in "/home/astraios/.cache/pypoetry/virtualenvs/agpt-47GbBSF9-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py":
and I tried change it to:
and then the error:
I execute the command successfully:
but the error still exist, and I also tried
pip install socksio
Any help will be greatly appreciated
Upload Activity Log Content
No response
Upload Error Log Content
No response