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.49k stars 384 forks source link

TypeError: '<' not supported between instances of 'NoneType' and 'int' #46

Closed EthanHarwood closed 1 year ago

EthanHarwood commented 1 year ago

Can anyone help ? Having the following issue.

Traceback: File "E:\Users\ethan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script exec(code, module.dict) File "E:\Users\ethan\Documents\AI\AutoGPT\Free-AUTO-GPT-with-NO-API\Camel.py", line 190, in user_msg = assistant_agent.step(user_msg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Users\ethan\Documents\AI\AutoGPT\Free-AUTO-GPT-with-NO-API\Camel.py", line 62, in step output_message = self.model(str(input_message.content)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Users\ethan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\langchain\llms\base.py", line 281, in call self.generate([prompt], stop=stop, callbacks=callbacks) File "E:\Users\ethan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\langchain\llms\base.py", line 176, in generate raise e File "E:\Users\ethan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\langchain\llms\base.py", line 170, in generate self._generate(prompts, stop=stop, run_manager=run_manager) File "E:\Users\ethan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\langchain\llms\base.py", line 379, in _generate else self._call(prompt, stop=stop) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Users\ethan\Documents\AI\AutoGPT\Free-AUTO-GPT-with-NO-API\FreeLLM\ChatGPTAPI.py", line 38, in _call self.chatbot = Chatbot(self.token) ^^^^^^^^^^^^^^^^^^^ File "E:\Users\ethan\Documents\AI\AutoGPT\Free-AUTO-GPT-with-NO-API\FreeLLM\pyChatGPT.py", line 126, in init self.init_browser() File "E:\Users\ethan\Documents\AI\AutoGPT\Free-AUTO-GPT-with-NO-API\FreeLLM\pyChatGPT.py", line 193, in __init_browser raise e File "E:\Users\ethan\Documents\AI\AutoGPT\Free-AUTO-GPT-with-NO-API\FreeLLM\pyChatGPT.py", line 189, in init_browser self.driver = uc.Chrome(options=options) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Users\ethan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\undetected_chromedriver__init.py", line 374, in init__ if self.patcher.version_main < 108: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

IntelligenzaArtificiale commented 1 year ago

We have now updated the code. Please try to re-download pyChatGPT which we modified.

We noticed that undetected-chromedriver has a small bug which seems to be fixed by changing this line:

self.driver = uc.Chrome(options=options)

with this :

self.driver = uc.Chrome(options=options, version_main=112)

IntelligenzaArtificiale commented 1 year ago

PLS follow this

if for u dont work open another ISSUE 💯