py_filter command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
py_filter: command not found
or when using sudo you get the following error message
sudo: py_filter: command not found
Solutions to py_filter: command not found
How To Fix py_filter: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu py_filter is provided by python3-doxypypy package.
python3-doxypypy is:
For now Doxygen has limited support for Python. It recognizes Python comments, but otherwise treats the language as being more or less like Java. It doesn’t understand basic Python syntax constructs like docstrings, keyword arguments, generators, nested functions, decorators, or lambda expressions. It likewise doesn’t understand conventional constructs like doctests or ZOPE-style interfaces. It does however support inline filters that can be used to make input source code a little more like what it’s expecting.
The excellent doxypy makes it possible to embed Doxygen commands in Python docstrings, and have those docstrings converted to Doxygen-recognized comments on the fly per Doxygen’s regular input filtering process. It however does not address any of the other previously mentioned areas of difficulty.
This project started off as a fork of doxypy but quickly became quite distinct. It shares little (if any) of the same code at this point (but maintains the original license just in case). It is meant to support all the same command line options as doxypy, but handle additional Python syntax beyond docstrings.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-doxypypy
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-doxypypy.
sudo apt -y install python3-doxypypy
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-doxypypy
Summary
In this tutorial we learn how to fix py_filter command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.