Pythia8 compilation failed with getHook function missing

Asked by Vichayanun Wachirapusitanand


I am currently running MadGraph5 v2.6.7 with Pythia8 installed via mg5_aMC in the package. During four top quark production generation with that setup, I am able to generate events in LHE format up to the Pythia compilation step, where Pythia always give me errors like this below: In function ‘int main()’: error: ‘class Pythia8::CombineMatchingInput’ has no member named ‘getHook’; did you mean ‘setHook’?
     matching = combined->getHook(pythia);
                          ^~~~~~~ error: no matching function for call to ‘Pythia8::Pythia::setUserHooksPtr(Pythia8::UserHooks*&)’
In file included from
/storage_mnt/storage/user/vwachira/LCG_93c/MG5_aMC_v2_6_7/HEPTools/pythia8/include/Pythia8/Pythia.h:136:8: note: candidate: bool Pythia8::Pythia::setUserHooksPtr(Pythia8::UserHooksPtr)
   bool setUserHooksPtr(UserHooksPtr userHooksPtrIn) {
/storage_mnt/storage/user/vwachira/LCG_93c/MG5_aMC_v2_6_7/HEPTools/pythia8/include/Pythia8/Pythia.h:136:8: note: no known conversion for argument 1 from ‘Pythia8::UserHooks*’ to ‘Pythia8::UserHooksPtr {aka std::shared_ptr<Pythia8::UserHooks>}’
make: *** [Pythia82] Error 1

Pythia8 compilation did not succeed, exiting

Could you please explain what could be the cause of this error and how to fix this?


Question information

English Edit question
MadGraph5_aMC@NLO Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :

If you re-install pythia8, it should be working now.
But note that 2.6.7 is out of support and that soon install pythia8 is going to install pythia8.3 which is not compatible with 2.6.7



Can you help with this problem?

Provide an answer of your own, or ask Vichayanun Wachirapusitanand for more information if necessary.

To post a message you must log in.