Skip to content

Commit 1a3a2bb

Browse files
committed
[RMS] Added extra debugging info
1 parent c30867e commit 1a3a2bb

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

install_rms.sh

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,27 @@ fi
149149
julia_status=$?
150150
if [ $julia_status -ne 0 ]; then
151151
echo "RMS installation failed!"
152-
exit $status
152+
exit $julia_status
153153
fi
154154

155155
echo "Checking if ReactionMechanismSimulator is installed in the current conda environment for Python usage..."
156-
python -c "from juliacall import Main; import sys; sys.exit(0 if Main.seval('Base.identify_package(\"ReactionMechanismSimulator\") !== nothing') and print('ReactionMechanismSimulator is installed in $current_env') is None else 1)"
156+
157+
python << EOF
158+
import sys
159+
try:
160+
from juliacall import Main
161+
Main.seval('println("Active Julia environemnt: ", Base.active_project())')
162+
Main.seval('println("Julia load path: ", Base.load_path())')
163+
RMS_Pkg = Main.seval('Base.identify_package("ReactionMechanismSimulator")')
164+
print("Package identify result: ", RMS_Pkg)
165+
if RMS_Pkg is Main.nothing:
166+
print("❌ ReactionMechanismSimulator is NOT installed correctly.")
167+
sys.exit(1)
168+
else:
169+
print("✅ ReactionMechanismSimulator is succesfully installed!")
170+
sys.exit(0)
171+
except Exception as e:
172+
print("❌ Error while checking ReactionMechanismSimulator installation:")
173+
print(e)
174+
sys.exit(1)
175+
EOF

0 commit comments

Comments
 (0)