Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Error loading server extension sparkmonitor.serverextension #16

Closed
AlJohri opened this issue Apr 25, 2019 · 10 comments
Closed

Error loading server extension sparkmonitor.serverextension #16

AlJohri opened this issue Apr 25, 2019 · 10 comments

Comments

@AlJohri
Copy link

AlJohri commented Apr 25, 2019

My best guess is incompatibility with Tornado 6.

The root cause seems to be: AttributeError: module 'tornado.web' has no attribute 'asynchronous':

$ jupyter serverextension enable --py --sys-prefix sparkmonitor
Enabling: sparkmonitor.serverextension
- Writing config: /opt/anaconda3/etc/jupyter
    - Validating...
Error loading server extension sparkmonitor.serverextension
      X is sparkmonitor.serverextension importable?
$ python
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sparkmonitor.serverextension
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/anaconda3/lib/python3.7/site-packages/sparkmonitor/serverextension.py", line 24, in <module>
    class SparkMonitorHandler(IPythonHandler):
  File "/opt/anaconda3/lib/python3.7/site-packages/sparkmonitor/serverextension.py", line 27, in SparkMonitorHandler
    @tornado.web.asynchronous
AttributeError: module 'tornado.web' has no attribute 'asynchronous'
$ pip freeze | egrep "tornado|jupyter|spark"
jupyter==1.0.0
jupyter-client==5.2.4
jupyter-console==6.0.0
jupyter-core==4.4.0
jupyterlab==0.35.4
jupyterlab-server==0.2.0
sparkmonitor==0.0.9
tornado==6.0.2
@AlJohri
Copy link
Author

AlJohri commented Apr 25, 2019

related mozilla/jupyter-spark#52 (comment)

@IMAM9AIS
Copy link

I am running into a similar issue. Is their any immediate fix for this ?

@jahstreet
Copy link

Stucked with the same thing, are there any updates?

@krishnan-r
Copy link
Owner

I have fixed this in the master branch, will upload a new version to pypi with more changes soon.

@AlJohri
Copy link
Author

AlJohri commented Jul 1, 2019

Thanks @krishnan-r!

@AlJohri
Copy link
Author

AlJohri commented Jul 3, 2019

@krishnan-r can you cut a release?

using pip install 'git+https://github.com/krishnan-r/sparkmonitor.git#egg=sparkmonitor&subdirectory=extension' for now

EDIT: that didn't work- it can't find the static folder

@Ben-Epstein
Copy link

@AlJohri I packaged it up and deployed it here if you'd like to use it: https://pypi.org/project/sparkmonitor-s/0.0.11/
:)

@vivekpayasi
Copy link

@Ben-Epstein Do we need to follow the installation instructions just like before or are there any changes in the commands?

@vivekpayasi
Copy link

It fixed the error. Thanks a lot @Ben-Epstein :)

@Ben-Epstein
Copy link

Ben-Epstein commented Oct 11, 2019

@vivekpayasi No changes required. Just run pip install spark-monitor-s==0.0.11 and use the same instructions as the original.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants