osprofiler command not found

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

Introduction

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

osprofiler: command not found

or when using sudo you get the following error message

sudo: osprofiler: command not found

Solutions to osprofiler: command not found

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

In Ubuntu osprofiler is provided by python3-osprofiler package.

python3-osprofiler is:

OpenStack consists of multiple projects. Each project, in turn, is composed of multiple services. To process some request, e.g. to boot a virtual machine, OpenStack uses multiple services from different projects. In the case somethin works too slowly, it’s extremely complicated to understand what exactly goes wrong and to locate the bottleneck.

To resolve this issue, a tiny but powerful library, osprofiler, has been interoduced, and can be used by all OpenStack projects and their Python clients. To be able to generate one trace per request, that goes through all involved services, and builds a tree of calls (see an example http://pavlovic.me/rally/profiler/).

This package contains the Python 3.x module.

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

sudo apt-get -y install python3-osprofiler

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

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

sudo apt -y install python3-osprofiler

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

sudo aptitude install python3-osprofiler

Summary

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