Closed scooter7 closed 1 year ago
Thanks for opening an issue. we will do our best to help you. You can share screenshots of the error. So we can figure out which line leads to the error.
TypeError: '<' not supported between instances of 'NoneType' and 'int'
Traceback:
File "C:\Users\jvineburgh\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "C:\Users\jvineburgh\Downloads\Free-AUTO-GPT-with-NO-API-main\Free-AUTO-GPT-with-NO-API-main\Camel.py", line 190, in
try to install python 3.11 from Microsoft Store . After update Chrome to version 112. Go to settings ( chrome://setting/help ) if your version is < 112 u need tu upadate chrome.
Then open the terminal and type:
pip3.11 uninstall -r requirements.txt
pip3.11 install -r requirements.txt
streamlit run Camel.PY
You need to be sure it runs with python3.11 Chrome version is up-to-date and listed as Version 112.0.5615.138
Python version is Python 3.11.3
Thanks!
If it works now close the issue , thanks ❤
No, those versions of Python and Chrome were in place before I tested the app and received those errors.
try to replace this module version in your requiriments.txt :
aiohttp==3.8.4
aiosignal==1.3.1
altair==4.2.2
anyio==3.6.2
async-generator==1.10
async-timeout==4.0.2
async-tio==1.3.2
attrs==23.1.0
beautifulsoup4==4.12.2
blinker==1.6.2
cachetools==5.3.0
certifi==2022.12.7
cffi==1.15.1
charset-normalizer==3.1.0
click==8.1.3
colorama==0.4.6
dataclasses-json==0.5.7
decorator==5.1.1
diskcache==5.6.1
duckduckgo-search==2.9.1
entrypoints==0.4
exceptiongroup==1.1.1
faiss-cpu==1.7.4
filelock==3.12.0
frozenlist==1.3.3
fsspec==2023.4.0
gitdb==4.0.10
GitPython==3.1.31
greenlet==2.0.1
h11==0.14.0
httpcore==0.17.0
httpx==0.24.0
hugchat==0.0.5.1
huggingface-hub==0.14.1
idna==3.4
importlib-metadata==6.6.0
iniconfig==2.0.0
Jinja2==3.1.2
jsonschema==4.17.3
langchain==0.0.154
markdown-it-py==2.2.0
markdownify==0.11.6
MarkupSafe==2.1.2
marshmallow==3.19.0
marshmallow-enum==1.5.1
mdurl==0.1.2
mpmath==1.3.0
multidict==6.0.4
mypy-extensions==1.0.0
nest-asyncio==1.5.6
networkx==3.1
numexpr==2.8.4
numpy==1.24.3
openai==0.27.5
OpenAIAuth==0.3.6
openapi-schema-pydantic==1.2.4
outcome==1.2.0
packaging==23.1
pandas==2.0.1
Pillow==9.5.0
playwright==1.32.1
pluggy==1.0.0
prompt-toolkit==3.0.38
protobuf==3.20.3
py==1.11.0
pyarrow==11.0.0
pycparser==2.21
pydantic==1.10.7
pydeck==0.8.1b0
pyee==9.0.4
Pygments==2.15.1
Pympler==1.0.1
pyrsistent==0.19.3
PySocks==1.7.1
pytest==7.3.1
pytest-base-url==2.0.0
pytest-playwright==0.3.3
python-dateutil==2.8.2
python-slugify==8.0.1
pytz==2023.3
pytz-deprecation-shim==0.1.0.post0
PyYAML==6.0
regex==2023.3.23
requests==2.29.0
retry==0.9.2
revChatGPT==5.0.0
rich==13.3.5
selenium==4.9.0
six==1.16.0
smmap==5.0.0
sniffio==1.3.0
socksio==1.0.0
sortedcontainers==2.4.0
soupsieve==2.4.1
SQLAlchemy==2.0.12
streamlit==1.22.0
streamlit-chat-media==0.0.4
sympy==1.11.1
tabulate==0.9.0
tenacity==8.2.2
text-unidecode==1.3
tiktoken==0.3.3
tokenizers==0.13.3
toml==0.10.2
toolz==0.12.0
torch==2.0.0
tornado==6.3.1
tqdm==4.65.0
transformers==4.28.1
trio==0.22.0
trio-websocket==0.10.2
typing-inspect==0.8.0
typing_extensions==4.5.0
tzdata==2023.3
tzlocal==4.3
undetected-chromedriver==3.4.6
urllib3==1.26.15
validators==0.20.0
watchdog==3.0.0
wcwidth==0.2.6
websockets==11.0.2
wikipedia==1.4.0
wsproto==1.2.0
yarl==1.9.2
zipp==3.15.0
or check if u have another version of undetected-chromedriver . This is our pip3.11 freez
on Windows11 .
After doing that, I receive:
TypeError: '<' not supported between instances of 'NoneType' and 'int'
Traceback:
File "C:\Users\jvineburgh\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "C:\Users\jvineburgh\Downloads\Free-AUTO-GPT-with-NO-API-main\Free-AUTO-GPT-with-NO-API-main\Camel.py", line 190, in
We apologize for the many tests I'm having you do. But you are helping us a lot to understand the fragility of our project.
Can u try to digit on your cmd pip3.11 install -U pyChatGPT
and rerun streamlit run Camel.py
I did a pip freeze, revised the requirements.tx document per what my cmd prompt listed and now get the following error:
I tried what you asked in your las t reply and received:
TypeError: '<' not supported between instances of 'NoneType' and 'int'
Traceback:
File "C:\Users\jvineburgh\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "C:\Users\jvineburgh\Downloads\Free-AUTO-GPT-with-NO-API-main\Free-AUTO-GPT-with-NO-API-main\Camel.py", line 190, in
Ok most likely you are using libraries for your projects that conflict with our project.
One solution to this issue is to create a virtual environment specifically for our project. This will allow you to install the necessary dependencies without affecting your global Python installation or other projects.
To create a virtual environment, you can use the built-in venv module in Python. Here are the steps:
Open a command prompt or terminal window. Navigate to our project directory.
Run the command "python3.11 -m venv env" to create a new virtual environment called "env".
Activate the virtual environment by running the command "env\Scripts\activate" on Windows or "source env/bin/activate" on macOS/Linux.
Once the virtual environment is active, you can install the dependencies listed.
Frist run "pip3.11 install -U pyChatGPT" after install requirements.txt by running the command "pip3.11 install -r requirements.txt".
I have the same issue as him
TypeError: '<' not supported between instances of 'NoneType' and 'int'
Traceback:
File "c:\Users\ninan.PLSNO\Documents\Personal\Free-AUTO-GPT-with-NO-API.venv\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "C:\Users\ninan.PLSNO\Documents\Personal\Free-AUTO-GPT-with-NO-API\Camel.py", line 190, in
We have now updated the code. Please try to re-download pyChatGPT which we modified.
We noticed that undetected-chromedriver has a small https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/1200 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)
Hi, so do I need to change that line or did you already do it in the revised code?
Thanks so much for all of your help!
@scooter7 Thanks to you for helping us to discover the problems of our project.
We have already uploaded the update version. Tell us if now work
@scooter7 Thanks to you for helping us to discover the problems of our project.
We have already uploaded the update version. Tell us if now work
It works now after pull the repo to my local machine thank you for all your work
It is working perfectly now! Thanks so much and amazing job!
Big guys !! Thank you very much for the many tests you have done. We love you!
Hi, everything was working fine. But, I just started to receive the following errors:
IndexError: list index out of range
Traceback:
File "C:\Users\jvineburgh\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "C:\Users\jvineburgh\Downloads\Free-AUTO-GPT-with-NO-API-main\Free-AUTO-GPT-with-NO-API-main\Camel.py", line 98, in
@scooter7 Now we believe that this new error is due to the fact that openai.chat.com takes longer than expected to process the response. So the scraper doesn't wait long enough to read the finished output.
Try to modify this line FreeLLM/pyChatGPT.py#L438 .
Replace this :
WebDriverWait(self.driver, 120).until_not(
EC.presence_of_element_located(chatgpt_streaming)
)
with this :
WebDriverWait(self.driver, 240).until_not(
EC.presence_of_element_located(chatgpt_streaming)
)
Also for help us to debug your error change this line of FreeLLM/pyChatGPT.py . Change the value of verbose
to True on default.
Hi, the app started to work with the changes that you specified applied to the code. But, I then received:
ElementClickInterceptedException: Message: element click intercepted: Element ... is not clickable at point (130, 116). Other element would receive the click:
Here is a screenshot of what I was trying to accomplish:
I'm getting the following error when running camel.py on a Windows 11 PC.
I installed several requirements that were initially causing errors and now can get the streamlit app running.
But, after typing in my desired task, I get:
TypeError: '<' not supported between instances of 'NoneType' and 'int'