[AG-DEV] Running AG3 From CVS on RHEL4 - Redux
Todd Zimmerman
toddz at sfu.ca
Wed Mar 15 13:37:14 CST 2006
OK... finally found the time to get back at it ;-)
So, I completely wiped my CVS AG3 install and went with the rpm's that Doug posted.
Most issues seem to have been solved; however, on the VenueServer side, I'm still running into the
"TypeError: ssl_ctx_load_verify_locations() argument 2 must be string, not None" error.
Tom mentioned it may be the version of Swig that was used - apparently swig 1.3.24 fixes this issue.
Any suggestions??
Thanks!
Todd
Thomas D. Uram wrote:
>
> Some of your dependencies are older that what we've been using.
> You can find a list here:
>
> http://www.mcs.anl.gov/fl/research/accessgrid/wiki/moin.cgi/AccessGrid3Dependencies
>
>
> Sorry for the confusion. A couple notes:
>
> - ZSI: The release candidate will fix the wsdl2py/wsdl2py.py problem
> you mentioned.
> - openssl: I'm not sure how far back we can go, but I know there were
> security related fixes
> in the latest releases of both 0.9.7 and 0.9.8
> - Twisted: We only use twisted.internet, which you can get as a
> separate (and smaller) bundle
> - Bajjer: 0.2.4 fixes a bug which caused the VenueClient to crash on Linux
> - M2Crypto must be 0.15 (this will fix the problem with
> ssl_ctx_load_verify_locations)
>
> I wouldn't hesitate to file bugs for issues you find. It creates a
> record of a problem found
> and the solution (even if the solution is "this is not a problem because
> xyz").
>
> Tom
>
>
>
>>
>> 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