Free-Auto-GPT
Free-Auto-GPT copied to clipboard
ValueError: File 'cookiesHuggingChat.json' not found!
⚠️INSTRUCTIONS:
- Enter ONE "x" inside the brackets [x] to choose the answer
- [x] Example
- [ ] Example2
Have you already searched for your ISSUE among the resolved ones?
- [x] Yes, new issue
- [ ] Yes, but the solution not work for me
- [ ] No
What version of Python do you have?
- [ ] Last, Python > 3.11
- [x] Python >= 3.8
- [ ] PIs you have Python<3.8 pease install last version of python
What version of operating system do you have?
- [x] Windows
- [ ] Linux/Ububtu
- [ ] Mac/OSX
What type of installation did you perform?
- [ ] pip3 install -r requirements.txt
- [ ] python3 -m pip install -r requirements.txt
- [ ] Anaconda
- [ ] Container on VS
- [x] Colab
Desktop (please complete the following information):
- Browser [e.g. chrome] : Chrome
- Version [e.g. 112] : 113
Describe the bug A clear and concise description of what the bug is. The error message says "ValueError: File 'cookiesHuggingChat.json' not found! Create it and put your cookies in there in the JSON format." even though I put the cookies in the right place.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
I was facing the same error, all you need to do is drag the 'cookiesHuggingChat.json' file out of the repository folder and into the root colab folder (which is /content ) and it should work.
I am facing the same error on VS
2023-05-24 15:18:17.902 Could not import azure.core python package.
2023-05-24 15:18:24.258 Uncaught app exception
Traceback (most recent call last):
File "I:\programmes\python\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "I:\GPT\PortableGit\Free-Auto-GPT-main\Camel.py", line 113, in
specified_task_msg = task_specify_agent.step(task_specifier_msg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "I:\GPT\PortableGit\Free-Auto-GPT-main\Camel.py", line 67, in step
output_message = self.model(str(input_message.content))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 297,
in call
self.generate([prompt], stop=stop, callbacks=callbacks)
File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 191,
in generate
raise e
File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 185,
in generate
self._generate(prompts, stop=stop, run_manager=run_manager)
File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 413,
in _generate
else self._call(prompt, stop=stop)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "I:\GPT\PortableGit\Free-Auto-GPT-main\FreeLLM\HuggingChatAPI.py", line 38, in _call
self.chatbot = hugchat.ChatBot(cookie_path=self.cookiepath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ChatBot.init() got an unexpected keyword argument 'cookie_path'
2023-05-24 15:24:07.750 Uncaught app exception
Traceback (most recent call last):
File "I:\programmes\python\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "I:\GPT\PortableGit\Free-Auto-GPT-main\Camel.py", line 113, in
specified_task_msg = task_specify_agent.step(task_specifier_msg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "I:\GPT\PortableGit\Free-Auto-GPT-main\Camel.py", line 67, in step
output_message = self.model(str(input_message.content))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 297,
in call
self.generate([prompt], stop=stop, callbacks=callbacks)
File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 191,
in generate
raise e
File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 185,
in generate
self._generate(prompts, stop=stop, run_manager=run_manager)
File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 413,
in _generate
else self._call(prompt, stop=stop)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "I:\GPT\PortableGit\Free-Auto-GPT-main\FreeLLM\HuggingChatAPI.py", line 38, in _call
self.chatbot = hugchat.ChatBot(cookie_path=self.cookiepath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ChatBot.init() got an unexpected keyword argument 'cookie_path'
2023-05-24 15:24:07.905 Uncaught app exception
Traceback (most recent call last):
File "I:\programmes\python\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "I:\GPT\PortableGit\Free-Auto-GPT-main\Camel.py", line 113, in
specified_task_msg = task_specify_agent.step(task_specifier_msg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "I:\GPT\PortableGit\Free-Auto-GPT-main\Camel.py", line 67, in step
output_message = self.model(str(input_message.content))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 297,
in call
self.generate([prompt], stop=stop, callbacks=callbacks)
File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 191,
in generate
raise e
File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 185,
in generate
self._generate(prompts, stop=stop, run_manager=run_manager)
File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 413,
in _generate
else self._call(prompt, stop=stop)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "I:\GPT\PortableGit\Free-Auto-GPT-main\FreeLLM\HuggingChatAPI.py", line 38, in _call
self.chatbot = hugchat.ChatBot(cookie_path=self.cookiepath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ChatBot.init() got an unexpected keyword argument 'cookie_path'
2023-05-24 15:24:08.053 Uncaught app exception
Traceback (most recent call last):
File "I:\programmes\python\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "I:\GPT\PortableGit\Free-Auto-GPT-main\Camel.py", line 113, in
specified_task_msg = task_specify_agent.step(task_specifier_msg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "I:\GPT\PortableGit\Free-Auto-GPT-main\Camel.py", line 67, in step
output_message = self.model(str(input_message.content))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 297,
in call
self.generate([prompt], stop=stop, callbacks=callbacks)
File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 191,
in generate
raise e
File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 185,
in generate
self._generate(prompts, stop=stop, run_manager=run_manager)
File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 413,
in _generate
else self._call(prompt, stop=stop)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "I:\GPT\PortableGit\Free-Auto-GPT-main\FreeLLM\HuggingChatAPI.py", line 38, in _call
self.chatbot = hugchat.ChatBot(cookie_path=self.cookiepath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ChatBot.init() got an unexpected keyword argument 'cookie_path'
I also faced the same issue you can for now just remove the cookie_path parameter itself or add that parameter in the hugchat.py
as you know in VS code you can ctrl + click on a function to open where its written so do that for line 36 of the file in on path:
I:\GPT\PortableGit\Free-Auto-GPT-main\FreeLLM\HuggingChatAPI.py
you will open the hugchat.py
there you can just add the cookie_path over there on line 18:
def __init__(
self,
cookies: dict = None,
cookie_path: str = ""
) -> None:
for me this worked.
we have fixed it in the new UPDATE , pls try now