Difference between revisions of "Installing the Configobj Python Module"
>Jeremyb |
>Jeremyb |
||
Line 6: | Line 6: | ||
==Installing Configobj== | ==Installing Configobj== | ||
− | Download the file [https:// | + | Download the file [https://pypi.python.org/packages/source/c/configobj/configobj-4.7.2.tar.gz here] |
+ | |||
''Note: Contact support@vital-soft.com for the download credentials if you are prompted.'' | ''Note: Contact support@vital-soft.com for the download credentials if you are prompted.'' | ||
+ | |||
+ | Transfer binary configobj-4.7.2.tar.gz file to /tmp | ||
Login as root to HPUX | Login as root to HPUX | ||
− | |||
− | |||
Unzip the gz file | Unzip the gz file | ||
− | $ gunzip /tmp/configobj-4. | + | $ gunzip /tmp/configobj-4.7.2.tar.gz |
Untar the tar file | Untar the tar file | ||
− | $ tar -xvf /tmp/configobj-4. | + | $ tar -xvf /tmp/configobj-4.7.2.tar |
Change directory to the directory | Change directory to the directory | ||
− | $ cd /tmp/configobj-4. | + | $ cd /tmp/configobj-4.7.2 |
Install the Module | Install the Module | ||
Line 26: | Line 27: | ||
If there are no errors, the library was installed successfully | If there are no errors, the library was installed successfully | ||
+ | |||
+ | Example of successful install | ||
+ | # /usr/local/bin/python setup.py install | ||
+ | running install | ||
+ | running build | ||
+ | running build_py | ||
+ | running install_lib | ||
+ | copying build/lib/configobj.py -> /usr/local/lib/python2.7/site-packages | ||
+ | copying build/lib/validate.py -> /usr/local/lib/python2.7/site-packages | ||
+ | byte-compiling /usr/local/lib/python2.7/site-packages/configobj.py to configobj.pyc | ||
+ | byte-compiling /usr/local/lib/python2.7/site-packages/validate.py to validate.pyc | ||
+ | running install_egg_info | ||
+ | Writing /usr/local/lib/python2.7/site-packages/configobj-4.7.2-py2.7.egg-info | ||
+ | # | ||
Revision as of 00:18, 19 December 2013
Overview
The Configobj Python module is used by Vital Signs to read config files.
Installing Configobj
Download the file here
Note: Contact support@vital-soft.com for the download credentials if you are prompted.
Transfer binary configobj-4.7.2.tar.gz file to /tmp
Login as root to HPUX
Unzip the gz file
$ gunzip /tmp/configobj-4.7.2.tar.gz
Untar the tar file
$ tar -xvf /tmp/configobj-4.7.2.tar
Change directory to the directory
$ cd /tmp/configobj-4.7.2
Install the Module
$ python setup.py install
If there are no errors, the library was installed successfully
Example of successful install # /usr/local/bin/python setup.py install running install running build running build_py running install_lib copying build/lib/configobj.py -> /usr/local/lib/python2.7/site-packages copying build/lib/validate.py -> /usr/local/lib/python2.7/site-packages byte-compiling /usr/local/lib/python2.7/site-packages/configobj.py to configobj.pyc byte-compiling /usr/local/lib/python2.7/site-packages/validate.py to validate.pyc running install_egg_info Writing /usr/local/lib/python2.7/site-packages/configobj-4.7.2-py2.7.egg-info #
Confirming the install
login bolive python from configobj import ConfigObj quit()
Example of a successful confirmation $ python Python 2.7.6 (default, Nov 13 2013, 15:55:37) [C] on hp-ux11 Type "help", "copyright", "credits" or "license" for more information. >>> from configobj import ConfigObj >>> quit() $