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

TypeError: __init__() got an unexpected keyword argument 'audio' #465

Closed
yswami opened this issue Dec 13, 2024 · 3 comments
Closed

TypeError: __init__() got an unexpected keyword argument 'audio' #465

yswami opened this issue Dec 13, 2024 · 3 comments

Comments

@yswami
Copy link

yswami commented Dec 13, 2024

`Traceback (most recent call last):
File "/Users/user/miniconda3/envs/ChatDev_conda_env/lib/python3.9/site-packages/tenacity/init.py", line 382, in call
result = fn(*args, **kwargs)
File "/Users/user/Desktop/Trials/ChatDev/camel/utils.py", line 160, in wrapper
return func(self, *args, **kwargs)
File "/Users/user/Desktop/Trials/ChatDev/camel/agents/chat_agent.py", line 243, in step
output_messages = [
File "/Users/user/Desktop/Trials/ChatDev/camel/agents/chat_agent.py", line 244, in
ChatMessage(role_name=self.role_name, role_type=self.role_type,
TypeError: init() got an unexpected keyword argument 'audio'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/Users/user/Desktop/Trials/ChatDev/run.py", line 136, in
chat_chain.execute_chain()
File "/Users/user/Desktop/Trials/ChatDev/chatdev/chat_chain.py", line 168, in execute_chain
self.execute_step(phase_item)
File "/Users/user/Desktop/Trials/ChatDev/chatdev/chat_chain.py", line 138, in execute_step
self.chat_env = self.phases[phase].execute(self.chat_env,
File "/Users/user/Desktop/Trials/ChatDev/chatdev/phase.py", line 295, in execute
self.chatting(chat_env=chat_env,
File "/Users/user/Desktop/Trials/ChatDev/chatdev/utils.py", line 79, in wrapper
return func(*args, **kwargs)
File "/Users/user/Desktop/Trials/ChatDev/chatdev/phase.py", line 133, in chatting
assistant_response, user_response = role_play_session.step(input_user_msg, chat_turn_limit == 1)
File "/Users/user/Desktop/Trials/ChatDev/camel/agents/role_playing.py", line 247, in step
assistant_response = self.assistant_agent.step(user_msg_rst)
File "/Users/user/miniconda3/envs/ChatDev_conda_env/lib/python3.9/site-packages/tenacity/init.py", line 289, in wrapped_f
return self(f, *args, **kw)
File "/Users/user/miniconda3/envs/ChatDev_conda_env/lib/python3.9/site-packages/tenacity/init.py", line 379, in call
do = self.iter(retry_state=retry_state)
File "/Users/user/miniconda3/envs/ChatDev_conda_env/lib/python3.9/site-packages/tenacity/init.py", line 326, in iter
raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x112641fa0 state=finished raised TypeError>]`

@AhsanRiyad
Copy link

I am also getting same error.

@Noelle1831-k
Copy link

Same error too.

@thinkwee
Copy link
Collaborator

We have fixed it. Please pull the latest version, see #466

@yswami yswami closed this as completed Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants