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.

Remove deprecated video and audio providers: pygst, pyglet and pygi

See original GitHub issue

hello! I run a demo named Camera Example in kivy website and get error —No module named ‘pygst’. the link of demo is https://kivy.org/docs/examples/gen__camera__main__py.html. my OS is ubuntu15.04 and i use python3. the detailed error is following:

zz@zz-Aspire-E1-471G:~/data/code/kivy_practice/camera$ python3 test.py [INFO   ] [Logger      ] Record log in /home/zz/.kivy/logs/kivy_16-04-26_47.txt
[INFO   ] [Kivy        ] v1.9.1
[INFO   ] [Python      ] v3.4.3 (default, Mar 26 2015, 22:03:40) 
[GCC 4.9.2]
[INFO   ] [Factory     ] 179 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [OSC         ] using <multiprocessing> for socket
[INFO   ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO   ] [GL          ] OpenGL version <b'3.0 Mesa 10.5.9'>
[INFO   ] [GL          ] OpenGL vendor <b'Intel Open Source Technology Center'>
[INFO   ] [GL          ] OpenGL renderer <b'Mesa DRI Intel(R) Ivybridge Mobile '>
[INFO   ] [GL          ] OpenGL parsed version: 3, 0
[INFO   ] [GL          ] Shading version <b'1.30'>
[INFO   ] [GL          ] Texture max size <8192>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[CRITICAL] [Camera      ] Unable to find any valuable Camera provider at all!
pygst - ImportError: No module named 'pygst'
  File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "/usr/lib/python3/dist-packages/kivy/core/camera/camera_pygst.py", line 15, in <module>
    import pygst

opencv - ImportError: No module named 'cv'
  File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "/usr/lib/python3/dist-packages/kivy/core/camera/camera_opencv.py", line 20, in <module>
    import cv

[INFO   ] [Text        ] Provider: sdl2
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/kivy/lang.py", line 2123, in _apply_rule
     setattr(widget_set, key, value)
   File "kivy/weakproxy.pyx", line 22, in kivy.weakproxy.WeakProxy.__setattr__ (kivy/weakproxy.c:1189)
   File "kivy/properties.pyx", line 408, in kivy.properties.Property.__set__ (kivy/properties.c:4968)
   File "kivy/properties.pyx", line 733, in kivy.properties.ListProperty.set (kivy/properties.c:10856)
   File "kivy/properties.pyx", line 446, in kivy.properties.Property.set (kivy/properties.c:5666)
   File "kivy/properties.pyx", line 501, in kivy.properties.Property.dispatch (kivy/properties.c:6315)
   File "kivy/_event.pyx", line 1224, in kivy._event.EventObservers.dispatch (kivy/_event.c:12786)
   File "kivy/_event.pyx", line 1130, in kivy._event.EventObservers._dispatch (kivy/_event.c:12085)
   File "/usr/lib/python3/dist-packages/kivy/uix/camera.py", line 103, in _on_index
     resolution=self.resolution, stopped=True)
 TypeError: 'NoneType' object is not callable

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "test.py", line 24, in <module>
     TestCamera().run()
   File "/usr/lib/python3/dist-packages/kivy/app.py", line 802, in run
     root = self.build()
   File "test.py", line 22, in build
     return Builder.load_string(kv)
   File "/usr/lib/python3/dist-packages/kivy/lang.py", line 1921, in load_string
     self._apply_rule(widget, parser.root, parser.root)
   File "/usr/lib/python3/dist-packages/kivy/lang.py", line 2130, in _apply_rule
     e), cause=tb)
 kivy.lang.BuilderException: Parser: File "<inline>", line 6:
 ...
       4:    Camera:
       5:        id: camera
 >>    6:        resolution: (640, 480)
       7:        play: False
       8:    ToggleButton:
 ...
 TypeError: 'NoneType' object is not callable
   File "/usr/lib/python3/dist-packages/kivy/lang.py", line 2123, in _apply_rule
     setattr(widget_set, key, value)
   File "kivy/weakproxy.pyx", line 22, in kivy.weakproxy.WeakProxy.__setattr__ (kivy/weakproxy.c:1189)
   File "kivy/properties.pyx", line 408, in kivy.properties.Property.__set__ (kivy/properties.c:4968)
   File "kivy/properties.pyx", line 733, in kivy.properties.ListProperty.set (kivy/properties.c:10856)
   File "kivy/properties.pyx", line 446, in kivy.properties.Property.set (kivy/properties.c:5666)
   File "kivy/properties.pyx", line 501, in kivy.properties.Property.dispatch (kivy/properties.c:6315)
   File "kivy/_event.pyx", line 1224, in kivy._event.EventObservers.dispatch (kivy/_event.c:12786)
   File "kivy/_event.pyx", line 1130, in kivy._event.EventObservers._dispatch (kivy/_event.c:12085)
   File "/usr/lib/python3/dist-packages/kivy/uix/camera.py", line 103, in _on_index
     resolution=self.resolution, stopped=True)


Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

pyglet.media — pyglet v2.0.1
A Source is used to decode arbitrary audio and video files. ... The player provides a Player.delete() method that can be used to...
Read more >
Kivy 1.10.0 released - Google Groups
[#4224] Remove deprecated video and audio providers: pygst, pyglet and pygi. - [#4254] kivy.utils.platform is a string and it's not callable anymore.
Read more >
Changelog — Kivy 2.1.0 documentation
[#4224] Remove deprecated video and audio providers: pygst, pyglet and pygi. [#4254] kivy.utils.platform is a string and it's not callable anymore.
Read more >
Unofficial Windows Binaries for Python Extensio... - CSDN Blog
If downloads fail: reload this page, enable JavaScript, disable download managers, disable proxies, and use Firefox.
Read more >
VPython - OSCHINA - 中文开源技术交流社区
... http://www.pygame.org/news.html Games Pyglet http://www.pyglet.org/ Games ... ipytree - Tree UI element for Jupyter. ipywebrtc - Video/Audio streaming ...
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