File "/usr/lib/python3/dist-packages/jmespath/__init__.py", line 1, in <module>
from jmespath import parser
File "/usr/lib/python3/dist-packages/jmespath/parser.py", line 30, in <module>
from jmespath import lexer
File "/usr/lib/python3/dist-packages/jmespath/lexer.py", line 3, in <module>
from json import loads
ImportError: cannot import name 'loads' from 'json' (unknown location)
Whenever I try to do "import json" in my python3.8 code, I get the following mentioned error. If I remove "import json" from the code, the python3.8 code works perfectly fine. Importing json is mandatory for me because there are multiple files where import json is used. I cannot change it everywhere. So the possible solution is to get the broken json fixed. It looks like my Ubuntu20.04 is broken.
Thanks in advance. Any help would be appreciable.