『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 11094|回复: 1

[求助] Error while setting up vlc platform for media_player

[复制链接]

1

主题

2

帖子

38

积分

新手上路

Rank: 1

积分
38
金钱
36
HASS币
0
发表于 2020-10-31 17:45:00 | 显示全部楼层 |阅读模式
环境:
服务器:VMware创建的虚拟机 Centos7
Docker:19.03.13
HomeAssistant:0.116.4

HomeAssistant部署在Docker上

已经在服务器上安装好了VLC,并且可以正常播放

configuration.yaml配置
media_player: 
  - platform: vlc
    name: VLC播放器



异常信息
ERROR (MainThread) [homeassistant.components.media_player] Error while setting up vlc platform for media_player
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/vlc/media_player.py", line 46, in setup_platform
    [VlcDevice(config.get(CONF_NAME, DEFAULT_NAME), config.get(CONF_ARGUMENTS))]
  File "/usr/src/homeassistant/homeassistant/components/vlc/media_player.py", line 55, in __init__
    self._instance = vlc.Instance(arguments)
  File "/usr/local/lib/python3.8/site-packages/vlc.py", line 1551, in __new__
    return libvlc_new(len(args), args)
  File "/usr/local/lib/python3.8/site-packages/vlc.py", line 3902, in libvlc_new
    _Cfunction('libvlc_new', ((1,), (1,),), class_result(Instance),
  File "/usr/local/lib/python3.8/site-packages/vlc.py", line 246, in _Cfunction
    raise NameError('no function %r' % (name,))
NameError: no function 'libvlc_new'



回复

使用道具 举报

0

主题

7

帖子

83

积分

注册会员

Rank: 2

积分
83
金钱
76
HASS币
0
发表于 2021-3-20 17:03:24 | 显示全部楼层
请问一下,你解决问题了吗?求分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 10:04 , Processed in 0.049458 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表