openai / web-crawl-q-and-a-example

Learn how to crawl your website and build a Q/A bot with the OpenAI API
https://platform.openai.com/docs/tutorials/web-qa-embeddings
271 stars 181 forks source link

Error while getting dependencies from requirements.txt #3

Closed DineshNanayakkara closed 10 months ago

DineshNanayakkara commented 10 months ago

Hi,

I am not sure if this is something only happening on my end but wanted to post.

I am getting the following error when I run, "pip install -r requirements.txt".

Are the dependency versions correct?

ItamarRocha commented 10 months ago

Which error? It seems to be working fine. Could you double-check your environment?

DineshNanayakkara commented 10 months ago

Yeah, I am following the tutorial listed on the site.

Current error.

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. pydantic 2.5.1 requires typing-extensions>=4.6.1, but you have typing-extensions 4.4.0 which is incompatible. pydantic-core 2.14.3 requires typing-extensions!=4.7.0,>=4.6.0, but you have typing-extensions 4.4.0 which is incompatible.

I managed to get it working by removing,

typing_extensions==4.4.0

and by adding, pydantic-core==2.14.3 typing-extensions>=4.6.1

Thanks.