ipywebrtc icon indicating copy to clipboard operation
ipywebrtc copied to clipboard

Missing ipywidgets Video after `pip install`

Open kmader opened this issue 6 years ago • 3 comments

I tried doing a clean binder setup and pip installing ipywebrtc and get the following error message and see that there is no Video widget in ipywidgets. The setup is running ipywidgets 7.2.1 and the repo/notebook are here: https://github.com/kmader/ivissearch/blob/master/notebooks/SearchDemo.ipynb

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-17-ba437b967460> in <module>()
      2 from skimage.io import imread
      3 mn_model = kapps.MobileNetV2(input_shape = IMG_SIZE, include_top=False)
----> 4 from ipywebrtc import ImageRecorder, CameraStream

/srv/conda/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 

/srv/conda/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'

kmader avatar Oct 04 '18 12:10 kmader

You need ipywidgets 7.4, I guess the version requirements for pypi is not up to date.

(from mobile phone)

On Thu, 4 Oct 2018, 14:44 Kevin Mader, [email protected] wrote:

I tried doing a clean binder setup and pip installing ipywebrtc and get the following error message and see that there is no Video widget in ipywidgets. The setup is running ipywidgets 7.2.1 and the repo/notebook are here: https://github.com/kmader/ivissearch/blob/master/notebooks/SearchDemo.ipynb


ImportError Traceback (most recent call last) in () 2 from skimage.io import imread 3 mn_model = kapps.MobileNetV2(input_shape = IMG_SIZE, include_top=False) ----> 4 from ipywebrtc import ImageRecorder, CameraStream

/srv/conda/lib/python3.6/site-packages/ipywebrtc/init.py in () 3 import ipywidgets as widgets 4 from ._version import version_info, version ----> 5 from .webrtc import * 6 7

/srv/conda/lib/python3.6/site-packages/ipywebrtc/webrtc.py in () 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'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/maartenbreddels/ipywebrtc/issues/31, or mute the thread https://github.com/notifications/unsubscribe-auth/ABryPRfga-S-SWuCOTx63LRN-h9t9ZIeks5uhgLFgaJpZM4XIBxJ .

maartenbreddels avatar Oct 04 '18 16:10 maartenbreddels

thanks, works fine now!

kmader avatar Oct 04 '18 20:10 kmader

FYI the command you need is pip install ipywidgets==7.4

SamyBencherif avatar Jan 13 '19 00:01 SamyBencherif