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

pypisearch requirements vs. upgrades of other packages (e.g. requests)? #11

Open
mhudec opened this issue Nov 9, 2022 · 1 comment
Open

Comments

@mhudec
Copy link

mhudec commented Nov 9, 2022

Hello,

it seems that there are strict versions required for some packages needed by pypisearch:

$ /e/Python/jq-win64.exe '.installed[]|select(.metadata.name=="pypisearch").metadata.requires_dist' inspect.txt
[
  "certifi (==2020.12.5)",
  "chardet (==4.0.0)",
  "idna (==2.10)",
  "requests (==2.25.1)",
  "tabulate (==0.8.9)"
]

... which then seems to be a cause for complaints when trying to upgrade other packages in my virtual environment, e.g. requests from 2.25.1 to 2.28.1:

(miro_du) E:\Python\pokusy\miro_du>pip list --outdated
Package            Version   Latest    Type
------------------ --------- --------- -----
certifi            2020.12.5 2022.9.24 wheel
chardet            4.0.0     5.0.0     wheel
charset-normalizer 2.1.1     3.0.0     wheel
idna               2.10      3.4       wheel
requests           2.25.1    2.28.1    wheel
tabulate           0.8.9     0.9.0     wheel

(miro_du) E:\Python\pokusy\miro_du>python -m pip install --upgrade requests
Requirement already satisfied: requests in e:\python\pokusy\miro_du\lib\site-packages (2.25.1)
Collecting requests
  Using cached requests-2.28.1-py3-none-any.whl (62 kB)
Requirement already satisfied: charset-normalizer<3,>=2 in e:\python\pokusy\miro_du\lib\site-packages (from requests) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in e:\python\pokusy\miro_du\lib\site-packages (from requests) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in e:\python\pokusy\miro_du\lib\site-packages (from requests) (1.26.12)
Requirement already satisfied: certifi>=2017.4.17 in e:\python\pokusy\miro_du\lib\site-packages (from requests) (2020.12.5)
Installing collected packages: requests
  Attempting uninstall: requests
    Found existing installation: requests 2.25.1
    Uninstalling requests-2.25.1:
      Successfully uninstalled requests-2.25.1
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.
pypisearch 1.3.5 requires requests==2.25.1, but you have requests 2.28.1 which is incompatible.
Successfully installed requests-2.28.1

(miro_du) E:\Python\pokusy\miro_du>pip list --outdated
Package            Version   Latest    Type
------------------ --------- --------- -----
certifi            2020.12.5 2022.9.24 wheel
chardet            4.0.0     5.0.0     wheel
charset-normalizer 2.1.1     3.0.0     wheel
idna               2.10      3.4       wheel
tabulate           0.8.9     0.9.0     wheel

Why are pypisearch requirements set to be on those exact versions, please?

Thank you,
Martin

@mhudec
Copy link
Author

mhudec commented Dec 26, 2022

@shidenko97 - Serhii, any idea, please?

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