reentry command not found

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

Introduction

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

reentry: command not found

or when using sudo you get the following error message

sudo: reentry: command not found

Solutions to reentry: command not found

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

In Ubuntu reentry is provided by python3-reentry package.

python3-reentry is:

Setuptool’s entry point system is convenient to use for plugin based Python applications. It allows separate Python packages to act as plugins to a host package, making it easy for the host to find and iterate over the relevant data structures from plugins.

However simply importing setuptools scales badly with the number of installed distributions and can be very slow for moderately complex environments (~ 0.5 s). Finding and loading of plugins on the other hand is time-critical in cases like commandline tools loading subcommands, where 100 ms are a noticeable delay.

Setuptools’s pkg_resources is slow, because it verifies dependencies are installed correctly for all distributions present in the environment on import. This allows entry points to have additional requirements.

Reentry forgoes this dependency check for entry points without such ’extras' dependencies and thereby manages to be fast and scale better, with the amount of installed plugins, not installed Python packages in general.

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-reentry

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

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

sudo apt -y install python3-reentry

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

sudo aptitude install python3-reentry

Summary

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