IntelligenzaArtificiale / Free-Auto-GPT

Free Auto GPT with NO paids API is a repository that offers a simple version of Auto GPT, an autonomous AI agent capable of performing tasks independently. Unlike other versions, our implementation does not rely on any paid OpenAI API, making it accessible to anyone.
MIT License
2.47k stars 383 forks source link

OSError: [WinError 6] The handle is invalid (undetected_chromedriver) #80

Closed ckseong closed 1 year ago

ckseong commented 1 year ago

Enter the objective of the AI system: (Be realistic!) help me to build an apps that similar to Connecteam, optimize it for construction sector, also including function in vimigo apps Traceback (most recent call last): File "d:\GitHub\Free-AUTO-GPT-with-NO-API\AUTOGPT.py", line 237, in agent.run([input("Enter the objective of the AI system: (Be realistic!) ")]) File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\experimental\autonomous_agents\autogpt\agent.py", line 91, in run assistant_reply = self.chain.run( ^^^^^^^^^^^^^^^ File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\chains\base.py", line 239, in run return self(kwargs, callbacks=callbacks)[self.output_keys[0]] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\chains\base.py", line 140, in call raise e File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\chains\base.py", line 134, in call self._call(inputs, run_manager=run_manager) File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\chains\llm.py", line 69, in _call response = self.generate([inputs], run_manager=run_manager) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\chains\llm.py", line 79, in generate return self.llm.generate_prompt( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\llms\base.py", line 127, in generate_prompt
return self.generate(prompt_strings, stop=stop, callbacks=callbacks) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\llms\base.py", line 176, in generate raise e File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\llms\base.py", line 170, in generate self._generate(prompts, stop=stop, run_manager=run_manager) File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\llms\base.py", line 379, in _generate else self._call(prompt, stop=stop) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\GitHub\Free-AUTO-GPT-with-NO-API\FreeLLM\ChatGPTAPI.py", line 39, in _call self.chatbot = Chatbot(self.token) ^^^^^^^^^^^^^^^^^^^ File "d:\GitHub\Free-AUTO-GPT-with-NO-API\FreeLLM\pyChatGPT.py", line 126, in init self.init_browser() File "d:\GitHub\Free-AUTO-GPT-with-NO-API\FreeLLM\pyChatGPT.py", line 228, in __init_browser self.ensure_cf() File "d:\GitHub\Free-AUTO-GPT-with-NO-API\FreeLLM\pyChatGPT.py", line 273, in ensure_cf raise ValueError('Invalid session token') ValueError: Invalid session token Exception ignored in: <function ChatGPT.del at 0x0000020EC19AA160> Traceback (most recent call last): File "d:\GitHub\Free-AUTO-GPT-with-NO-API\FreeLLM\pyChatGPT.py", line 136, in del self.driver.quit() File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\undetected_chromedriver\init__.py", line 743, in quit
time.sleep(0.1) OSError: [WinError 6] The handle is invalid

Hi, is anyone facing this issue?

ckseong commented 1 year ago

commenting the time.sleep(0.1) helps, not sure will affect other functions or not..

IntelligenzaArtificiale commented 1 year ago

have you installed chrome version 112 ?

FlamingFury00 commented 1 year ago

Are you using the docker container? Undected_driver has a lot of problems in Windows

ckseong commented 1 year ago

didnt use docker.. ok i use docker, thanks for the update!

Aashutoshvyas2020 commented 1 year ago

so you need docker?