Traceback (most recent call last):


 "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 14, in <module>

import importlib.machinery # importlib first so we can test #15386 via -m


 "/usr/local/Cellar/pipenv/8.3.2_1/libexec/lib/python3.6/importlib/__init__.py", line 57, in <module>

import types


 "/Users/netsu/Projects/csr/csr/ic/types.py", line 1, in <module>

import typing as tp


 "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/typing.py", line 4, in <module>

import contextlib


 "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/contextlib.py", line 6, in <module>

from functools import wraps


 "/usr/local/Cellar/pipenv/8.3.2_1/libexec/lib/python3.6/functools.py", line 22, in <module>

from types import MappingProxyType
ImportError: cannot import name 'MappingProxyType'

: org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 33.0 failed 1 times, most recent failure: Lost task 0.0 in stage 33.0 (TID 77, localhost, executor driver): org.apache.spark.api.python.PythonException: Traceback (most recent call last):


 "/usr/local/spark/python/lib/pyspark.zip/pyspark/worker.py", line 216, in main

func, profiler, deserializer, serializer = read_command(pickleSer, infile)


 "/usr/local/spark/python/lib/pyspark.zip/pyspark/worker.py", line 60, in read_command

command = serializer.loads(command.value)


 "/usr/local/spark/python/lib/pyspark.zip/pyspark/serializers.py", line 562, in loads

return pickle.loads(obj)


 "/tmp/spark-aca404a0-a60e-43d2-a913-acc7ed93a7a0/user
s-59dd8a1c-344e-4b9d-8fb0-e7982aae3d8c/distkeras/utils.py", line 5, in <module>

from keras import backend as K


 "/home/hadoop/anaconda2/lib/python2.7/site-packages/keras/__init__.py", line 7, in <module>

from . import datasets


 "/home/hadoop/anaconda2/lib/python2.7/site-packages/keras/datasets/__init__.py", line 4, in <module>

from . import imdb


 "/home/hadoop/anaconda2/lib/python2.7/site-packages/keras/datasets/imdb.py", line 8, in <module>

from ..preprocessing.sequence import _remove_long_seq


 "/home/hadoop/anaconda2/lib/python2.7/site-packages/keras/preprocessing/__init__.py", line 12, in <module>

from . import image


 "/home/hadoop/anaconda2/lib/python2.7/site-packages/keras/preprocessing/image.py", line 7, in <module>

from keras_preprocessing import image


 "/home/hadoop/anaconda2/lib/python2.7/site-packages/keras_preprocessing/image.py", line 10, in <module>

import scipy.ndimage as ndi


 "/home/hadoop/anaconda2/lib/python2.7/site-packages/scipy/ndimage/__init__.py", line 161, in <module>

from .filters import *


 "/home/hadoop/anaconda2/lib/python2.7/site-packages/scipy/ndimage/filters.py", line 36, in <module>

from . import _ni_support
ImportError: cannot import name _ni_support
