Termsteel icon indicating copy to clipboard operation
Termsteel copied to clipboard

jwt conflict

Open xiangzhu-enf opened this issue 2 years ago • 5 comments

My python version is 3.9.

pip3 install --no-cache-dir -r requirements.txt

ERROR: Cannot install -r requirements.txt (line 10) and PyJWT==2.4.0 because these package versions have conflicting dependencies.

The conflict is caused by: The user requested PyJWT==2.4.0 flask-jwt-login 0.0.5 depends on PyJWT==1.6.4

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflic

xiangzhu-enf avatar Jun 10 '23 14:06 xiangzhu-enf

To solve this problem, uninstall all your existing pip packets and try again.

use this command : pip freeze | xargs pip uninstall -y

kaelianbaudelet avatar Jun 11 '23 11:06 kaelianbaudelet

To solve this problem, uninstall all your existing pip packets and try again.

use this command : pip freeze | xargs pip uninstall -y

This does not work for me. I created a virtual environment, so there is no past leftover. pip freeze returns nothing. It still fails the same way. I think the conflict is in the requirement.txt itself, as shown in the error message.

xiangzhu-enf avatar Jun 23 '23 03:06 xiangzhu-enf

Can you give me the error message...

kaelianbaudelet avatar Jun 24 '23 07:06 kaelianbaudelet

Can you give me the error message...

That's in the original message in this thread. Copied here.

ERROR: Cannot install -r requirements.txt (line 10) and PyJWT==2.4.0 because these package versions have conflicting dependencies.

The conflict is caused by: The user requested PyJWT==2.4.0 flask-jwt-login 0.0.5 depends on PyJWT==1.6.4

xiangzhu-enf avatar Jun 24 '23 13:06 xiangzhu-enf

Below is the full log captured by the "script" command. Thanks!

== Script started on 20230624 0724510700 TERMxterm256color TTYdevpts15 COLUMNS80 LINES40 Agent pid 516 2004h0xiangzhupenguin projTermsteel0132mxiangzhupenguin00m0134mprojTermsteel00m python3 KKKKKKKKsource venvbinactivate 2004l2004hvenv 0xiangzhupenguin projTermsteel0132mxiangzhupenguin00m0134mprojTermsteel00m 7mpip freeze xargs pip uninstall y27m

AACCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCpip freeze xargs pip uninstall y

A 2004l31mERROR You must give at least one requirement to uninstall see pip help uninstall0m 2004hvenv 0xiangzhupenguin projTermsteel0132mxiangzhupenguin00m0134mprojTermsteel00m pip freeze xargs pip uninstall yKKKKKKKKKKKKKKKKKKKKKKKK 2004l2004hvenv 0xiangzhupenguin projTermsteel0132mxiangzhupenguin00m0134mprojTermsteel00m pip3 install r requirementstxt 2004lCollecting argon2cffi2130 Using cached argon2cffi2130py3noneanywhl 14 kB Collecting argon2cffibindings2120 Using cached argon2cffibindings2120cp36abi3manylinux217x8664manylinux2014x8664whl 86 kB Collecting bidict0220 Using cached bidict0220py3noneanywhl 36 kB Collecting certifi20225181 Using cached certifi20225181py3noneanywhl 155 kB Collecting cffi1150 Using cached cffi1150cp39cp39manylinux212x8664manylinux2010x8664whl 444 kB Collecting charsetnormalizer2012 Using cached charsetnormalizer2012py3noneanywhl 39 kB Collecting click712 Using cached click712py2py3noneanywhl 82 kB Collecting Flask102 Using cached Flask102py2py3noneanywhl 91 kB Collecting FlaskArgon20200 Using cached FlaskArgon20200py3noneanywhl 49 kB Collecting flaskjwtlogin005 Using cached flaskjwtlogin005py3noneanywhl Collecting FlaskSocketIO520 Using cached FlaskSocketIO520py3noneanywhl 17 kB Collecting idna33 Using cached idna33py3noneanywhl 61 kB Collecting importlibmetadata4114 Using cached importlibmetadata4114py3noneanywhl 18 kB Collecting itsdangerous110 Using cached itsdangerous110py2py3noneanywhl 16 kB Collecting Jinja22113 Using cached Jinja22113py2py3noneanywhl 125 kB Collecting markup02 Using cached markup02py3noneanywhl Collecting MarkupSafe201 Using cached MarkupSafe201cp39cp39manylinux25x8664manylinux1x8664manylinux212x8664manylinux2010x8664whl 30 kB Collecting pycparser221 Using cached pycparser221py2py3noneanywhl 118 kB Collecting PyJWT240 Using cached PyJWT240py3noneanywhl 18 kB Collecting pythonengineio421 Using cached pythonengineio421py3noneanywhl 52 kB Collecting pythonsocketio540 Using cached pythonsocketio540py3noneanywhl 55 kB Collecting requests2271 Using cached requests2271py2py3noneanywhl 63 kB Collecting urllib31269 Using cached urllib31269py2py3noneanywhl 138 kB Collecting waitress212 Using cached waitress212py3noneanywhl 57 kB Collecting Werkzeug101 Using cached Werkzeug101py2py3noneanywhl 298 kB Collecting zipp380 Using cached zipp380py3noneanywhl 54 kB INFO pip is looking at multiple versions of flaskargon2 to determine which version is compatible with other requirements This could take a while INFO pip is looking at multiple versions of flask to determine which version is compatible with other requirements This could take a while INFO pip is looking at multiple versions of click to determine which version is compatible with other requirements This could take a while INFO pip is looking at multiple versions of charsetnormalizer to determine which version is compatible with other requirements This could take a while INFO pip is looking at multiple versions of cffi to determine which version is compatible with other requirements This could take a while INFO pip is looking at multiple versions of certifi to determine which version is compatible with other requirements This could take a while INFO pip is looking at multiple versions of bidict to determine which version is compatible with other requirements This could take a while INFO pip is looking at multiple versions of argon2cffibindings to determine which version is compatible with other requirements This could take a while INFO pip is looking at multiple versions of Python from RequiresPython to determine which version is compatible with other requirements This could take a while INFO pip is looking at multiple versions of argon2cffi to determine which version is compatible with other requirements This could take a while 31mERROR Cannot install r requirementstxt line 10 and PyJWT240 because these package versions have conflicting dependencies0m

The conflict is caused by The user requested PyJWT240 flaskjwtlogin 005 depends on PyJWT164

To fix this you could try to 1 loosen the range of package versions youve specified 2 remove package versions to allow pip attempt to solve the dependency conflict

31mERROR ResolutionImpossible for help visit httpspippypaioenlatestuserguidefixingconflictingdependencies0m 2004hvenv 0xiangzhupenguin projTermsteel0132mxiangzhupenguin00m0134mprojTermsteel00m 2004l2004hvenv 0xiangzhupenguin projTermsteel0132mxiangzhupenguin00m0134mprojTermsteel00m eKvenvbindeKK easyinstall pip pip39 python3 easyinstall39 pip3 python python39 venv 0xiangzhupenguin projTermsteel0132mxiangzhupenguin00m0134mprojTermsteel00m venvbinKKKKKKKKKexit 2004lexit

Script done on 20230624 0726470700 COMMANDEXITCODE1

xiangzhu-enf avatar Jun 24 '23 14:06 xiangzhu-enf

If you're patient, within a month I can promise you an improved version completely redesigned in NodeJS.

kaelianbaudelet avatar Aug 14 '23 23:08 kaelianbaudelet