kantord / LibreLingo

🐢 🌎 📚 a community-owned language-learning platform
https://librelingo.app
GNU Affero General Public License v3.0
1.93k stars 211 forks source link

Update click to v8 (python) #1664

Open kantord opened 2 years ago

kantord commented 2 years ago

Is your feature request related to a problem? Please describe. This could not be updated automatically due to failing CI. See original PR: https://github.com/kantord/LibreLingo/pull/1288

Describe the solution you'd like

crhaugen commented 2 years ago

Hello, If this is still open, I'd love to give it a try!

kantord commented 2 years ago

of course @crhaugen !

crhaugen commented 2 years ago

Hello @kantord, I seem to be getting the same error the CI was having. After updating click I get this:

Warning: The lock file is not up to date with the latest changes in pyproject.toml. You may be getting outdated dependencies. Run update to update them.
 Because librelingo-yaml-loader depends on click (^8.0.0) which doesn't match any versions, version solving failed. 

Found this (https://github.com/python-poetry/poetry/issues/1614) and tried the various solutions for the issue, the best I could get was a different error message.

Updating dependencies

  SolverProblemError

  Because no versions of pydoc-markdown match >3.10.0,<3.10.1 || >3.10.1,<3.10.2 || >3.10.2,<3.10.3 || >3.10.3,<3.11.0 || >3.11.0,<3.13.0 || >3.13.0,<4.0.0
   and pydoc-markdown (3.10.0) depends on click (>=7.0.0,<8.0.0), pydoc-markdown (>=3.10.0,<3.10.1 || >3.10.1,<3.10.2 || >3.10.2,<3.10.3 || >3.10.3,<3.11.0 || >3.11.0,<3.13.0 || >3.13.0,<4.0.0) requires click (>=7.0.0,<8.0.0).        
  And because pydoc-markdown (3.10.1) depends on click (>=7.0.0,<8.0.0), pydoc-markdown (>=3.10.0,<3.10.2 || >3.10.2,<3.10.3 || >3.10.3,<3.11.0 || >3.11.0,<3.13.0 || >3.13.0,<4.0.0) requires click (>=7.0.0,<8.0.0).
  And because pydoc-markdown (3.10.2) depends on click (>=7.0.0,<8.0.0)
   and pydoc-markdown (3.10.3) depends on click (>=7.0.0,<8.0.0), pydoc-markdown (>=3.10.0,<3.11.0 || >3.11.0,<3.13.0 || >3.13.0,<4.0.0) requires click (>=7.0.0,<8.0.0).
  And because pydoc-markdown (3.11.0) depends on click (>=7.0.0,<8.0.0)
   and pydoc-markdown (3.13.0) depends on click (>=7.0.0,<8.0.0), pydoc-markdown (>=3.10.0,<4.0.0) requires click (>=7.0.0,<8.0.0).
  So, because librelingo-yaml-loader depends on both click (^8.0.0) and pydoc-markdown (^3.10.0), version solving failed. 

Sorry, I've never used a lot of these tools before, not sure if there is an obvious solution or not?

kantord commented 2 years ago

Because librelingo-yaml-loader depends on click (^8.0.0) which doesn't match any versions, version solving failed.

weird, so that's a wrong version? what would be the correct version

fatelei commented 2 years ago

Hello @kantord, I seem to be getting the same error the CI was having. After updating click I get this:

Warning: The lock file is not up to date with the latest changes in pyproject.toml. You may be getting outdated dependencies. Run update to update them.
 Because librelingo-yaml-loader depends on click (^8.0.0) which doesn't match any versions, version solving failed. 

Found this (python-poetry/poetry#1614) and tried the various solutions for the issue, the best I could get was a different error message.

Updating dependencies

  SolverProblemError

  Because no versions of pydoc-markdown match >3.10.0,<3.10.1 || >3.10.1,<3.10.2 || >3.10.2,<3.10.3 || >3.10.3,<3.11.0 || >3.11.0,<3.13.0 || >3.13.0,<4.0.0
   and pydoc-markdown (3.10.0) depends on click (>=7.0.0,<8.0.0), pydoc-markdown (>=3.10.0,<3.10.1 || >3.10.1,<3.10.2 || >3.10.2,<3.10.3 || >3.10.3,<3.11.0 || >3.11.0,<3.13.0 || >3.13.0,<4.0.0) requires click (>=7.0.0,<8.0.0).        
  And because pydoc-markdown (3.10.1) depends on click (>=7.0.0,<8.0.0), pydoc-markdown (>=3.10.0,<3.10.2 || >3.10.2,<3.10.3 || >3.10.3,<3.11.0 || >3.11.0,<3.13.0 || >3.13.0,<4.0.0) requires click (>=7.0.0,<8.0.0).
  And because pydoc-markdown (3.10.2) depends on click (>=7.0.0,<8.0.0)
   and pydoc-markdown (3.10.3) depends on click (>=7.0.0,<8.0.0), pydoc-markdown (>=3.10.0,<3.11.0 || >3.11.0,<3.13.0 || >3.13.0,<4.0.0) requires click (>=7.0.0,<8.0.0).
  And because pydoc-markdown (3.11.0) depends on click (>=7.0.0,<8.0.0)
   and pydoc-markdown (3.13.0) depends on click (>=7.0.0,<8.0.0), pydoc-markdown (>=3.10.0,<4.0.0) requires click (>=7.0.0,<8.0.0).
  So, because librelingo-yaml-loader depends on both click (^8.0.0) and pydoc-markdown (^3.10.0), version solving failed. 

Sorry, I've never used a lot of these tools before, not sure if there is an obvious solution or not?

you should upgrade pydoc-markdown to 4.3.2 image

crhaugen commented 2 years ago

hrr, still having issues @fatelei

image

and getting this:

image

fatelei commented 2 years ago

hrr, still having issues @fatelei

image

and getting this:

image

click = 8.0.3 pydoc-markdown = 4.3.2

image