python-jose icon indicating copy to clipboard operation
python-jose copied to clipboard

Missing parentheses

Open ricciarellif opened this issue 2 years ago • 2 comments

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 this 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

ricciarellif avatar Jul 17 '23 15:07 ricciarellif

Same

kit2512 avatar Aug 19 '23 09:08 kit2512

pip install python-jose

YasinLiu avatar May 27 '24 08:05 YasinLiu