|
[Rivet] genser newsAndy Buckley andy.buckley at ed.ac.ukMon Jul 25 12:45:24 BST 2011
Yes, I see that too. But "import ctypes" *does* work and should anyway be being used by preference, cf. try: import ctypes sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL) except: import dl sys.setdlopenflags(sys.getdlopenflags() | dl.RTLD_GLOBAL) import rivet I just tried a Rivet build on lxplus with the right compiler and Python version, using our bootstrap script (with even the building of the PDF manual switched on), and it worked fine... so I'm not sure what's going wrong. I was using the development version for that, i.e. almost identical to the new 1.5.2 beta tarball, but I don't think that any of the Python paths etc. have been changed between 1.5.1 and 1.5.2. Andy On 24/07/11 22:18, Mikhail KIRSANOV wrote: > Python 2.6.5 says: > > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: No module named dl > > > > Andy Buckley wrote: >> Hi Mikhail, >> >> I'm pretty sure that we had this exact discussion before... maybe >> something useful can be found in email history but I have to leave now >> so can't do the "research"! I think it is related to something like a >> mismatch of GCC versions and paths and Python versions, but the paths >> you've copied in below look ok. >> >> As a check, what happens if you set up your environment with these GCC >> and Python versions, open a Python prompt, and call >> >> >>> import dl >> >>> import ctypes >> >> ? >> >> It looks like this failure only occurs during the documentation >> build... in that we do have to play some tricks to point paths at the >> build directory, but I wouldn't expect to get this error. >> >> Cheers, >> Andy >> >> >> On 22/07/11 22:08, Mikhail KIRSANOV wrote: >>> Hello, >>> I cannot compile Rivet 1.5.1 >>> >>> The error is >>> >>> PYTHONPATH=../pyext: \ >>> /afs/cern.ch/sw/lcg/external/Python/2.6.5/x86_64-slc5-gcc43-opt/bin/python >>> >>> mk-analysis-html analyses.html >>> Traceback (most recent call last): >>> File "mk-analysis-html", line 41, in <module> >>> import dl >>> ImportError: No module named dl >>> make[1]: *** [analyses.html] Error 1 >>> make[1]: Leaving directory >>> `/genser1/mkirsano/GENSER/simu/work/tmp28/Rivet-1.5.1/doc' >>> make: *** [all-recursive] Error 1 >>> >>> The configuration command: >>> >>> ./configure >>> --prefix=/genser1/mkirsano/GENSER/simu/work/tmp28/Rivet-1.5.1 >>> --with-hepmc=/afs/cern.ch/sw/lcg/external/HepMC/2.03.11/x86_64-slc5-gcc43-opt >>> >>> --with-boost-incpath=/afs/cern.ch/sw/lcg/external/Boost/1.44.0_python2.6/x86_64-slc5-gcc43-opt/include/boost-1_44 >>> >>> --with-fastjet=/afs/cern.ch/sw/lcg/external/fastjet/2.4.2p1/x86_64-slc5-gcc43-opt >>> >>> --with-gsl=/afs/cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt >>> --with-lcgtag=x86_64-slc5-gcc43-opt --disable-pdfmanual >>> --enable-unvalidated >>> PYTHON=/afs/cern.ch/sw/lcg/external/Python/2.6.5/x86_64-slc5-gcc43-opt/bin/python >>> >>> SWIG=/afs/cern.ch/sw/lcg/external/swig/1.3.40/x86_64-slc5-gcc43-opt/bin/swig >>> >>> >>> >>> Probably it is not a fatal error. Before, pkgsrc did not stop on errors >>> and rivet could be compiled in spite of this. Now pkgsrc is fixed and it >>> stops here. >>> >>> Mikhail >>> >>> >> >> > -- Dr Andy Buckley SUPA Advanced Research Fellow Particle Physics Experiment Group, University of Edinburgh The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
More information about the Rivet mailing list |