|
[Rivet] rivet and GENSERAnton Karneyeu Anton.Karneyeu at cern.chThu Feb 11 18:50:15 GMT 2010
Hi Hendrik, no problem to wait for Rivet 1.2.0, anyway now I am playing with local installation of Rivet. I take a look on http://svn.hepforge.org/rivet/trunk/bin/ . As I see you use xml.etree.cElementTree or xml.etree.ElementTree modules. Unfortunately these are available only from Python 2.5 (see http://docs.python.org/library/xml.etree.elementtree.html ). SLC4 has Python 2.3.4, SLC5 has 2.4.3: $ ssh lxplus $ python Python 2.3.4 (#1, Jul 30 2008, 01:34:10) [GCC 3.4.6 20060404 (Red Hat 3.4.6-9)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import xml.etree.cElementTree Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named etree.cElementTree >>> import xml.etree.ElementTree Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named etree.ElementTree >>> So, the only way to use new Rivet 1.2.0 "from the box" on SLC, which I see, is to change xml parser to xml.dom or xml.sax . Do you think this is possible? Anton Hendrik Hoeth: > Hi Anton, > > Thus spake Anton Karneyeu (Anton.Karneyeu at cern.ch): > >> I am going to integrate Rivet to GENSER tests system, and I found two >> problems: >> >> * current installation of Rivet and AGILe at >> >> /afs/cern.ch/sw/lcg/external/MCGenerators/ >> >> doesn't have necessary python scripts to run agile and rivet. >> This is due to configure option --disable-pyext , which was used >> during installation. > > Sounds like a failure during the installation. > >> That is why I want to reinstall this tools. Can you >> comment - will it be save for current user of rivet/agile? > > It should be. But I think you should simply wait a few days. We are > about to release Rivet 1.2.0 next week, which is a _major_ improvement > over 1.1.3. > >> * second problem related with old version of python 2.3/2.4 on >> slc4/slc5, which does not allow to direct use of several rivet python >> scripts (make-plots, aida2root, aida2flat) due to use of module >> xml.etree.ElementTree (which is available starting from python 2.5 only). > > This has long been fixed in the Rivet development version and the fix > will be in the 1.2.0 release. So if you can wait until next week ... > >> May be you can propose another solutions? > > Have a look at the version in http://svn.hepforge.org/rivet/trunk/bin/ > We are now using cElementTree if xml.etree.cElementTree is not > available. This works fine with the older Python versions on SL4/SL5. > > Cheers, > > Hendrik
More information about the Rivet mailing list |