mpdavis / python-jose

A JOSE implementation in Python
MIT License
1.55k stars 237 forks source link

Missing parentheses #325

Closed ricciarellif closed 1 year ago

ricciarellif commented 1 year ago

Hallo, I'm using Python 3.10.6 and I just started building a new JWT-based API with PyCharm 2023.1.3 (Community Edition).

I wrote only few lines of code - not related with jose - and tried to start my app... got this error message:

(<class 'SyntaxError'>, SyntaxError("Missing parentheses in call to 'print'. Did you mean print(...)?", ('/NVME_BigFoot/PROJECTS/Python/pyamco/.venv/lib/python3.10/site-packages/jose.py', 546, 5, " print decrypt(deserialize_compact(jwt), {'k':key},\n", 547, 31)), <traceback object at 0x7f28b6b0f7c0>)

The app hangs at the following line: from jose import JWTError, jwt

I don't know if matters (I don't think so, though) but I'm also using FastAPI, passlib, pydantic, uviconr and starlette (latest releases)

Every help will be much appreciated Fabrizio

chgad commented 1 year ago

Maybe duplicate of #177?

Have you tried the stated solution?

ricciarellif commented 1 year ago

Maybe duplicate of #177?

Have you tried the stated solution?

Yes, it is a duplicate of #177 and the stated solution worked for me too, thank you so much.