Traceback (most recent call last):


 "/usr/lib/spark/python/lib/pyspark.zip/pyspark/sql/context.py", line 433, in read

return DataFrameReader(self)


 "/usr/lib/spark/python/lib/pyspark.zip/pyspark/sql/readwriter.py", line 70, in __init__

self._jreader = spark._ssql_ctx.read()
AttributeError: 'JavaMember' object has no attribute 'read'

Traceback (most recent call last):


 "/usr/bin/pip3", line 9, in <module>

from pip import main


 "/usr/lib/python3/dist-packages/pip/__init__.py", line 13, in <module>

from pip.exceptions import InstallationError, CommandError, PipError


 "/usr/lib/python3/dist-packages/pip/exceptions.py", line 6, in <module>

from pip._vendor.six import iteritems


 "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 75, in <module>

vendored("pkg_resources")


 "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 36, in vendored

__import__(modulename, globals(), locals(), level=0)


 "<frozen importlib._bootstrap>", line 969, in _find_and_load


 "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 664, in _load_unlocked


 "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible


 "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2927, in <module>


 "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2913, in _call_aside


 "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2952, in _initialize_master_working_set


 "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 956, in subscribe


 "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2952, in <lambda>


 "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2515, in activate


 "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2097, in declare_namespace


 "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2047, in _handle_ns


 "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2066, in _rebuild_mod_path
AttributeError: '_NamespacePath' object has no attribute 'sort'
