[AG-DEV] Running AG3 From CVS on RHEL4 Experiences

Todd Zimmerman toddz at sfu.ca
Wed Mar 1 13:32:27 CST 2006


I should have noted - this _wasn't_ meant to be rant!  Sorry if it came across that way. Just trying
to get a test VenueServer up...

For completeness, here are the versions of the pre-reqs:

Python 2.3.4
ZSI (from cvs) 1.7 released 16-Feb-2005
Bajjer-0.2.3
Twisted-2.2.0 (TwistedSumo-02006-02-12)
ZopeInterface-3.0.1
common - From CVS Feb 21
feedparser-4.1
mDNSResponder-107.5
Bonjour Python module from CVS Feb 21
openssl-0.9.7a-43.4
pyOpenSSL version 0.5.1 from CVS Feb 21
M2Crypto 0.13

Todd








Todd Zimmerman wrote:
> Just wanted to document my experiences with running AG3 from CVS on RH EL 4.
> 
> I started by downloading/installing all the pre-requisites, including rebuilding the wxPython rpms
> from the wxPython site (to get the 2.6 versions).  Then I checked out the sources from CVS, cd'd
> into AccessGrid/tools and ran 'python CvsSetup.py -a ..' as per the instructions at
> http://www-unix.mcs.anl.gov/fl/research/accessgrid/software/cvs.html.
> 
> The rat build (main_control.c) failed citing 'conflicting types for snprintf'.  Looks like the
> config script declared that snprintf wasn't available so it was redeclared/rewritten in the code via
> an ifdef.   I just altered the ifdef to fail (and thus not redeclare) and the build worked.
> 
> Another problem was at the end of the build - there is a series of errors:
> Generating Interfaces
> sh: wsdl2py.py: command not found
> sh: wsdl2py.py: command not found
> sh: wsdl2dispatch.py: command not found
> 
> Upon investigation, there doesn't seem to be a wsdl2py.py on my system - including in the newly
> built packages - however, /usr/bin/wsdl2py and /usr/bin/wsdl2dispatch (note no .py) do exist - so I
> changed the GenerateInterfaces.py script exec variables to be wsdl2py and wsdl2dispatch and that
> seemed to do the trick.
> 
> I then sourced the env-init.sh script and started VenueClient.py.
> 
> Up popped the Enter Profile Info dialog - I entered data pressed OK and it crashed:
> 
> File "/home/toddz/src/AccessGrid/AccessGrid/Jabber/JabberClient.py", line 86, in SendNameChange
>     presence.from_ = self.currentRoomId + '/' + self.name
> TypeError: cannot concatenate 'str' and 'NoneType' objects
> 
> Changed the declaration of self.name (line 26) from = none to = '' (str type).
> 
> Restarted VenueClient - now complained of a AttributeError: JabberClient instance has no attribute
> '_stream' and upon checking, sure enough Line 20 shows _stream commented out.  I tried uncommenting
> and ran in another error (about one of the parameters 'host' not being defined).
> 
> Since I was trying to set up a VenueServer and was only starting the VenueClient to test, I gave up
> on my efforts and instead concentrated on getting the VenueServer running.
> 
> Ran CertificateManager.py and imported by ANL VenueServer service cert.
> 
> Then started VenueServer.py -d.  Here's the end of the trace:
> Traceback (most recent call last):
>   File "./VenueServer.py", line 144, in ?
>     main()
>   File "./VenueServer.py", line 98, in main
>     context = Toolkit.Service.instance().GetContext()
>   File "/home/toddz/src/AccessGrid/AccessGrid/Toolkit.py", line 217, in GetContext
>     self.__context.load_verify_locations(capath=caDir)
>   File "/usr/lib/python2.3/site-packages/M2Crypto/SSL/Context.py", line 121, in load_verify_locations
>     return m2.ssl_ctx_load_verify_locations(self.ctx, cafile, capath)
> TypeError: ssl_ctx_load_verify_locations() argument 2 must be string, not None
> 
> 
> Changed line 217 in GetContext to read self.__context.load_verify_locations('', capath=caDir)
> 
> and the VenueServer started fine.
> 
> Only issue now is that I can't connect with the VenueManagement tool.... but I've already documented
> that issue in my email to ag-dev from Feb 22.
> 
> Are these known issues?? I hate to file bug reports if the bug is caused by my (mis) configuration...
> 
> All of the pre-req's were taken from the AG download site and I'm running Python 2.3.4.
> 
> 
> Thanks!
> 
> Todd
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 




More information about the ag-dev mailing list