PySpark SparkSession fails to initialize in marimo - NoneType error on getOrCreate() #6173
Answered
by
tvanderv92
tvanderv92
asked this question in
Q&A
|
Hey folks, I'm trying to get PySpark working in Marimo inside a Docker container (replaced Jupyter with Marimo in https://github.com/tvanderv92/docker-spark-iceberg). Running into a frustrating issue where SparkSession.builder.getOrCreate() throws: Works Fails Tried setting SPARK_HOME, various master URLs, removing SPARK_REMOTE - no luck. Has anyone gotten PySpark working in Marimo (local spark inside a container)? |
Answered by
tvanderv92
Sep 5, 2025
Replies: 1 comment 1 reply
|
Does this work in non-container envs? That codepath, does it point to anything? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

@Light2Dark, resolved it by including spark connect with an environment variable and exposing it's port, and a minor change in the entrypoint shell script. seems to be working now.