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
Copy file name to clipboardExpand all lines: modules/Workflow/whale/main.py
+16-8Lines changed: 16 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -69,25 +69,33 @@
69
69
fromcopyimportdeepcopy
70
70
fromdatetimeimportdatetime
71
71
frompathlibimportPath, PurePath
72
-
importpkg_resources
72
+
importplatform
73
73
74
74
# check python
75
75
76
76
python_path=sys.executable
77
77
a=platform.uname()
78
+
78
79
ifa.system=="Darwin"and (nota.machine=='x86_64'):
79
80
raiseValueError(f"Python version mismatch. Please update the python following the installation instruction. Current python {python_path} is based on machine={a.machine}, but we need the one for x86_64")
raiseValueError(f"Essential python package (nheri-simcenter) is not installed. Please go to file-preference and press reset to initialize the python path.")
f"Essential Python package ({required_pkg}) is not installed. "
90
+
"Please go to File → Preferences and press Reset to initialize the Python path."
91
+
)
87
92
else:
88
-
raiseValueError(f"Essential python package (nheri-simcenter) is not installed. Please follow the installation instruction or run: {python_path} -m pip3 install nheri-simcenter")
89
-
exit(-2)
90
-
93
+
python_path=sys.executable
94
+
raiseValueError(
95
+
f"Essential Python package ({required_pkg}) is not installed. "
96
+
f"Please follow the installation instructions or run:\n\n"
0 commit comments