TypeError: __init__() got an unexpected keyword argument 'proxies'
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.3k
- Forks
- 4.3k
- PR merge metrics
- No merged PRs in 30d
Description
When I try to run the code to create a simple pac man game I get this error.
python run.py --task "Build a simple pacman game" --name "PAC_MAN"
Traceback (most recent call last):
File "/Users/Evari/Documents/Tinkering/ChatDev/run.py", line 24, in <module>
from chatdev.chat_chain import ChatChain
File "/Users/Evari/Documents/Tinkering/ChatDev/chatdev/chat_chain.py", line 14, in <module>
from camel.web_spider import modal_trans
File "/Users/Evari/Documents/Tinkering/ChatDev/camel/web_spider.py", line 18, in <module>
client = openai.OpenAI(
File "/Users/Evari/miniforge3/envs/ChatDev_conda_env/lib/python3.9/site-packages/openai/_client.py", line 123, in __init__
super().__init__(
File "/Users/Evari/miniforge3/envs/ChatDev_conda_env/lib/python3.9/site-packages/openai/_base_client.py", line 847, in __init__
self._client = http_client or SyncHttpxClientWrapper(
File "/Users/Evari/miniforge3/envs/ChatDev_conda_env/lib/python3.9/site-packages/openai/_base_client.py", line 745, in __init__
super().__init__(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'proxies'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the command from the report, then inspect the OpenAI client initialization at line 18 of camel/web_spider.py and the installed package versions shown in the traceback. Trace the incompatibility causing the unexpected proxies argument; done means the reported command gets past this import and client initialization without the TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100