{"action":"closed","issue":{"url":"https://api.github.com/repos/jupyter/docker-stacks/issues/116","repository_url":"https://api.github.com/repos/jupyter/docker-stacks","labels_url":"https://api.github.com/repos/jupyter/docker-stacks/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/docker-stacks/issues/116/comments","events_url":"https://api.github.com/repos/jupyter/docker-stacks/issues/116/events","html_url":"https://github.com/jupyter/docker-stacks/issues/116","id":131479678,"number":116,"title":"ImportError: cannot import name 'accumulators'","user":{"login":"peterklipfel","id":1581318,"avatar_url":"https://avatars.githubusercontent.com/u/1581318?v=3","gravatar_id":"","url":"https://api.github.com/users/peterklipfel","html_url":"https://github.com/peterklipfel","followers_url":"https://api.github.com/users/peterklipfel/followers","following_url":"https://api.github.com/users/peterklipfel/following{/other_user}","gists_url":"https://api.github.com/users/peterklipfel/gists{/gist_id}","starred_url":"https://api.github.com/users/peterklipfel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterklipfel/subscriptions","organizations_url":"https://api.github.com/users/peterklipfel/orgs","repos_url":"https://api.github.com/users/peterklipfel/repos","events_url":"https://api.github.com/users/peterklipfel/events{/privacy}","received_events_url":"https://api.github.com/users/peterklipfel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jupyter/docker-stacks/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-02-04T21:30:44Z","updated_at":"2016-02-05T02:30:37Z","closed_at":"2016-02-05T02:30:37Z","body":"To reproduce\r\n\r\n    docker pull jupyter/pyspark-notebook\r\n    docker run -d -p 8888:8888 jupyter/pyspark-notebook\r\n\r\ngo to localhost:8888\r\n\r\nrun the following in the first cell\r\n\r\n    import os\r\n    # make sure pyspark tells workers to use python3 not 2 if both are installed\r\n    os.environ['PYSPARK_PYTHON'] = '/usr/bin/python3'\r\n\r\n    import pyspark\r\n    conf = pyspark.SparkConf()\r\n\r\nAnd you should see the following error\r\n\r\n    ---------------------------------------------------------------------------\r\n    ImportError                               Traceback (most recent call last)\r\n    <ipython-input-2-82ad3fe4c1b6> in <module>()\r\n          3 os.environ['PYSPARK_PYTHON'] = '/usr/bin/python3'\r\n          4 \r\n    ----> 5 import pyspark\r\n          6 conf = pyspark.SparkConf()\r\n          7 \r\n\r\n    /usr/local/spark/python/pyspark/__init__.py in <module>()\r\n         39 \r\n         40 from pyspark.conf import SparkConf\r\n    ---> 41 from pyspark.context import SparkContext\r\n         42 from pyspark.rdd import RDD\r\n         43 from pyspark.files import SparkFiles\r\n\r\n    /usr/local/spark/python/pyspark/context.py in <module>()\r\n         26 from tempfile import NamedTemporaryFile\r\n         27 \r\n    ---> 28 from pyspark import accumulators\r\n         29 from pyspark.accumulators import Accumulator\r\n         30 from pyspark.broadcast import Broadcast\r\n\r\n    ImportError: cannot import name 'accumulators'\r\n\r\n_Note_: I have a slight complication in my setup. I don't imagine that it would matter, but if you can't reproduce, maybe this could be a difference? The docker container is running inside a vagrant box. The vagrant box is running dnsmasq. I am connecting to the notebook at mydomain.dev:8888 from osx which is also running dnsmasq.\r\n\r\n\r\n"}}