|
[Rivet] rivet Python module could not be loadedAndy Buckley andy.buckley at cern.chThu Nov 17 16:17:25 GMT 2016
On 17/11/16 12:24, Shehu S AbdusSalam wrote: > Hi Andy, > > How can I correct this annoying thing? > > ./local/bin/rivet > The rivet Python module could not be loaded: is your PYTHONPATH set > correctly? > > > From python, > import rivet > returns > > ../local/lib/python2.7/site-packages/rivet/core.so: undefined symbol: > PyUnicodeUCS4_DecodeUTF8 > > The directory /local/lib/python2.7/site-packages/ > is in the PYTHONPATH. Hi Shehu, Hmm, that is strange. That missing symbol is obviously from Python itself, yet it's Python that's claiming it can't find it. Are you attempting to run Rivet with the same Python version that was used to build it? Testing a little more, I googled for PyUnicodeUCS4_DecodeUTF8 and found this as the first result: https://stackoverflow.com/questions/16871799/trying-to-import-a-module-undefined-symbol-pyunicodeucs4-decodeutf8 """ The module was built against a Python that was built with UCS-4 as its internal unicode representation. Your Python was built with UCS-2 as its internal representation. Rebuild the module, or rebuild Python. """ That's not proof, but does back up the hypothesis that the Rivet module is not being run with the same version of Python that its library was built against. Andy -- Dr Andy Buckley, Lecturer / Royal Society University Research Fellow Particle Physics Expt Group, University of Glasgow
More information about the Rivet mailing list |