Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent required Python versions #1105

Open
chrishart0 opened this issue Feb 4, 2025 · 2 comments
Open

Inconsistent required Python versions #1105

chrishart0 opened this issue Feb 4, 2025 · 2 comments

Comments

@chrishart0
Copy link
Contributor

chrishart0 commented Feb 4, 2025

Describe the bug
The pyproject.toml says python = ">=3.10,<3.12", while the README.md says Install Python 3.11 or later. I confirmed poetry install does not work with 3.10.12.

To Reproduce
Steps to reproduce the behavior:

  1. Fresh clone of the repo
  2. Run poetry install

Expected behavior
Poetry should be configured to only use versions of python which work

Desktop (please complete the following information):

  • OS: Mac
  • Browser: N/A
  • Version: Latest master

Additional context

% poetry install
The currently activated Python version 3.13.0 is not supported by the project (>=3.10,<3.12).
Trying to find and use a compatible version. 
Using python3.10 (3.10.15)
Creating virtualenv gpt-researcher in /Users/myname/git/gpt-researcher/.venv
Updating dependencies
Resolving dependencies... (1.6s)

Because no versions of langchain-openai match >=0.1,<0.1.1 || >0.1.1,<0.1.2 || >0.1.2,<0.1.3 || >0.1.3,<0.1.4 || >0.1.4,<0.1.5 || >0.1.5,<0.1.6 || >0.1.6,<0.1.7 || >0.1.7,<0.1.8 || >0.1.8,<0.1.9 || >0.1.9,<0.1.10 || >0.1.10,<0.1.11 || >0.1.11,<0.1.12 || >0.1.12,<0.1.13 || >0.1.13,<0.1.14 || >0.1.14,<0.1.15 || >0.1.15,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.19 || >0.1.19,<0.1.20 || >0.1.20,<0.1.21rc1 || >0.1.21rc1,<0.1.21rc2 || >0.1.21rc2,<0.1.22 || >0.1.22,<0.1.23 || >0.1.23,<0.1.24 || >0.1.24,<0.1.25 || >0.1.25,<0.2
 and langchain-openai (0.1.21rc1) depends on langchain-core (>=0.2.29rc1,<0.3.0), langchain-openai (>=0.1,<0.1.1 || >0.1.1,<0.1.2 || >0.1.2,<0.1.3 || >0.1.3,<0.1.4 || >0.1.4,<0.1.5 || >0.1.5,<0.1.6 || >0.1.6,<0.1.7 || >0.1.7,<0.1.8 || >0.1.8,<0.1.9 || >0.1.9,<0.1.10 || >0.1.10,<0.1.11 || >0.1.11,<0.1.12 || >0.1.12,<0.1.13 || >0.1.13,<0.1.14 || >0.1.14,<0.1.15 || >0.1.15,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.19 || >0.1.19,<0.1.20 || >0.1.20,<0.1.21rc2 || >0.1.21rc2,<0.1.22 || >0.1.22,<0.1.23 || >0.1.23,<0.1.24 || >0.1.24,<0.1.25 || >0.1.25,<0.2) requires langchain-core (>=0.2.29rc1,<0.3.0).
And because langchain-openai (0.1.21rc2) depends on langchain-core (>=0.2.29,<0.3.0)
 and langchain-openai (0.1.1) depends on langchain-core (>=0.1.33,<0.2.0), langchain-openai (>=0.1,<0.1.2 || >0.1.2,<0.1.3 || >0.1.3,<0.1.4 || >0.1.4,<0.1.5 || >0.1.5,<0.1.6 || >0.1.6,<0.1.7 || >0.1.7,<0.1.8 || >0.1.8,<0.1.9 || >0.1.9,<0.1.10 || >0.1.10,<0.1.11 || >0.1.11,<0.1.12 || >0.1.12,<0.1.13 || >0.1.13,<0.1.14 || >0.1.14,<0.1.15 || >0.1.15,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.19 || >0.1.19,<0.1.20 || >0.1.20,<0.1.22 || >0.1.22,<0.1.23 || >0.1.23,<0.1.24 || >0.1.24,<0.1.25 || >0.1.25,<0.2) requires langchain-core (>=0.1.33,<0.2.0 || >=0.2.29rc1,<0.3.0).
And because langchain-openai (0.1.2) depends on langchain-core (>=0.1.41,<0.2.0)
 and langchain-openai (0.1.3) depends on langchain-core (>=0.1.42,<0.2.0), langchain-openai (>=0.1,<0.1.4 || >0.1.4,<0.1.5 || >0.1.5,<0.1.6 || >0.1.6,<0.1.7 || >0.1.7,<0.1.8 || >0.1.8,<0.1.9 || >0.1.9,<0.1.10 || >0.1.10,<0.1.11 || >0.1.11,<0.1.12 || >0.1.12,<0.1.13 || >0.1.13,<0.1.14 || >0.1.14,<0.1.15 || >0.1.15,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.19 || >0.1.19,<0.1.20 || >0.1.20,<0.1.22 || >0.1.22,<0.1.23 || >0.1.23,<0.1.24 || >0.1.24,<0.1.25 || >0.1.25,<0.2) requires langchain-core (>=0.1.33,<0.2.0 || >=0.2.29rc1,<0.3.0).
And because langchain-openai (0.1.4) depends on langchain-core (>=0.1.46,<0.2.0)
 and langchain-openai (0.1.5) depends on langchain-core (>=0.1.46,<0.2.0), langchain-openai (>=0.1,<0.1.6 || >0.1.6,<0.1.7 || >0.1.7,<0.1.8 || >0.1.8,<0.1.9 || >0.1.9,<0.1.10 || >0.1.10,<0.1.11 || >0.1.11,<0.1.12 || >0.1.12,<0.1.13 || >0.1.13,<0.1.14 || >0.1.14,<0.1.15 || >0.1.15,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.19 || >0.1.19,<0.1.20 || >0.1.20,<0.1.22 || >0.1.22,<0.1.23 || >0.1.23,<0.1.24 || >0.1.24,<0.1.25 || >0.1.25,<0.2) requires langchain-core (>=0.1.33,<0.2.0 || >=0.2.29rc1,<0.3.0).
And because langchain-openai (0.1.6) depends on langchain-core (>=0.1.46,<0.2.0)
 and langchain-openai (0.1.7) depends on langchain-core (>=0.1.46,<0.3), langchain-openai (>=0.1,<0.1.8 || >0.1.8,<0.1.9 || >0.1.9,<0.1.10 || >0.1.10,<0.1.11 || >0.1.11,<0.1.12 || >0.1.12,<0.1.13 || >0.1.13,<0.1.14 || >0.1.14,<0.1.15 || >0.1.15,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.19 || >0.1.19,<0.1.20 || >0.1.20,<0.1.22 || >0.1.22,<0.1.23 || >0.1.23,<0.1.24 || >0.1.24,<0.1.25 || >0.1.25,<0.2) requires langchain-core (>=0.1.33,<0.3.0).
And because langchain-openai (0.1.8) depends on langchain-core (>=0.2.2,<0.3)
 and langchain-openai (0.1.9) depends on langchain-core (>=0.2.2,<0.3), langchain-openai (>=0.1,<0.1.10 || >0.1.10,<0.1.11 || >0.1.11,<0.1.12 || >0.1.12,<0.1.13 || >0.1.13,<0.1.14 || >0.1.14,<0.1.15 || >0.1.15,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.19 || >0.1.19,<0.1.20 || >0.1.20,<0.1.22 || >0.1.22,<0.1.23 || >0.1.23,<0.1.24 || >0.1.24,<0.1.25 || >0.1.25,<0.2) requires langchain-core (>=0.1.33,<0.3.0).
And because langchain-openai (0.1.10) depends on langchain-core (>=0.2.2,<0.3)
 and langchain-openai (0.1.11) depends on langchain-core (>=0.2.2,<0.3), langchain-openai (>=0.1,<0.1.12 || >0.1.12,<0.1.13 || >0.1.13,<0.1.14 || >0.1.14,<0.1.15 || >0.1.15,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.19 || >0.1.19,<0.1.20 || >0.1.20,<0.1.22 || >0.1.22,<0.1.23 || >0.1.23,<0.1.24 || >0.1.24,<0.1.25 || >0.1.25,<0.2) requires langchain-core (>=0.1.33,<0.3).
And because langchain-openai (0.1.12) depends on langchain-core (>=0.2.2,<0.3)
 and langchain-openai (0.1.13) depends on langchain-core (>=0.2.2,<0.3), langchain-openai (>=0.1,<0.1.14 || >0.1.14,<0.1.15 || >0.1.15,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.19 || >0.1.19,<0.1.20 || >0.1.20,<0.1.22 || >0.1.22,<0.1.23 || >0.1.23,<0.1.24 || >0.1.24,<0.1.25 || >0.1.25,<0.2) requires langchain-core (>=0.1.33,<0.3).
And because langchain-openai (0.1.14) depends on langchain-core (>=0.2.2,<0.3)
 and langchain-openai (0.1.15) depends on langchain-core (>=0.2.13,<0.3.0), langchain-openai (>=0.1,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.19 || >0.1.19,<0.1.20 || >0.1.20,<0.1.22 || >0.1.22,<0.1.23 || >0.1.23,<0.1.24 || >0.1.24,<0.1.25 || >0.1.25,<0.2) requires langchain-core (>=0.1.33,<0.3.0).
And because langchain-openai (0.1.16) depends on langchain-core (>=0.2.17,<0.3.0)
 and langchain-openai (0.1.17) depends on langchain-core (>=0.2.20,<0.3.0), langchain-openai (>=0.1,<0.1.19 || >0.1.19,<0.1.20 || >0.1.20,<0.1.22 || >0.1.22,<0.1.23 || >0.1.23,<0.1.24 || >0.1.24,<0.1.25 || >0.1.25,<0.2) requires langchain-core (>=0.1.33,<0.3.0).
And because langchain-openai (0.1.19) depends on langchain-core (>=0.2.24,<0.3.0)
 and langchain-openai (0.1.20) depends on langchain-core (>=0.2.26,<0.3.0), langchain-openai (>=0.1,<0.1.22 || >0.1.22,<0.1.23 || >0.1.23,<0.1.24 || >0.1.24,<0.1.25 || >0.1.25,<0.2) requires langchain-core (>=0.1.33,<0.3.0).
And because langchain-openai (0.1.22) depends on langchain-core (>=0.2.33,<0.3.0)
 and langchain-openai (0.1.23) depends on langchain-core (>=0.2.35,<0.3.0), langchain-openai (>=0.1,<0.1.24 || >0.1.24,<0.1.25 || >0.1.25,<0.2) requires langchain-core (>=0.1.33,<0.3.0).
And because langchain-openai (0.1.24) depends on langchain-core (>=0.2.39,<0.3.0)
 and langchain-openai (0.1.25) depends on langchain-core (>=0.2.40,<0.3.0), langchain-openai (>=0.1,<0.2) requires langchain-core (>=0.1.33,<0.3.0).
Because no versions of langchain-gigachat match >0.3.3,<0.4.0
 and langchain-gigachat (0.3.3) depends on langchain-core (>=0.3,<0.4), langchain-gigachat (>=0.3.3,<0.4.0) requires langchain-core (>=0.3,<0.4).
Thus, langchain-gigachat (>=0.3.3,<0.4.0) is incompatible with langchain-openai (>=0.1,<0.2).
So, because gpt-researcher depends on both langchain-openai (^0.1) and langchain-gigachat (^0.3.3), version solving failed.
@chrishart0
Copy link
Contributor Author

To fix simply bumping the required python version in the pyproject.toml.

@chrishart0
Copy link
Contributor Author

The error text I posted actually is not related to the miss-matched version, it seems to be the new gigachatllm PR merged in 3 hours ago: 62257aa. Using python 3.11, I checked out the previous commit and poetry install passes. Will open a separate issue for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant