Difference between revisions of "Installing the Configobj Python Module"

From Vital Soft Wiki
Jump to: navigation, search
>Jeremyb
>Jeremyb
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.
  
−
To determine if the module is already installed enter the following at the command line
 
−
    pydoc modules configobj
 
  
 
==Installing Configobj==
 
==Installing Configobj==
 
* Download the file [https://www.vital-soft.com/download/secure/vitalsigns/python/configobj-4.6.0.tar.gz here]
 
* Download the file [https://www.vital-soft.com/download/secure/vitalsigns/python/configobj-4.6.0.tar.gz here]
−
''Note: Contact support@vital-soft.com for the download credentials.''
+
''Note: Contact support@vital-soft.com for the download credentials if you are prompted.''
  
−
* Login as root to HPUX
+
Login as root to HPUX
  
−
* Transfer configobj-4.6.0.tar.gz file to /tmp
+
Transfer binary configobj-4.6.0.tar.gz file to /tmp
  
−
* Unzip the gz file
+
Unzip the gz file
−
    $ gunzip /tmp/configobj-4.6.0.tar.gz
+
  $ gunzip /tmp/configobj-4.6.0.tar.gz
  
−
* Untar the tar file
+
Untar the tar file
−
    $ tar -xvf /tmp/configobj-4.6.0.tar
+
  $ tar -xvf /tmp/configobj-4.6.0.tar
  
−
* Change directory to the directory
+
Change directory to the directory
−
    $ cd /tmp/configobj-4.6.0
+
  $ cd /tmp/configobj-4.6.0
  
−
* 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
 +
 
 +
 
 +
==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()
 +
  $

Revision as of 00:12, 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.

Login as root to HPUX

Transfer binary configobj-4.6.0.tar.gz file to /tmp

Unzip the gz file

 $ gunzip /tmp/configobj-4.6.0.tar.gz

Untar the tar file

 $ tar -xvf /tmp/configobj-4.6.0.tar

Change directory to the directory

 $ cd /tmp/configobj-4.6.0

Install the Module

 $ python setup.py install

If there are no errors, the library was installed successfully


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