[AG-TECH] venue connection

Thomas Uram turam at mcs.anl.gov
Tue May 13 14:41:12 CDT 2003


Hi Dave:

The problem is that the Venue doesn't have a Join method.  To enter a 
venue, you call the Enter method.  "Join" is a method on application 
objects.

The shared image viewer example you are following actually uses some 
poor naming (I think that's a carryover from transient code that I 
wrote).  Due to the poor naming, it does appear that Join is called on a 
Venue.  However, in that example, "venueUrl" and "venueProxy" should be 
"appUrl" and "appProxy".

No matter, though.  I recommend that you look at the examples in 
AccessGrid/sharedapps.  These examples should be clearer for you to 
follow.  The SharedPresentation example includes code for creating the 
shared application in the venue.  (In most cases, that will not be the 
responsibility of the shared app client, but it makes a complete example 
for you, nonetheless.)

Tom



Dave Semeraro wrote:

>
> Hi folks,
>
> Any idea why the following python script fails?
>
> #
> # Just connect to the venue server
> #  Dave Semeraro 2003
> #
> #import some stuff...
> import os
> import sys
> #now import some AG stuff...
> from AccessGrid.hosting.pyGlobus import Client
> from AccessGrid import Events
> from AccessGrid import EventClient
>
> # This is a small test program that should just connect to the venue
> venueURL = "https://vv2.mcs.anl.gov:9000/Venues/default"
> venueProxy = Client.Handle(venueURL).get_proxy()
> # If all went well I just got a venue proxy. If not
> # I am in trouble. Carry on as if I know what I am doing...
> (publicId, privateId) = venueProxy.Join()
>
> I get the following errors:
>
> Traceback (most recent call last):
>   File 
> "C:\Python22\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", 
> line 301, in RunScript
>     exec codeObject in __main__.__dict__
>   File "C:\Program Files\Access Grid Toolkit\AGConnectTest.py", line 
> 18, in ?
>     (publicId, privateId) = venueProxy.Join()
>   File 
> "C:\Python22\Lib\site-packages\AccessGrid\hosting\pyGlobus\AGGSISOAP.py", 
> line 3650, in __call__
>     return self.__r_call(*args, **kw)
>   File 
> "C:\Python22\Lib\site-packages\AccessGrid\hosting\pyGlobus\AGGSISOAP.py", 
> line 3670, in __r_call
>     self.__hd, self.__ma)
>   File 
> "C:\Python22\Lib\site-packages\AccessGrid\hosting\pyGlobus\AGGSISOAP.py", 
> line 3585, in __call
>     raise p
> faultType: <Fault SOAP-ENV:Client: No method Join found>
>
> I suspect it is some python stupidity on my part.
>
> Dave
>
>
> Dave Semeraro Ph.D.
> Visualization and Virtual Environments Group
> NCSA University of Illinois
> 605 E. Springfield Ave.
> Champaign, IL 61820
> Semeraro at ncsa.uiuc.edu
> (217) 244-1852
>
>





More information about the ag-tech mailing list