1.

How Is Testing The Installation?

Answer»

It needs to be verified whether the application has properly been installed in the system or not in the same way as we do for applications like Java.

You may choose any one of the three methods mentioned in the previous CHAPTER to install and deploy CherryPy in your environment. CherryPy must be able to import from the Python shell as follows −

import cherrypy
cherrypy.__version__
'3.0.0'

If CherryPy is not installed globally to the local system’s Python environment, then you need to set the PYTHONPATH environment variable, else it will display an error in the following way −

import cherrypy
Traceback (most recent call LAST):
FILE "<stdin>", line 1, in ?
ImportError: No MODULE named cherrypy

It needs to be verified whether the application has properly been installed in the system or not in the same way as we do for applications like Java.

You may choose any one of the three methods mentioned in the previous chapter to install and deploy CherryPy in your environment. CherryPy must be able to import from the Python shell as follows −

import cherrypy
cherrypy.__version__
'3.0.0'

If CherryPy is not installed globally to the local system’s Python environment, then you need to set the PYTHONPATH environment variable, else it will display an error in the following way −

import cherrypy
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named cherrypy



Discussion

No Comment Found