xsdata command not found

In this troubleshooting guide we learn how to fix xsdata command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

xsdata: command not found

or when using sudo you get the following error message

sudo: xsdata: command not found

Solutions to xsdata: command not found

How To Fix xsdata: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu xsdata is provided by python3-xsdata package.

python3-xsdata is:

xsData is a complete XML data binding library for Python allowing developers to access and use XML documents as simple objects rather than using DOM.

It ships with a code generator for XML Schema definitions and WSDL 1.1 with SOAP 1.1 bindings. It produces simple dataclasses with type hints that don’t depend on the library itself in order to reduce the learning curve for users that have to write the binding models manually.

The included xml parser and serializer are highly optimized and adaptable with handlers based on native Python and lxml. The parser configuration offers the ability to skip unknown properties and to process xinclude statements.

xsData is constantly tested against the W3C XML Schema 1.1 test suite.

This package installs the library for Python 3.

To fix this problem, we can install more using the command below.

sudo apt-get -y install python3-xsdata

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install python3-xsdata.

sudo apt -y install python3-xsdata

Or if you have aptitude installed you can use the following command.

sudo aptitude install python3-xsdata

Summary

In this tutorial we learn how to fix xsdata command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.