ImportError: cannot import name TimeViewer

I hope you are all doing well. I could not see any information on this
error. Would you be kind enough to help me and point me in the
right direction. I got the following error, when I ran:
"plot_source_localization_basics.py"

Error: ImportError: cannot import name TimeViewer

I am using Canopy on ubuntu.
I have tried using the package manager on Canopy. That did not work.
I have also tried: pip install pysurfer

Many Many thanks
best regards parham hashemzadeh

Hi it looks like you have a problem with mayavi. Is it installed? You need
this library for the 3d viz.
Denis

Dear Denis
  Thank you very much. I managed to sort it out by doing the following:

python setup.py build
python setup.py install

It now works. Many thanks for your other suggestions as well. I had
mayavi installed and it might have also resolved it.
Many thanks

best regards parham