Intel® Distribution for Python*
Engage in discussions with community peers related to Python* applications and core computational packages.
424 Discussions

Intelpython3 - raise RuntimeError("The WebAgg backend requires Tornado.")


Hello All,

I finished installing Intel® Parallel Studio XE Cluster Edition for Linux* onto my machine, current OS: Linux Mint 19.2 Tina \n \l

I am unable to execute my python scripts which utilize matplotlib.

when running a script which calls "import matplotlib.pyplot as plt" I receive the following error.

Traceback (most recent call last):
  File "/home/cyrus/intel/intelpython3/lib/python3.6/site-packages/matplotlib/backends/", line 26, in
    import tornado
ModuleNotFoundError: No module named 'tornado'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "", line 2, in <module>
    import matplotlib.pyplot as plt
  File "/home/cyrus/intel/intelpython3/lib/python3.6/site-packages/matplotlib/", line 2355, in <module>
  File "/home/cyrus/intel/intelpython3/lib/python3.6/site-packages/matplotlib/", line 221, in switch_backend
    backend_mod = importlib.import_module(backend_name)
  File "/home/cyrus/intel/intelpython3/lib/python3.6/importlib/", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/home/cyrus/intel/intelpython3/lib/python3.6/site-packages/matplotlib/backends/", line 28, in
    raise RuntimeError("The WebAgg backend requires Tornado.")
RuntimeError: The WebAgg backend requires Tornado.

I have installed Tornado through apt-get install python-tornado but the error still remains.

I am somewhat new to linux so I maybe missing something trival...

Can anyone suggest a way to fix this? 

Thanks in advance.

0 Kudos
1 Reply

Intel distribution for Python does not ship tornado for various reasons. 

You should be able to install tornado from the main channel using "conda install tornado".

Should it not be possible to install Tornado, please change the backend used by matplotlib to one in "matplotlib.rcsetup.all_backends" using

import matplotlib as mpl


0 Kudos