2021年11月13日 星期六

LibreNMS - [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'] Package not found: The 'command_runner>=1.3.0' distribution was not found and is required by the application 問題修正

LibreNMS - [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']

Package not found: The 'command_runner>=1.3.0' distribution was not found and is required by the application ( 問題修正 ) 請用本文依序操作。


輸入 ./validate.php 顯示下面問題。


[librenms@localhost ~]$ ./validate.php

====================================

Component | Version

--------- | -------

LibreNMS  | 21.11.0

DB Schema | 2021_10_20_224207_increase_length_of_attrib_type_column (224)

PHP       | 7.4.16

Python    | 3.6.8

MySQL     | 10.5.9-MariaDB

RRDTool   | 1.4.8

SNMP      | NET-SNMP 5.7.2

====================================


[OK]    Composer Version: 2.1.12

[OK]    Dependencies up-to-date.

[OK]    Database connection successful

[OK]    Database schema correct

[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']

Package not found: The 'command_runner>=1.3.0' distribution was not found and is required by the application

'

        [FIX]:

        pip3 install -r /opt/librenms/requirements.txt


先安裝 python-devel 。( 注意版本 )

[librenms@localhost ~]$ sudo yum -y install python36-devel


再以 sudo 權限安裝 requirements.txt。

[librenms@localhost ~]$ sudo pip3 install -r /opt/librenms/requirements.txt


重新檢查 ./validate.php

[librenms@localhost ~]$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 21.11.0
DB Schema | 2021_10_20_224207_increase_length_of_attrib_type_column (224)
PHP       | 7.4.16
Python    | 3.6.8
MySQL     | 10.5.9-MariaDB
RRDTool   | 1.4.8
SNMP      | NET-SNMP 5.7.2
====================================

[OK]    Composer Version: 2.1.12
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct


問題已排除。

完成。

1 則留言: