rnikitin / QuantGPT

powerful ai-copilot for quant traders and researchers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running Error by TypeError: float() argument must be a string or a real number, not 'NoneType'

TianQingX opened this issue · comments

image
It is installed and setting well, but running method seems has some problems.

It seems that indexing didn't go well.
Could you please try to delete /index folder, restart the app and attach logs here?

image
which file is /index folder? Do you mean indexing.md ?

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

image
image

It is wired that there is no folder called " ./index " or "index" from the root project folder I showering, I git clone from develop and main.
Should I create a new one for QuantGPT or maybe the problem is Scrapy doesn't work out?

Let's check Scrapy.
Could you please show whats inside the quant_scraper?

image
image
image
image
image

it has a folder call docs, and vbt folder which save all the md file

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

image
Maybe the requirements should update as your environment, after running chainlit run quantgpt.py, I pip install langchain,openai,llama-index, but the version of llama 0.9.22 may not be the one that your environment required

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.

image
Quit wired that there is same problem, and I create both index folder in quantgpt root folder and home folder
image
image
I try it for env python = 3.9 and still the same, Maybe the requirement list needs update?

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.

image
image
I think the main reason is I should get CHAINLIT_API_KEY and CHAINLIT_AUTH_SECRET?

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.