Skip to content

Setup CherryPy

hwassman edited this page Jul 15, 2023 · 3 revisions

Getting CherryPy packages

The easiest way to install the CherryPy packages on your computer is using PIP (Python Package Manager)

# pip3 install cherrypy

If you are not allowed to install and use PIP on your machine, you can try to use the CherryPy package shipped with gpfs.rpms. Check on the pmcollector node, where you are going to install grafana-bridge, that the package "/usr/lpp/mmfs/lib/python_external_libs.zip" exists. Add the package location to the Python Path.

# export PYTHONPATH="${PYTHONPATH}:/usr/lpp/mmfs/lib/python_external_libs.zip"
# python3
Python 3.6.8 (default, Jan 14 2022, 11:04:20)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-7)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> from pprint import pprint as p
>>> p(sys.path)
['',
 '/usr/lpp/mmfs/lib',
 '/usr/lpp/mmfs/lib/python_external_libs.zip',           < is in Python Path
 '/usr/lib64/python36.zip',
 '/usr/lib64/python3.6',
 '/usr/lib64/python3.6/lib-dynload',
 '/usr/local/lib64/python3.6/site-packages',
 '/usr/local/lib/python3.6/site-packages',
 '/usr/lib64/python3.6/site-packages',
 '/usr/lib/python3.6/site-packages']
>>>

User Guide

Installation

Configuration

Maintenance

Troubleshooting

Use cases

Designing dashboards

Developer Guide

Clone this wiki locally