Closed austin-hoover closed 1 month ago
This is still MPI related, correct? Since, I assume, the pyorbit was compiled with MPI.
I'm not sure; I did install with MPI using https://github.com/austin-hoover/pyorbit/commit/356fff2a456737ff5438b79b2e2d797ae4bddb98.
But I'm reproducing this error on a different machine where PyORBIT was not installed with MPI. (On our SNS server, I'm getting Segmentation fault (core dumped)
.)
I have PyORBIT3 on my Ubuntu workstation. I have the same problem even without MPI installed: (.mes) shi@pc0126990:~/SHISHLO/AccPhysics/PyORBIT3$ python Python 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.
from orbit.core.bunch import Bunch bunch = Bunch() del bunch Segmentation fault
PyORBIT2 does not have this error: Python 2.7.6 (default, Mar 11 2024, 10:31:00) [GCC 11.4.0] on linux2 Type "help", "copyright", "credits" or "license" for more information.
from bunch import Bunch bunch = Bunch() del bunch
So this was the test I was checking all things out. https://github.com/PyORBIT-Collaboration/PyORBIT3/blob/main/examples/meson/imports_test.py Can you try to run it and see if it segfaults too?
I tried - no problem: import orbit.core.orbit_mpi import orbit.core.spacecharge import orbit.core.trackerrk4 import orbit.core.teapot_base import orbit.core.linac import orbit.core.orbit_utils import orbit.core.aperture import orbit.core.foil import orbit.core.field_sources import orbit.core.rfcavities import orbit.core.impedances import orbit.core.fieldtracker import orbit.core.collimator import orbit.core.error_base
from orbit.core.bunch import Bunch b = Bunch() print(b) del b
Fixed by #28
test.py
:When I run
python test.py
I getOr when I run
mpirun -n 2 python test.py
I getHowever, the following works fine: