xmlschema-json2xml command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
xmlschema-json2xml: command not found
or when using sudo you get the following error message
sudo: xmlschema-json2xml: command not found
Solutions to xmlschema-json2xml: command not found
How To Fix xmlschema-json2xml: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu xmlschema-json2xml is provided by python3-xmlschema package.
python3-xmlschema is:
This library includes the following features:
- Full XSD 1.0 and XSD 1.1 support
- Building of XML schema objects from XSD files
- Validation of XML instances against XSD schemas
- Decoding of XML data into Python data and to JSON
- Encoding of Python data and JSON to XML
- Data decoding and encoding ruled by converter classes
- An XPath based API for finding schema’s elements and attributes
- Support of XSD validation modes strict/lax/skip
- Remote attacks protection by default using an XMLParser that forbids entities
This package contains the Python 3.x version of xmlschema.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-xmlschema
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-xmlschema.
sudo apt -y install python3-xmlschema
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-xmlschema
Summary
In this tutorial we learn how to fix xmlschema-json2xml command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.