-
Notifications
You must be signed in to change notification settings - Fork 3k
[BUG] - ModuleNotFoundError: No module named 'pyspark' #1782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Why are you adding Python at the end of |
use |
Or use: |
I want to use Is such usage out of scope for docker-stacks project? |
Yes, I see that when you run jupyter notebook - there is a startup script which sets pyspark environment variables docker-stacks/pyspark-notebook/Dockerfile Line 57 in c8bbeff
My question is - is it possible to set these variables not only for jupyter notebook but also for regular python? |
|
docker run --rm -it bjornjorgensen/jupyter-spark-master-docker python
Python 3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:35:26) [GCC 10.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyspark
>>> This is a build with spark master brach. You can try add EDIT: @tandav can you try I did add RUN pip install -e ${SPARK_HOME}/python
RUN fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}" To line 58 |
I will add a few details here:
That being said, you should use Please, tell me if this doesn't answer your question and it still doesn't work. |
Thank you, I tried this command, but
and it works. I can import pyspark inside this python without ModuleNotFoundError |
Yes, sorry, you're right, I meant |
What docker image(s) are you using?
pyspark-notebook
OS system and architecture running docker image
Ubuntu22.04 aarch64
What Docker command are you running?
How to Reproduce the problem?
run the command above
Command output
No response
Expected behavior
pyspark should be available without PATH manipulations and startup scripts.
Actual behavior
pyspark is not available in python provided by
jupyter/pyspark-notebook
imageAnything else?
No response
The text was updated successfully, but these errors were encountered: