Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot import "Video" #49

Open
armaneshaghi opened this issue Sep 26, 2018 · 4 comments
Open

cannot import "Video" #49

armaneshaghi opened this issue Sep 26, 2018 · 4 comments

Comments

@armaneshaghi
Copy link

Just immediately after installation I get the following errror on Python 3.6.5:

from niwidgets import NiftiWidget

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-c8f24c578dcb> in <module>()
----> 1 from niwidgets import NiftiWidget

/home/arman/anaconda/envs/development/lib/python3.6/site-packages/niwidgets/__init__.py in <module>()
      8 from .exampledata import exampleatlas, examplezmap, examplet1  # noqa: F401
      9 from .niwidget_volume import NiftiWidget  # noqa: F401
---> 10 from .niwidget_surface import SurfaceWidget  # noqa: F401
     11 from .streamlines import StreamlineWidget  # noqa: F401

/home/arman/anaconda/envs/development/lib/python3.6/site-packages/niwidgets/niwidget_surface.py in <module>()
      6 from xml.parsers.expat import ExpatError
      7 
----> 8 import ipyvolume.pylab as p3
      9 import matplotlib.pyplot as plt
     10 import nibabel as nb

/home/arman/anaconda/envs/development/lib/python3.6/site-packages/ipyvolume/__init__.py in <module>()
      3 
      4 from . import styles
----> 5 from .widgets import *
      6 from .transferfunction import *
      7 from . import examples

/home/arman/anaconda/envs/development/lib/python3.6/site-packages/ipyvolume/widgets.py in <module>()
      8 import logging
      9 import numpy as np
---> 10 from .serialize import array_cube_tile_serialization, array_serialization, array_sequence_serialization,\
     11     color_serialization, image_serialization, texture_serialization
     12 from .transferfunction import *

/home/arman/anaconda/envs/development/lib/python3.6/site-packages/ipyvolume/serialize.py in <module>()
      7 from . import utils
      8 import ipywidgets
----> 9 import ipywebrtc
     10 import numpy as np
     11 import PIL.Image

/home/arman/anaconda/envs/development/lib/python3.6/site-packages/ipywebrtc/__init__.py in <module>()
      3 import ipywidgets as widgets
      4 from ._version import version_info, __version__
----> 5 from .webrtc import *
      6 
      7 

/home/arman/anaconda/envs/development/lib/python3.6/site-packages/ipywebrtc/webrtc.py in <module>()
     10     Bool, Bytes, Dict, Instance, Int, List, TraitError, Unicode, validate
     11 )
---> 12 from ipywidgets import DOMWidget, Image, Video, Audio, register, widget_serialization
     13 from ipython_genutils.py3compat import string_types
     14 import ipywebrtc._version

ImportError: cannot import name 'Video'
@MargaridaMC
Copy link

Having the same issue....

@janfreyberg
Copy link
Contributor

janfreyberg commented Nov 5, 2018 via email

@MargaridaMC
Copy link

Actually, the issue for me was that I didn't have Node.js installed and this is requirement for ipywebrtc apparently. It's working now :)

@psychemedia
Copy link

I also got this error occurs when trying to run this repo in MyBinder.

The issue there was an outdated ipywidgets package, fixed by creating a requirements.txt file with the entry:

ipywidgets>=7.4.0

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

No branches or pull requests

4 participants