question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: cannot import name 'Video'

See original GitHub issue

When I try to import ipyvolume as ipv, this is what I get:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-15-c91028c9b05c> in <module>()
     20 import seaborn as sns
     21 
---> 22 import ipyvolume as ipv
     23 
     24 

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

~/.local/lib/python3.5/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 *

~/.local/lib/python3.5/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

~/.local/lib/python3.5/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 

~/.local/lib/python3.5/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'

Same happens if I type jupyter nbextension enable --py --sys-prefix ipyvolume on terminal. Any advice please?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
maartenbreddelscommented, Sep 18, 2018

Odd, I see:

Requirement already satisfied, skipping upgrade: ipywidgets>=7.4.0 in ./.local/lib/python3.5/site-packages (from ipywebrtc==0.4.1) (7.4.2)

but what you import is not that version, you could check ipywidgets.__file__ to see which it is picking up.

I would advise you not to install with pip --user <name> anymore, avoid the use of PYTHONPATH, mv or rm your ~/.local directory and use ana/mini conda or virtualenv, that will give less of these issues.

0reactions
maartenbreddelscommented, Sep 18, 2018

Great I could help! lets hope other will find this is they have similar issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot import IPython.display.Video · Issue #1525 - GitHub
YouTubeVideo but fails to import IPython.display. ... YouTubeVideo ----> 2 from IPython.display import Video ImportError: cannot import name ...
Read more >
How to Fix : “ImportError: Cannot import name X” in Python?
You can solve the “ ImportError : Cannot import name X” Error by resolving the circular dependencies. You can do that either by...
Read more >
PYTHON : ImportError: Cannot import name X - YouTube
PYTHON : ImportError : Cannot import name X [ Gift : Animated Search Engine : https://www.hows.tech/p/recommended.html ] PYTHON ...
Read more >
PYTHON : ImportError in importing from sklearn - YouTube
PYTHON : ImportError in importing from sklearn: cannot import name ... name check_build Note: The information provided in this video is as ...
Read more >
cannot import name 'file_hash' from 'pooch.utils' - YouTube
How to resolve ImportError : cannot import name 'file_hash' from 'pooch.utils' ... Your browser can't play this video.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found