Difference between revisions of "Installing the Configobj Python Module"

From Vital Soft Wiki
Jump to: navigation, search
>Jeremyb
>Johno
(Overview)
 
(7 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
The Configobj Python module is used by Vital Signs to read config files.
 
The Configobj Python module is used by Vital Signs to read config files.
  
 +
'''''All of the installation information and links provided here were believed to be accurate at the time of writing.  Screen shots and file names are version specific and will likely be different for your site specific installation.  This information is provided as a courtesy and is not warranted in any way.  Vital Soft is NOT RESPONSIBLE for software installed on your server.'''''
  
 
==Installing Configobj==
 
==Installing Configobj==
Line 24: Line 25:
  
 
Install the Module
 
Install the Module
   $ python setup.py install
+
   # python setup.py install
  
 
If there are no errors, the library was installed successfully
 
If there are no errors, the library was installed successfully
  
  Example of successful install
+
Example of successful install:
 +
 
 
   # /usr/local/bin/python setup.py install
 
   # /usr/local/bin/python setup.py install
 
   running install
 
   running install
Line 42: Line 44:
 
   #
 
   #
  
 +
==Verify Permissions==
  
==Confirming the install==
+
  login root
 +
  cd /usr/local/lib/python2.7/site-packages
 +
  ls -l
 +
 
 +
Example of proper permissions:
 +
 
 +
  -rw-r--r--  1 root      sys            119 Nov 13 08:00 README
 +
  -rw-r--r--  1 root      sys          2135 Dec 18 15:51 configobj-4.7.2-py2.7.egg-info
 +
  -rw-r--r--  1 root      sys          88163 Feb 27  2010 configobj.py
 +
  -rw-r--r--  1 root      sys          66966 Dec 18 15:51 configobj.pyc
 +
  drwxr-xr-x  3 root      sys          8192 Dec 16 13:56 git_remote_helpers
 +
  -rw-r--r--  1 root      sys          46324 Mar  1  2010 validate.py
 +
  -rw-r--r--  1 root      sys          47046 Dec 18 15:51 validate.pyc
 +
 
 +
==Confirming the ConfigObj module is installed==
  
 
   login bolive
 
   login bolive
Line 50: Line 67:
 
   quit()
 
   quit()
  
  Example of a successful confirmation
+
Example of a successful confirmation:
 +
 
 
   $ python
 
   $ python
 
   Python 2.7.6 (default, Nov 13 2013, 15:55:37) [C] on hp-ux11
 
   Python 2.7.6 (default, Nov 13 2013, 15:55:37) [C] on hp-ux11

Latest revision as of 17:44, 21 November 2015

Overview

The Configobj Python module is used by Vital Signs to read config files.

All of the installation information and links provided here were believed to be accurate at the time of writing. Screen shots and file names are version specific and will likely be different for your site specific installation. This information is provided as a courtesy and is not warranted in any way. Vital Soft is NOT RESPONSIBLE for software installed on your server.

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
 #

Verify Permissions

 login root
 cd /usr/local/lib/python2.7/site-packages
 ls -l

Example of proper permissions:

 -rw-r--r--   1 root       sys            119 Nov 13 08:00 README
 -rw-r--r--   1 root       sys           2135 Dec 18 15:51 configobj-4.7.2-py2.7.egg-info
 -rw-r--r--   1 root       sys          88163 Feb 27  2010 configobj.py
 -rw-r--r--   1 root       sys          66966 Dec 18 15:51 configobj.pyc
 drwxr-xr-x   3 root       sys           8192 Dec 16 13:56 git_remote_helpers
 -rw-r--r--   1 root       sys          46324 Mar  1  2010 validate.py
 -rw-r--r--   1 root       sys          47046 Dec 18 15:51 validate.pyc

Confirming the ConfigObj module is installed

 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()
 $