{"id":4357,"date":"2022-01-25T12:14:36","date_gmt":"2022-01-25T18:14:36","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=4357"},"modified":"2022-01-25T12:14:36","modified_gmt":"2022-01-25T18:14:36","slug":"librenms-package-not-found-the-command_runner","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/librenms-package-not-found-the-command_runner\/","title":{"rendered":"LibreNMS &#8211; Package not found: The &#8216;command_runner>=&#8217;"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">The Problem<\/h2>\n\n\n\n<p>Running the .\/validate.php script returns the following error<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[FAIL]  Python3 module issue found: 'Required packages: ['PyMySQL!=1.0.0', 'python-dotenv', 'redis>=3.0', 'setuptools', 'psutil>=5.6.0', 'command_runner>=1.3.0']\nPackage not found: The 'command_runner>=1.3.0' distribution was not found and is required by the application\n'\n        [FIX]:\n        pip3 install -r \/opt\/librenms\/requirements.txt<\/pre>\n\n\n\n<p>Running the [FIX] throws an error saying gcc failed with exit status 1.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Solution<\/h2>\n\n\n\n<p>Fortunately this issue is easy to resolve.<\/p>\n\n\n\n<p>First we need to install python3-devel<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo yum install python3-devel<\/pre>\n\n\n\n<p>Next, as the librenms user, run the pip command to install the requirements.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip3 install --user -U -r \/opt\/librenms\/requirements.txt<\/pre>\n\n\n\n<p>Run .\/validate.php to verify that everything is working.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/01\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"413\" height=\"146\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/01\/image.png\" alt=\"\" class=\"wp-image-4358\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/01\/image.png 413w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/01\/image-300x106.png 300w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><\/a><figcaption>librenms validate.php results<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Problem Running the .\/validate.php script returns the following error [FAIL] Python3 module issue found: &#8216;Required packages: [&#8216;PyMySQL!=1.0.0&#8217;, &#8216;python-dotenv&#8217;, &#8216;redis>=3.0&#8217;, &#8216;setuptools&#8217;, &#8216;psutil>=5.6.0&#8217;, &#8216;command_runner>=1.3.0&#8217;] Package not found: The &#8216;command_runner>=1.3.0&#8217; distribution was not found and is required by the application &#8216; [FIX]: &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/librenms-package-not-found-the-command_runner\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[352],"tags":[353,389,579,293],"class_list":["post-4357","post","type-post","status-publish","format-standard","hentry","category-librenms","tag-librenms","tag-nms","tag-pip","tag-python"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=4357"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4357\/revisions"}],"predecessor-version":[{"id":4359,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4357\/revisions\/4359"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=4357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=4357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=4357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}