Skip to content

Commit 9f71cdb

Browse files
committed
Fix the error 500 for superset with wtforms dg and fix killing superset server on MacOS
1 parent e22ab2a commit 9f71cdb

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎pythonCode/modules/superset/SupersetEnvManager.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"apache-superset==4.1.1",
1111
"flask-cors==5.0.0",
1212
"marshmallow==3.26.1",
13-
"psycopg2-binary==2.9.9"
13+
"psycopg2-binary==2.9.9",
14+
"wtforms==2.3.3", # https://github.com/apache/superset/issues/29289#issuecomment-2341321222
1415
]
1516

1617
class SupersetEnvManager:

‎renderer/components/mainPages/superset/SupersetFrame.jsx‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ const SupersetDashboard = () => {
278278
}
279279
supersetKilled(stderr, stdout)
280280
})
281-
} else {
282-
// Linux or MacOS
281+
} else if (system === "linux") {
282+
// Linux or
283283
exec(`killall superset`, (err, stdout, stderr) => {
284284
if (err) {
285285
console.error(err)
@@ -297,6 +297,16 @@ const SupersetDashboard = () => {
297297
supersetKilled(stderr, stdout)
298298
}
299299
})
300+
} else if (system === "darwin") {
301+
// macOS
302+
exec(`pkill -f superset`, (err, stdout, stderr) => {
303+
if (err) {
304+
console.error(err)
305+
toast.error("Error killing Superset", {autoClose: 5000})
306+
return
307+
}
308+
supersetKilled(stderr, stdout)
309+
})
300310
}
301311
}
302312
const reject = () => {

0 commit comments

Comments
 (0)