pyGlobus FAQ(FAQ)
Lawrence Berkeley National Laboratory
Distributed Computing Department
National Energy Research Scientific Computing Center
Computing Sciences Division

Documentation Links
What are the prerequisites for building
How do I install pyGlobus?
How do I verify that my installation is correct?
How do I check out the most current version of pyGlobus?
I've checked pyGlobus out of cvs and I can't build it. I get this error: file 'src/util_wrap.c' does not exist
How come it says that the myProxy and rlsClient modules failed to build due to missing dependencies?
Why does pyGlobus take so long to build?
Why don't you have my question in the FAQ?
Prerequisites
  • The build process of globus tends to change from release to release. The important thing is to realize that you need some the globus C libraries. As of the globus-3.2 release these bundles are called globus-data-management-sdk-3.2-src_bundle.tar.gz and globus-resource-management-sdk-3.2-src_bundle.tar.gz. If you are using an earlier release you just need to build data-management and resource-management sdk bundles that came with that release. You can find these in the Pre-WS bundles section on the download page at www.globus.org. You must build these with a threaded flavor (ie: gcc32dbgpthr). We also recommend installing the resource management client bundle because that will give you the client programs grid-proxy-init, which you will need, and globusrun.
  • Installation
  • To install pyGlobus you must have your GLOBUS_LOCATION and GPT_LOCATION environment variables set to a valid globus install and gpt install directory. The most common case is that these are installed in the same directory. pyGlobus uses distutils so the installation process is the same for packages that use distutils.
    %python setup.py build --run-swig
  • Verification
  • To verify the pyGlobus installation you can run the unittests that come packaged with pyGlobus. Many of the unittests rely on site specfic configuration variables. So many of the unittests will fail unless you edit the config.txt file that resides in the test directory.
  • Anonymous cvs
  • cvs -d :pserver:anonymous@bosshog.lbl.gov:/home/portnoy/u5/repository login

    hit enter when prompted for the password

    cvs -d :pserver:anonymous@bosshog.lbl.gov:/home/portnoy/u5/repository co pyGlobus
  • Common build error when using cvs
  • You need to install swig version 1.3.24 or later to build the *_wrap.c files. The swig that comes with redhat won't work.You can get it here www.swig.org. When you build pyGlobus you need to pass the --run-swig option to setup.py.
    Like this:
    %python setup.py build --run-swig
  • How come it says that the myProxy and rlsClient modules failed to build due to missing dependencies?
  • If you wish to use the myProxy and rlsClient functionality you need to install those packages in your globus installation. The rlsClient package provides an API for using a replica location service. In a sentence it is useful for managing large files physically and logically over several machines. Here is a link to the RLS homepage . The myProxy package provides allows you to store your user proxy for a long periods of time on a dedicated proxy server. Here is a link to the myProxy homepage . These packages should be built with a threaded flavor if you want to use the pyGlobus myProxy or rlsClient modules.
  • Why does pyGlobus take so long to build?
  • For each module we have to make a globus-makefile-header call. This is the takes the more time than anything else. If you are doing development we would recommend using the --make-gmfh-cache and --use-gmfh-cache options.
    Like this:
    %python setup.py build --make-gmfh-cache
    And on subsequent builds
    %python setup.py build --use-gmfh-cache
    What this does is create a cache of the globus-makefile-header output, and then on subsequent builds it uses this cache, which signifcantly reduces the time to build pyGlobus.
  • Why don't you have my question in the FAQ?
  • Send you question to python-discuss@globus.org. We will answer your question and after deeming it FAQworthy, put it on this page.


  • LBNL Home Page. DSD Home Page. Grid Technologies. DOE Science Grid.

    You are visitor [an error occurred while processing this directive] to this page since January 2001.

    This document was last updated on December 09, 2005, and is located at http://www-itg.lbl.gov/gtg/projects/pyGlobus/FAQ.html.
    To report Web page problems, e-mail webmaster@www-itg.lbl.gov. To request further information about ITG activities, e-mail wejohnston@lbl.gov.
    Support Credits identify the funding sources and the organizational context of the work described in this document.
    Privacy and site security notice to Users

    Joshua Boverhof (JRBoverhof@lbl.gov) is responsible for this WWW document.