Docker-stacks: No pyspark in jupyter/pyspark-notebook

Created on 15 Feb 2020  路  2Comments  路  Source: jupyter/docker-stacks

What docker image you are using?

jupyter/pyspark-notebook

What complete docker command do you run to launch the container?

docker run -p 8888:8888 jupyter/pyspark-notebook

What steps do you take once the container is running to reproduce the issue?

  1. Visit http://localhost:8888
  2. Start a python3 notebook
  3. type import pyspark

What do you expect to happen?

Import pyspark

What actually happens?

ModuleNotFoundError: No module named 'pyspark'

image

Fix

conda install pyspark works - it seems pyspark is not bundled during docker creation
Thanks

Most helpful comment

Hello,

Sorry it's a bug introduced in a recent the PR #1007 , PYTHONPATH was broken.
It has been fixed in PR #1017 and a test has been added to avoid this in the future.

So you can pull the last version (jupyter/pyspark-notebook:31b807ec9e83) it's fixed.

Sorry for the inconvenience.

All 2 comments

Hello,

Sorry it's a bug introduced in a recent the PR #1007 , PYTHONPATH was broken.
It has been fixed in PR #1017 and a test has been added to avoid this in the future.

So you can pull the last version (jupyter/pyspark-notebook:31b807ec9e83) it's fixed.

Sorry for the inconvenience.

Works, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tarelli picture tarelli  路  4Comments

statiksof picture statiksof  路  4Comments

akhmerov picture akhmerov  路  4Comments

tonywangcn picture tonywangcn  路  4Comments

romainx picture romainx  路  4Comments