rat-pac / ratpac-two

Open source edition of RAT-PAC
Other
9 stars 19 forks source link

error: symbol not found in flat namespace '_PyCallable_Check' #124

Open bojohnson5 opened 4 months ago

bojohnson5 commented 4 months ago

This is probably a user error, but any direction would be useful. I've built the code but whenever I try running the acrylic_attenuation test, I get the following error

rat acrylic_attenuation.mac
dyld[67495]: symbol not found in flat namespace '_PyCallable_Check'
[1]    67495 abort      rat acrylic_attenuation.mac

I'm on MacOS and have Geant4 v11.1.3 and ROOT v6.30.04 installed via conda-forge. Any clues as to why I should be getting this error? Thanks!

JamesJieranShen commented 3 months ago

Hello! This sounds like an issue with the conda root install. Do you have root/geant4 installed somewhere else on the system? Does the same error occur when you just run rat without providing a macro, or with any other macros?

I would recommend checking out the ratpac-setup directory as well as our containers if you are having trouble setting up your build with conda. Linking to libraries downloaded from conda to build thinsg can sometimes cause weird issues with your linker.