CRPropa / CRPropa3

CRPropa is a public astrophysical simulation framework for propagating extraterrestrial ultra-high energy particles. https://crpropa.github.io/CRPropa3/
https://crpropa.desy.de
GNU General Public License v3.0
68 stars 67 forks source link

CPropa3 installation make tests fail #386

Closed VasundharaShaw closed 2 years ago

VasundharaShaw commented 2 years ago

Hello,

I am trying to install CRPropa3 on MacOs 12.1 (21C52). I used both cmake and CMAKE_PREFIX_PATH=$CRPROPA_DIR cmake -DCMAKE_INSTALL_PREFIX=$CRPROPA_DIR \ -DPYTHON_EXECUTABLE=/usr/local/Cellar/python/3.7.4/bin/python3 \ -DPYTHON_LIBRARY=/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7.dylib \ ..

"make" runs without bugs but "make tests" fails.

Any suggestions will be helpful. Thank you.

JulienDoerner commented 2 years ago

Hey @VasundharaShaw,

could you give some more information which tests are failing? Or what is the output of make test?

VasundharaShaw commented 2 years ago

Hi @JulienDoerner Apologies for my delayed response. I have tried re-installing CRPropa3. And these are the tests that failed :

'''

The following tests FAILED: 1 - testCore (Failed) 11 - testInteraction (SEGFAULT) Errors while running CTest Output from these tests are in: /Users/frederikanderssohn/CRPropa3/build/Testing/Temporary/LastTest.log Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely. make: *** [test] Error 8

'''

Also when I try to import crpropa in python3 I get another set of error messages

'''

import crpropa Traceback (most recent call last): File "", line 1, in File "/Users/frederikanderssohn/CRPropa3/build/crpropa.py", line 15, in from _crpropa import * ImportError: dynamic module does not define module export function (PyInit__crpropa)

''' It seems that python3 cannot find crpropa.

JulienDoerner commented 2 years ago

hey @VasundharaShaw,

could you check the output of the mentioned file

/Users/frederikanderssohn/CRPropa3/build/Testing/Temporary/LastTest.log

and post it here.

So that python can find crpropa it is neccessary to run first make install. Please try to run it and check if the errors of make test still exist.

VasundharaShaw commented 2 years ago

LastTest.log

Hi @JulienDoerner

I have uploaded the Log file. And i did run make install afterwards make test. But the tests still fail. Its also in the log file.

Please let me know if this is the file you were asking.

JulienDoerner commented 2 years ago

Hi @VasundharaShaw,

thanks for the log file. This is what I meant. I will have a look in it later on.

lukasmerten commented 2 years ago

@VasundharaShaw: I'll close this issue due to inactivity. Please reopen it in case the problem persists.