Running Error by TypeError: float() argument must be a string or a real number, not 'NoneType'
TianQingX opened this issue · 13 comments
It seems that indexing didn't go well.
Could you please try to delete /index folder, restart the app and attach logs here?
No, in the project root, there is a folder ./index, where the system stores indexed files after parsing and embedding, by default its empty and it’s content can be safely deleted
Let's check Scrapy.
Could you please show whats inside the quant_scraper
?
All documents are here and downloaded successfully.
Maybe it doesn't have enough permissions to create a folder index
.
Try to create that folder in the root of quantgpt and re-run the app with: chainlit run quantgpt.py
Did you run pip install -r requirements.txt
after cloning?
Also, I see, you're running python=3.9.
I developed it under python=3.10 and 3.11, but didn't test it with 3.9
Anyway, I strongly recommend creating an isolated virtual env for quantgpt with conda:
conda create --name quantgpt python=3.10
and rerun the setup process.
The error has been changed.
Now it can't find the .env file or at least it can't find the GPT_TEMPERATURE value in the .env file.
Please check that you have the correct .env file, the same to this one:
https://github.com/rnikitin/QuantGPT/blob/main/env.example
but put the correct values into the file.
Hey, Happy New Year and how it's going?
Your error response saying, that you probably don't have .env file which you should create manually by copying/renaming env.example
file into .env
and set values properly.
Btw you can try a latest version from main
branch, it's a bit easier to run, since chainlit cloud is not mandatory anymore.