pypisearch icon indicating copy to clipboard operation
pypisearch copied to clipboard

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

Open mhudec opened this issue 3 years ago • 1 comments

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 avatar Nov 09 '22 12:11 mhudec

@shidenko97 - Serhii, any idea, please?

mhudec avatar Dec 26 '22 16:12 mhudec