Looks like a badly built package (assuming that json is installed on the user's system when it is actually outside the standard library).

You can use pip to globally install json: just write pip install json. You may need to install pip separately.

Answer from Newb on askubuntu.com
🌐
GitHub
github.com › facebookresearch › visdom › issues › 679
No module named 'jsonpatch' after upgrading visdom to version 0.1.8.9 · Issue #679 · fossasia/visdom
October 11, 2019 - I just upgraded visdom within the anaconda environment from version 0.1.8.8 to version 0.1.8.9 on MacOS 10.15 (Catalina). Hint: Visdom 0.1.8.8 worked without any issues on MacOS 10.15. Visdom version 0.1.8.9 does not work when I run the ...
🌐
Stack Overflow
stackoverflow.com › questions › 64464927 › in-python-modulenotfounderror-no-module-named-json
In python modulenotfounderror : no module named 'json' - Stack Overflow
In python when I import json this error come that "no module named json" , after I try to install it from pip but it didn't work and give error that "no matching distribution found for json"
Discussions

Question fixing- ModuleNotFOundError: No module named 'jsonmerge'
pip install jsonmerge More on reddit.com
🌐 r/StableDiffusion
10
3
October 23, 2022
ImportError: No module named json_tricks
Hi everyone, I’m new to psychopy and installed standalone psychopy on ubuntu using sudo apt-get install psychopy. When I try to open the Monitor Center in the psychopy coder GUI I get ImportError: No module named json_tricks even though json_tricks is installed and it is possible to open ... More on discourse.psychopy.org
🌐 discourse.psychopy.org
1
0
November 6, 2017
python - How to fix ModuleNotFoundError: No module named 'rest_framework' in Ubuntu - Stack Overflow
I'm trying to deploy a django application on AWS EC2 for the first time. I'm using Ubuntu server, but it happens that the packages I installed are not recognized, the packeges have already been add... More on stackoverflow.com
🌐 stackoverflow.com
python - No module named 'json' after installing simplejson - Stack Overflow
I am working in Ubuntu 14.04 and I have multiple versions of Python on my machine (they include python2.7 and python3.4). Few days back, I installed simplejson on my system. I don't remember how I ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
RoseIndia
roseindia.net › answers › viewqa › pythonquestions › 127837-ModuleNotFoundError-No-module-named-jsonpatch.html
ModuleNotFoundError: No module named 'jsonpatch'
March 23, 2021 - After the installation of jsonpatch python library, ModuleNotFoundError: No module named 'jsonpatch' error will be solved.
🌐
PyPI
pypi.org › project › jsonpatch
jsonpatch · PyPI
[![PyPI version](https://img.shields.io/pypi/v/jsonpatch.svg)](https://pypi.python.org/pypi/jsonpatch/) [![Supported Python versions](https://img.shields.io/pypi/pyversions/jsonpatch.svg)](https://pypi.python.org/pypi/jsonpatch/) [![Build Status](https://travis-ci.org/stefankoegl/python-json-patch.png?branch=master)](https://travis-ci.org/stefankoegl/python-json-patch) [![Coverage Status](https://coveralls.io/repos/stefankoegl/python-json-patch/badge.png?branch=master)](https://coveralls.io/r/stefankoegl/python-json-patch?branch=master)
      » pip install jsonpatch
    
Published   Jun 16, 2023
Version   1.33
🌐
Ceph
tracker.ceph.com › issues › 44138
Bug #44138: ModuleNotFoundError: No module named 'jsonpatch' - Orchestrator - Ceph
Added by Sebastian Wagner about 5 years ago. Updated about 5 years ago · https://github.com/ceph/ceph/commit/846761ef7afab43144f38bf5631fd859d6964820
🌐
GitHub
github.com › akamai › cli-cps › issues › 11
jsonpatch not in requirements.txt · Issue #11 · akamai/cli-cps
September 12, 2018 - akamai cps list Traceback (most recent call last): File "/Users/hdebeij/.akamai-cli/src/cli-cps/bin/akamai-cps", line 35, in import jsonpatch ModuleNotFoundError: No module named 'jsonpatch' Reason is that the requirements.txt does not c...
Find elsewhere
🌐
Google Groups
groups.google.com › g › cefpython › c › qFyiHKPGdEg
No module named json(build with pyinstaller)
C:\Python27\Scripts\dist>wxpython.exe Traceback (most recent call last): File "<string>", line 23, in <module> File "C:\Python27\Lib\site-packages\PyInstaller\loader\pyi_importers.py", line 270, in load_module exec(bytecode, module.__dict__) File "C:\Python27\Scripts\build\wxpython\out00-PYZ.pyz\cefpython3", line 4, in <module> File "C:\Python27\Lib\site-packages\PyInstaller\loader\pyi_importers.py", line 409, in load_module module = imp.load_module(fullname, fp, filename, self._c_ext_tuple) File "imports.pyx", line 16, in init cefpython_py27 (cefpython.cpp:82540) ImportError: No module named json
🌐
Reddit
reddit.com › r/stablediffusion › question fixing- modulenotfounderror: no module named 'jsonmerge'
r/StableDiffusion on Reddit: Question fixing- ModuleNotFOundError: No module named 'jsonmerge'
October 23, 2022 -

I've tried a ton of different things trying to get some AI art stuff working, but no matter what I have tried, I keep getting the same error whether I go through python directly, or through conda. its always in the same place. None of my friends had issues with getting it working, and even after uninstall everything (git, python, etc), and reinstalling it, nothing has changed.

🌐
Anaconda.org
anaconda.org › conda-forge › jsonpatch
jsonpatch - conda-forge | Anaconda.org
Install jsonpatch with Anaconda.org. Apply JSON-Patches (RFC 6902)
🌐
PsychoPy
discourse.psychopy.org › coding
ImportError: No module named json_tricks - Coding - PsychoPy
November 6, 2017 - Hi everyone, I’m new to psychopy and installed standalone psychopy on ubuntu using sudo apt-get install psychopy. When I try to open the Monitor Center in the psychopy coder GUI I get ImportError: No module named json_tricks even though json_tricks is installed and it is possible to open ...
Top answer
1 of 2
6

Note: I do not have a definitive answer but will offer a series of steps you can try:

The first thing is see if you can import json from the usual python interpreter:

import json
print(json.__file__) #this would be important to know if it works

If that does work (as well as commenting what json.__file__ is) you would then want to try to use pip from the interpreter.

If you can't import json normally:

This is not surprising, I did not expect pip to be looking in a non-standard place for modules. You will want to figure out where the json package should be located on your computer, you can do this by importing another module from the standard library and looking at it's __file__:

>>> import fractions
>>> fractions.__file__
'/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/fractions.py'

This will obviously be different for you but I'd expect there to be a json folder in the same folder as fractions.py

if you can't import fractions or queue or datetime etc.

If you can't import anything from the standard library you will probably want to just reinstall python.

If the json folder is there and contains an __init__.py

Use the rename function of your file browser to make sure there are no weird special characters, but other then that I'm not sure, if you can import fractions.py but not a package from the same folder that would imply there is something very wrong with the import mechanics of your python version.

If the json folder is not with the rest of the standard library

It is possible that your python distribution has a different structure then I'd expect, it at least can't hurt to take a look for it.

You can search for the json folder amongst your various python files using the find command, not really sure how it works but just another thing to try. If you do find it with the __init__.py, encode.py, decode.py, scanner.py, and tool.py (at least those are the ones in my version) you'll probably want to figure out how it got there, but maybe just move it to the same folder as the rest of the standard library.

If you can't find the json package or you find it and it is corrupted

Well then you will need to replace it! Don't worry, this isn't too hard, just grab a source release of python from the site and extract the json package from it, once it is uncompressed the json folder should be in the Lib folder. Simply copy/move it to the rest of the standard library and you should be good to go!


I hope this helps you debug what is going on, This covers all the scenarios I could imagine happening and I would be interested in which one fixed your issue (or what you were able to figure out so I can come up with more options)

2 of 2
-1

I am guessing that you install it using either pip install simplejson to download from PyPI or using apt-get install python-simplejson to download from ubuntu repositories.

It is possible that you downlaoded the library for the Python2 if you used any of the commands above and it won't be available for Python3 (which pip3.4 will use). Can you try these commands and help debug yourself?

$ python -c "import simplejson"

$ python3.4 -c "import simplejson"

This would tell you which version of the python did you install simplejson for last time (my guess in python2). If the 2nd command errors out with ImportError try:

$ pip3.4 install simplejson

and then install your libraries.

🌐
GitHub
github.com › langchain-ai › langchain › issues › 35240
ModuleNotFoundError: No module named 'langchain.chains' on fresh install · Issue #35240 · langchain-ai/langchain
February 16, 2026 - aiohttp: 3.13.3 dataclasses-json: 0.6.7 groq: 0.37.1 httpx: 0.28.1 httpx-sse: 0.4.3 huggingface-hub: 0.36.2 jsonpatch: 1.33 langgraph: 1.0.8 numpy: 2.4.2 opentelemetry-api: 1.39.1 opentelemetry-sdk: 1.39.1 orjson: 3.11.7 packaging: 26.0 pydantic: 2.12.5 pydantic-settings: 2.13.0 PyYAML: 6.0.3 pyyaml: 6.0.3 requests: 2.32.5 requests-toolbelt: 1.0.0 rich: 14.3.2 sentence-transformers: 5.2.2 sqlalchemy: 2.0.46 SQLAlchemy: 2.0.46 tenacity: 9.1.4 tokenizers: 0.22.2 transformers: 5.1.0 typing-extensions: 4.15.0 uuid-utils: 0.14.0 xxhash: 3.6.0 zstandard: 0.25.0
Author   Hisaalu Nelson(Hisaalu)
🌐
Reddit
reddit.com › r/stablediffusion › error: modulenotfounderror: no module named 'jsonmerge'
r/StableDiffusion on Reddit: Error: ModuleNotFoundError: No module named 'jsonmerge'
May 11, 2023 -

Gone through all the things google has to say about it. Ive installed and uninstalled manually but still get the same error. First time messing with python and I gotta say I'm not impressed. it has things installed and pretends they are not. Anyone know a fix for missing 'jsonmerge"? And where do I add arguments to launch.py?

  File "C:\Users\SKF02\stable-diffusion-webui-master\repositories\k-diffusion\k_diffusion\config.py", line 6, in <module>
    from jsonmerge import merge
ModuleNotFoundError: No module named 'jsonmerge'
Press any key to continue . . .

🌐
Medium
medium.com › @ryan_forrester_ › fixing-no-module-named-errors-in-python-a-complete-guide-b989b7a2bd19
Fixing ‘No Module Named’ Errors in Python: A Complete Guide | by ryan | Medium
May 14, 2025 - The dreaded “No module named” error is something every Python developer encounters. Let’s break down why this happens and how to fix it across different scenarios. When Python can’t find a module you’re trying to import, it throws a `ModuleNotFoundError`. Here’s what it looks like:
🌐
GitHub
github.com › langchain-ai › langchain › issues › 33804
create_agent in 1.0.3 dependency issue with langgraph-prebuilt 1.0.2 · Issue #33804 · langchain-ai/langchain
November 3, 2025 - anthropic: 0.72.0 asyncpg: 0.30.0 claude-agent-sdk: Installed. No version info available. httpx: 0.28.1 jsonpatch: 1.33 langchain-aws: Installed. No version info available. langchain-community: Installed. No version info available. langchain-deepseek: Installed.
Author   David Hait(dhait)
🌐
GeeksforGeeks
geeksforgeeks.org › python › modulenotfounderror-no-module-named-error-in-python
ModuleNotFoundError: No module named Error in Python - GeeksforGeeks
July 23, 2025 - Below, are the approaches to solve ModuleNotFoundError in Python: ... To resolve this issue, you need to install the missing module using a package manager like pip. Open your terminal or command prompt and run the following command: ... Replace ...