Code Monkey home page Code Monkey logo

Comments (3)

assafelovic avatar assafelovic commented on July 17, 2024 2

Done! https://pypi.org/project/gpt-researcher/

from gpt-researcher.

nileshtrivedi avatar nileshtrivedi commented on July 17, 2024

Even when specifying the requirement directly from github, I get many dependency conflicts, like:

The conflict is caused by:
94.52 The user requested pydantic==2.6.4
94.52 fastapi 0.110.0 depends on pydantic!=1.8, !=1.8.1, !=2.0.0, !=2.0.1, !=2.1.0, <3.0.0 and >=1.7.4
94.52 langchain 0.1.12 depends on pydantic<3 and >=1
94.52 langchain-core 0.1.32 depends on pydantic<3 and >=1
94.52 langsmith 0.1.27 depends on pydantic<3 and >=1
94.52 openai-function-call 0.2.6 depends on pydantic<3.0.0 and >=2.0.2
94.52 gpt-researcher 0.0.5 depends on pydantic==2.5.1

This is because the dependencies mentioned in pyproject.toml are very strict and conflict with the project which is trying to use this package.

Also, the version mentioned in pyproject.toml (0.0.5) does not match the git tag (0.1.5).

from gpt-researcher.

nileshtrivedi avatar nileshtrivedi commented on July 17, 2024

Thanks @assafelovic

It would help if in pyproject.toml, the dependencies' versions are specified with ">=" rather than exact version. This helps when gpt-researcher is used as a library in another python project and minimizes version conflicts.

For example, instead of:

asyncio = "3.4.3"

it should say,

asyncio = ">=3.4.3"

This lets the library user upgrade their dependencies even if gpt-researcher version is a bit behind the times.
Other version specification operators like caret, tilda are also available and might be more appropriate.
They are documented here in Poetry docs.

from gpt-researcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.