ENSDFSTATE.dat is not found, Revisited

I’m seeing the dreaded ENSDFSTATE.dat is not found error, but my environment variable is set correctly (see below). Looking for ideas on what could be preventing Geant4 from recognizing the data file when given the correct path.

Relevant environment variables on my system (result of ‘env’ command in zsh):

G4NEUTRONHPDATA=~/Geant4/geant4-v11.0.2-data/G4NDL4.6
G4LEDATA=~/Geant4/geant4-v11.0.2-data/G4EMLOW8.0
G4LEVELGAMMADATA=~/Geant4/geant4-v11.0.2-data/PhotonEvaporation5.7
G4RADIOACTIVEDATA=~/Geant4/geant4-v11.0.2-data/RadioactiveDecay5.6
G4PARTICLEXSDATA=~/Geant4/geant4-v11.0.2-data/G4PARTICLEXS4.0
G4PIIDATA=~/Geant4/geant4-v11.0.2-data/G4PII1.3
G4REALSURFACEDATA=~/Geant4/geant4-v11.0.2-data/RealSurface2.2
G4SAIDXSDATA=~/Geant4/geant4-v11.0.2-data/G4SAIDDATA2.0
G4ABLADATA=~/Geant4/geant4-v11.0.2-data/G4ABLA3.1
G4INCLDATA=~/Geant4/geant4-v11.0.2-data/G4INCL1.0
G4ENSDFSTATEDATA=~/Geant4/geant4-v11.0.2-data/G4ENSDFSTATE2.3

I just tried rebuilding Geant4 and that did not alleviate the error. I also checked my account permissions, and I do have read only permissions on the file. I also tried redownloading the data file and replacing it in the correct location on my machine, which also did not help.

Interestingly, Geant4 was working fine about a month ago, then I came back to it and suddenly got this error. Not sure what could have changed in the meantime to mess it up. This is on MacOS Big Sur.

SOLVED. The environment variables must now use the full explicit path (no ~ for the home directory). Changed my data directory at install to the full path and it works now. It’s weird, because it worked fine with the home shorthand before - must have been a MacOS change.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.