Closed dharmendergaur closed 1 year ago
Hi @dharmendergaur,
Thanks for raising this Herwig bug. I've fixed it, so please retry the installation.
Based on the Sherpa error message, I think you were attempting to use the HepMC2 interface. However, the Sherpa formula previously only had support for the HepMC3 interface. I've added an optional dependency for HepMC2, so you should now be able to run your existing parameter file after installing with brew install sherpa --with-hepmc2
. Alternatively, you can update the output to HepMC3.
Hi David, Thanks a lot for the update. I am finally able to run both herwig and sherpa in MAC OS, I switched to Ubuntu after failing multiple times. Thanks a lot for your help! Quick question tho, I am not sure whether the issue is with the installation or not, but somehow when I analyze the hepmc output from herwig with RIVET, it fails to analyse all the events. For example, for a hepmc file storing 500k events, the analysis breaks down at 200k-250k with this error:
ERROR:: ReaderAsciiHepMC2:
HEPMC3_ERROR parsing
ERROR ::ReaderAsciiHepMC2:
particle
information
event parsing failed. Returning empty event
DEBUG (1):: Parsing
failed
at line:
P 11169 22 88542893916947543e-02 -2.6
On the other hand, when I run the same code with the same setup on my Ubuntu system, it analyzes all the 500k events without any issue. Can you give me some insight regarding what could be causing this?
Again thanks for your help, Dharmender
I notice your message mentions both HepMC2 and HepMC3, so it might be caused by a conflict in output formats. This is about using the package though, so you might get better support from the package developers.
Thank you for your quick response. I will try to configure both Herwig and rivet with the same hepmc version and check if that works. Thank you for the tip,
Thanking you, Dharmender
On Fri, Oct 20, 2023 at 11:37 AM David C Hall @.***> wrote:
I notice your message mentions both HepMC2 and HepMC3, so it might be caused by a conflict in output formats. This is about using the package though, so you might get better support from the package developers.
— Reply to this email directly, view it on GitHub https://github.com/davidchall/homebrew-hep/issues/322#issuecomment-1772137329, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2WQANO7K62JPBDIMZC2K5LYAIIKPAVCNFSM6AAAAAAY4AYSICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZSGEZTOMZSHE . You are receiving this because you were mentioned.Message ID: @.***>
Verification
brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
First of all, thanks a lot for this extension of brew. I just switched from Linux to Mac and was struggling with compilation of sherpa to set complier environment. I successfully installed sherpa with 'brew install sherpa' and trying to obtain a .hepmc file for an example of v+jet events. I also tried installing Herwig, but it was unsuccessful for me.
What happened (include all command output)?
During the Herwig installation, I believe THEPEG was configured properly but during herwig configuration the execution stops with this error: "Error: Failure while executing;
patch -g 0 -f -p1
exited with 1. Here's the output: patching file 'src/defaults/decayers.in.in' 1 out of 1 hunks failed--saving rejects to 'src/defaults/decayers.in.in.rej'"In Sherpa, the installation was successful and the calculations starts normally, but it fails to load the library 'libSherpaHepMCOutput.dylib' and throws missing module.
What did you expect to happen?
Since, there was no error during Sherpa installation, the hempc output should've been produced. I assume in Herwig it is the python3 issue. but I tried with changing shell environment to Python 2.7.18 using pyenv, but the issue was not resolved
Step-by-step reproduction instructions (by running
brew
commands)brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
output