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

auto-coder --file 时,遇到 RuntimeError: Failed to unpickle serialized exception,怎么办? #31

Open
45592858 opened this issue Aug 19, 2024 · 5 comments

Comments

@45592858
Copy link

2024-08-19 16:59:19.187 | INFO | autocoder.index.index:get_target_files_by_query:401 - Find the related files by query according to the files...
2024-08-19 16:59:20,779 ERROR serialization.py:425 -- Failed to unpickle serialized exception
Traceback (most recent call last):
File "/root/miniconda3/envs/auto-coder/lib/python3.10/site-packages/ray/exceptions.py", line 50, in from_ray_exception
return pickle.loads(ray_exception.serialized_exception)
TypeError: APIStatusError.init() missing 2 required keyword-only arguments: 'response' and 'body'

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

Traceback (most recent call last):
File "/root/miniconda3/envs/auto-coder/lib/python3.10/site-packages/ray/_private/serialization.py", line 423, in deserialize_objects
obj = self._deserialize_object(data, metadata, object_ref)
File "/root/miniconda3/envs/auto-coder/lib/python3.10/site-packages/ray/_private/serialization.py", line 305, in _deserialize_object
return RayError.from_bytes(obj)
File "/root/miniconda3/envs/auto-coder/lib/python3.10/site-packages/ray/exceptions.py", line 44, in from_bytes
return RayError.from_ray_exception(ray_exception)
File "/root/miniconda3/envs/auto-coder/lib/python3.10/site-packages/ray/exceptions.py", line 53, in from_ray_exception
raise RuntimeError(msg) from e
RuntimeError: Failed to unpickle serialized exception
Traceback (most recent call last):
File "/root/miniconda3/envs/auto-coder/bin/auto-coder", line 8, in
sys.exit(main())
File "/root/miniconda3/envs/auto-coder/lib/python3.10/site-packages/autocoder/auto_coder.py", line 774, in main
File "/root/miniconda3/envs/auto-coder/lib/python3.10/site-packages/ray/exceptions.py", line 50, in from_ray_exception
return pickle.loads(ray_exception.serialized_exception)
TypeError: APIStatusError.init() missing 2 required keyword-only arguments: 'response' and 'body'

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

Traceback (most recent call last):
File "/root/miniconda3/envs/auto-coder/lib/python3.10/site-packages/ray/_private/serialization.py", line 423, in deserialize_objects
obj = self._deserialize_object(data, metadata, object_ref)
File "/root/miniconda3/envs/auto-coder/lib/python3.10/site-packages/ray/_private/serialization.py", line 305, in _deserialize_object
return RayError.from_bytes(obj)
File "/root/miniconda3/envs/auto-coder/lib/python3.10/site-packages/ray/exceptions.py", line 44, in from_bytes
return RayError.from_ray_exception(ray_exception)
File "/root/miniconda3/envs/auto-coder/lib/python3.10/site-packages/ray/exceptions.py", line 53, in from_ray_exception
raise RuntimeError(msg) from e
RuntimeError: Failed to unpickle serialized exception

@Ubivision
Copy link

我也遇到了同样的问题,在使用暴力RAG提问时报错,不知道是ray版本的问题还是啥问题

@45592858
Copy link
Author

求作者回复,让大家都能用起来 。。。@allwefantasy

@levicode
Copy link

levicode commented Sep 13, 2024

同样的报错+1 @allwefantasy

@Sean10
Copy link

Sean10 commented Oct 6, 2024

根据​​‌​‬‬​‬​‌​​​​​​​‌‍​‌‍‌‌‍​​​​⁠​‬⁠​​​‌‬‬使用auto_coder遇到的问题及解决方案汇总 - 飞书云文档 这里的指导

可以去ray的dashboard查看, localhost:8265 看actor下面的log

我的环境这个报错最后是知识库token超了
openai.BadRequestError: Error code: 400 - {'code': 20015, 'message': 'length of prompt_tokens (434052) must be less than max_seq_len (32768).', 'data': None}

@zqc1661586344
Copy link

解决了没

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

5 participants