Open Nithanaroy opened 5 years ago
These libraries are already installed,
installed pykerberos
using conda before pip install sparkmagic
The error comes from import kerberos
, and is because of incompatible version with Python 2.
Try this:
pip install pykerberos==1.1.14
I'm running into the same issue on Mac. Pinning pykerberos
to v1.1.14 seems to fix it, but this seems like it needs to be solved by updating dependencies in setup.py
.
FYI Spark will be dropping Python 2 support soon, and so will Sparkmagic probably. I strongly recommend migrating to Python 3.
I encountered the same problem in Python 3, so this is not a pure Python 2 issue.
Good to know, thanks.
I can't reproduce this on Python 3. Can you @MarkusShepherd :
pip list
.Thanks!
I had similar problem with my Python 3.7 conda environment
Try to run conda install pykerberos
will solve the issue.
@itamarst i having the same issue can you guide me what i can do fix it please and below is the error i get
/opt/anaconda3/envs/jupyter-hub/bin/python: Error while finding module specification for 'sparkmagi c.kernels.pysparkkernel.pysparkkernel' (ModuleNotFoundError: No module named 'sparkmagic') [I 2020-05-27 23:11:32.180 SingleUserNotebookApp restarter:110] KernelRestarter: restarting kernel (1/5), new random ports /opt/anaconda3/envs/jupyter-hub/bin/python: Error while finding module specification for 'sparkmagi c.kernels.pysparkkernel.pysparkkernel' (ModuleNotFoundError: No module named 'sparkmagic') [I 2020-05-27 23:11:35.186 SingleUserNotebookApp restarter:110] KernelRestarter: restarting kernel (2/5), new random ports /opt/anaconda3/envs/jupyter-hub/bin/python: Error while finding module specification for 'sparkmagi c.kernels.pysparkkernel.pysparkkernel' (ModuleNotFoundError: No module named 'sparkmagic') [I 2020-05-27 23:11:38.193 SingleUserNotebookApp restarter:110] KernelRestarter: restarting kernel (3/5), new random ports /opt/anaconda3/envs/jupyter-hub/bin/python: Error while finding module specification for 'sparkmagi c.kernels.pysparkkernel.pysparkkernel' (ModuleNotFoundError: No module named 'sparkmagic') [I 2020-05-27 23:11:41.199 SingleUserNotebookApp restarter:110] KernelRestarter: restarting kernel (4/5), new random ports /opt/anaconda3/envs/jupyter-hub/bin/python: Error while finding module specification for 'sparkmagi c.kernels.pysparkkernel.pysparkkernel' (ModuleNotFoundError: No module named 'sparkmagic') [W 2020-05-27 23:11:44.206 SingleUserNotebookApp restarter:100] KernelRestarter: restart failed [W 2020-05-27 23:11:44.206 SingleUserNotebookApp kernelmanager:135] Kernel 692153f5-7190-41b0-9555- 9945306e47a8 died, removing from map. [W 2020-05-27 23:11:50.228 SingleUserNotebookApp handlers:252] Replacing stale connection: 692153f5 -7190-41b0-9555-9945306e47a8:b618d3511a64404893f37dcdc2b093fc
On creating a new notebook with either Spark or PySpark kernels on a CentOS 7 machine, this error appears and kernel never starts,
I'm not sure if
winkerberos
can be installed on a linux machine though it was mentioned as an optional step in the README.