QoreStor requires the following Python packages :
scikit-learn, statsmodels, influxdb-client, pandas, numpy, lxml, xmltodict, python-crontab, tcconfig, netifaces.
Generally, these packages are downloaded and installed automatically during installation. However, if internet access is not configured on the server, the packages can be downloaded on a Linux system which is connected to the internet and copied to the QoreStor server before the upgrade or installation of the QoreStor.
When the server is connected to the internet, execute the following command to download the prerequisite Python packages:
pip3 download scikit-learn statsmodels influxdb-client pandas numpy lxml xmltodict python-crontab tcconfig netifaces
The downloaded files can then be copied to the QoreStor server. The downloaded files can then be copied to the QoreStor server and installed either during QoreStor installation, or after QoreStor has been installed or upgraded.
To install the downloaded packages during QoreStor installation, add the "--pypkg-path" argument to the installer command line:
./qs_inst_7.5.2.115.bin -- --pypkg-path <directory_containing_downloaded_python_packages>
Alternatively, the downloaded packages can be installed after installing or upgrading QoreStor using the following commands:
/opt/qorestor/bin/detection/detection_env/bin/pip3 install scikit-learn
/opt/qorestor/bin/detection/detection_env/bin/pip3 install statsmodels
/opt/qorestor/bin/detection/detection_env/bin/pip3 install influxdb-client
/opt/qorestor/bin/detection/detection_env/bin/pip3 install pandas
/opt/qorestor/bin/detection/detection_env/bin/pip3 install numpy
/opt/qorestor/bin/detection/detection_env/bin/pip3 install python-crontab
/opt/qorestor/bin/detection/detection_env/bin/pip3 install tcconfig
/opt/qorestor/bin/detection/detection_env/bin/pip3 install netifaces
/opt/qorestor/bin/qs_email_stats/qs_stats_env/bin/pip3 install lxml
/opt/qorestor/bin/qs_email_stats/qs_stats_env/bin/pip3 install xmltodict
If the above commands are executed successfully, restart the QoreStor services by executing the following command:
systemctl restart ocards
Please note that once the above commands are executed, and the prerequisite packages are installed, you don’t need to execute the same on subsequent QoreStor updates.