You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue while following the installation guide for OpenSN. After building the source in debug mode using:
cmake .. -DCMAKE_BUILD_TYPE=Debug
make -j12
in the opensn/build directory, I expected the opensn_console executable to be installed and globally available, eliminating the need to manually import OpenSN modules in Python scripts.
However, when running my Python script, I included a compatibility check:
if "opensn_console" not in globals():
from mpi4py import MPI
sys.path.append("~/ProgramFiles/OpenSN-Py/opensn/")
from pyopensn.mesh import OrthogonalMeshGenerator, PETScGraphPartitioner
Surprisingly, it failed with: ModuleNotFoundError: No module named 'pyopensn.mesh'
I have three questions:
Why isn’t opensn_console recognized as a global variable after installation via CMake/make?
Is opensn_console expected to be a globally accessible symbol in Python, or does it require explicit registration?
Could the pyopensn module path be misconfigured? I confirmed sys.path includes the correct directory (~/ProgramFiles/OpenSN-Py/opensn/).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Dear OpenSN developers,
I encountered an issue while following the installation guide for OpenSN. After building the source in debug mode using:
in the
opensn/builddirectory, I expected the opensn_console executable to be installed and globally available, eliminating the need to manually import OpenSN modules in Python scripts.However, when running my Python script, I included a compatibility check:
Surprisingly, it failed with:
ModuleNotFoundError: No module named 'pyopensn.mesh'I have three questions:
Thank you for your guidance!
Beta Was this translation helpful? Give feedback.
All reactions