ModuleNotFoundError: No module named 'sanic_testing'

An error occured in unittesting with the sanic server.
For our application, we need to upgrade httpx to (0.23.0) and considered sanic (21.12.1) version for our application.
As per issue 2086 in github, we tried to install sanic-testing latest version (22.3.0) which has conflict with httpx(0.23.0)

Getting below error:
.tox/py38/lib/python3.8/site-packages/sanic/app.py:1028: in test_client
from sanic_testing.testing import SanicTestClient # type: ignore
ModuleNotFoundError: No module named ‘sanic_testing’.

How can we resolve the above error considering httpx (0.23.0) and sanic (21.12.1) ?
Which sanic-testing version is compatible with httpx(0.23.0)?

See here Upgrade httpx for Sanic 20.12 LTS

To make it short, it means that you lacked some “dependencies” for the libraries you wanted to use. This is a common problem when installing python packages, mainly in windows. Before trying to use any kind of library, first it is suggested to look up whether it needs another library in python “family”.

The solution is to provide the python interpreter with the path-to-your-module/library. The simplest solution is to append that python path to your sys.path list. In your notebook, first try:

import sys
sys.path.append('my/path/to/module/folder')

This isn’t a permanent change in sys.path, because when you log out, your environment is reset, so any variables you may have set are lost.

The better (and more permanent) way to solve this is to set your PYTHONPATH, which provides the interpreter with additional directories look in for python packages/modules.

from BASH type: export PYTHONPATH=/path/to/new/folder:/another/path/...../

#each path must be separated by a colon