[AG-TECH] Small problem with Python environment.

Jimmy Miklavcic jimmy.miklavcic at utah.edu
Fri Jan 22 11:44:49 CST 2010


I have a student, Josh Bross, that is developing an animated interface for the AG. He's trying to set up his environment and seems to have all the appropriate paths set in his environment variables. As he attempts to run small test modules, some modules are not found. If any one has an interest in helping us get set up, it would be greatly appreciated. See below for some of his information.

Thanks in advance.

Jimmy

 --
Jimmy Miklavcic
Multimedia Specialist
Jimmy.Miklavcic at utah.edu<mailto:Jimmy.Miklavcic at utah.edu>

UNIVERSITY OF UTAH
CTR FOR HIGH PERFORM COMPUTING
155 SOUTH 1452 EAST RM 405
SALT LAKE CITY, UT 84112-0190

Office: 801.585.9335
 Fax: 801.585.5366

http://www.anotherlanguage.org<http://www.anotherlanguage.org/>


I am using the latest AG and python24. I am walking through the "Development Intro" and am trying to use the GetClients.py script.

I had to modify the script to even have it run, but I had to comment out the functionality that I need to do so. Bellow is the current script I'm using:
-----------------------------------------------------------------------------------------------
#!/usr/bin/python2

import sys
#if sys.platform == "darwin":
    # OSX: pyGlobus/globus need to be loaded before modules such as socket.
 #   import pyGlobus.ioc

import agversion
agversion.select(3)

from AccessGrid.Toolkit import CmdlineApplication
from AccessGrid.Venue import VenueIW

url = sys.argv[1]

# Create and initialize application
app = CmdlineApplication()
app.Initialize('GetClients')
# Create venue interface wrapper
venue = VenueIW('https://vv3.mcs.anl.gov:8000/Venues/default')
#url)

venueState = venue.GetState()
print venueState

# Get clients from venue and process
#clientList = venue.GetClients()
#for client in clientList:
  #  print client
-----------------------------------------------------------------------------------------------

I added these two lines:
import agversion
agversion.select(3)

and commented out many other lines.

My problem is that VenueIW does not seem to match the docs. The only function of VenueIW I've "got to work" is the GetState() call. I don't believe the docs can possibly be that messed up, so I know that I am probably setting something up wrong.

The following is the error I get:
Traceback (most recent call last):
   File "GetClients.py", line 27, in ?
     venueState = venue.GetClients()
AttributeError: VenueIW instance has no attribute 'GetClients'

Why does my VenueIW instance not know nothing about itself???

Also, are there other (current) tutorials besides: http://www.mcs.anl.gov/research/projects/accessgrid/documentation/tutorial/AGTk_2.4/index.htm

thank you in advance,
JOsh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/ag-tech/attachments/20100122/2291efd6/attachment.htm>


More information about the ag-tech mailing list