siri10086 发表于 2021-7-11 10:00:32

出错
ERROR: After October 2020 you may experience errors when installing or updating                                                               
packages. This is because pip will change the way that it resolves dependency co                                                               
nflicts.                                                                                                                                       
                                                                                                                                                
We recommend you use --use-feature=2020-resolver to test your packages with the                                                               
new resolver before it becomes the default.                                                                                                   
                                                                                                                                                
tbm-utils 2.6.0 requires attrs<19.4,>=18.2, but you'll have attrs 21.2.0 which i                                                               
s incompatible.                                                                                                                                 
audio-metadata 0.11.1 requires attrs<19.4,>=18.2, but you'll have attrs 21.2.0 w                                                               
hich is incompatible.                                                                                                                           
Successfully installed audio-metadata-0.11.1 bitarray-2.2.1 bitstruct-8.11.1 min                                                               
iaudio-1.44 more-itertools-8.8.0 pendulum-2.1.2 pyatv-0.8.1 pytzdata-2020.1 tbm-                                                               
utils-2.6.0                                                                                                                                    
WARNING: You are using pip version 20.2.4; however, version 21.1.3 is available.                                                               
You should consider upgrading via the '/usr/local/bin/python -m pip install --up                                                               
grade pip' command.                                                                                                                           
/config # pip install --upgrade attrs                                                                                                         
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status                                                               
=None)) after connection broken by 'ProtocolError('Connection aborted.', Connect                                                               
ionResetError(104, 'Connection reset by peer'))': /simple/attrs/                                                                              
Requirement already up-to-date: attrs in /usr/local/lib/python3.8/site-packages                                                               
(21.2.0)                                                                                                                                       
WARNING: You are using pip version 20.2.4; however, version 21.1.3 is available.                                                               
You should consider upgrading via the '/usr/local/bin/python -m pip install --up

查询版本是这样的
/config # pip list | grep pyatv                                                
pyatv                            0.8.1                                          
WARNING: You are using pip version 20.2.4; however, version 21.1.3 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --up
grade pip' command.                                                            

involute 发表于 2021-7-11 10:17:32

siri10086 发表于 2021-7-11 10:00
出错
ERROR: After October 2020 you may experience errors when installing or updating               ...

你这不算出错,可以直接配置集成了。

siri10086 发表于 2021-7-11 11:29:48

论坛有问题不能直接底下回复,可能我网络问题
好的谢谢,那下面这个提示不升级会有影响吗?
WARNING: You are using pip version 20.2.4; however, version 21.1.3 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --up
grade pip' command.

下面这段执行就会显示上面的错误
pip install --upgrade attrs

involute 发表于 2021-7-11 11:34:41

本帖最后由 involute 于 2021-7-11 11:35 编辑

siri10086 发表于 2021-7-11 11:29
论坛有问题不能直接底下回复,可能我网络问题
好的谢谢,那下面这个提示不升级会有影响吗?
WARNING: You a ...
没事,这是提示你的pip版本低,但你要真升级了pip,Home Assistant就不干了。
pip install --upgrade attrs最好还是要执行,因为这是Home Assistant本体要求的版本

siri10086 发表于 2021-7-11 11:40:13

好的这样就可以了吧
/config # pip install --upgrade attrs                                          
Requirement already up-to-date: attrs in /usr/local/lib/python3.8/site-packages
(21.2.0)                                                                        
WARNING: You are using pip version 20.2.4; however, version 21.1.3 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --up
grade pip' command.                                                            

yinghu183 发表于 2021-7-11 13:43:38

yinghu183 发表于 2021-7-11 00:49
又重装了一边,版本已经是0.8.1了,集成尝试了一下提示无法加载配置,太晚了明天再搞了。大佬幸苦,感谢 ...

今天又试了集成里安装,提示无法加载配置向导,错误日志如下:
`Logger: homeassistant.config_entries
Source: config_entries.py:698
First occurred: 24:51:45 (1 occurrences)
Last logged: 24:51:45`

`Error occurred loading configuration flow for integration apple_airplayer: No module named 'homeassistent'`
感谢!

siri10086 发表于 2021-7-11 14:14:41

你好,请教下 node-red里面怎么调用,直接实例发送 msg.payload ="语音内容" ?

involute 发表于 2021-7-11 14:59:28

yinghu183 发表于 2021-7-11 13:43
今天又试了集成里安装,提示无法加载配置向导,错误日志如下:

感谢! ...

你下的这个包里有个命名错误,你重新下一下压缩包就好了。

其实推荐用HACS,这样能及时收到更新。

yinghu183 发表于 2021-7-11 15:37:57

大佬,从下了0.04压缩包,报错更多了
此错误来自自定义集成。

Logger: aiohttp.server
Source: custom_components/apple_airplayer/device_manager.py:9
Integration: Apple AirPlayer (documentation, issues)
First occurred: 15:35:59 (1 occurrences)
Last logged: 15:35:59

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 77, in forwarded_middleware
    return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 24, in request_context_middleware
    return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware
    return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 144, in auth_middleware
    return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 135, in handle
    result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 128, in post
    return await super().post(request)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 63, in wrapper
    result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 72, in post
    result = await self._flow_mgr.async_init(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 153, in async_init
    flow, result = await task
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 171, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 696, in async_create_flow
    integration.get_platform("config_flow")
File "/usr/src/homeassistant/homeassistant/loader.py", line 498, in get_platform
    cache = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 503, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name, package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 855, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/config/custom_components/apple_airplayer/config_flow.py", line 5, in <module>
    from .device_manager import DeviceManager
File "/config/custom_components/apple_airplayer/device_manager.py", line 9, in <module>
    DeviceModel.AirPortExpress: "AirPort Express",
File "/usr/local/lib/python3.9/enum.py", line 405, in __getattr__
    raise AttributeError(name) from None
AttributeError: AirPortExpress

involute 发表于 2021-7-11 16:50:43

yinghu183 发表于 2021-7-11 15:37
大佬,从下了0.04压缩包,报错更多了

你这个可奇怪了,你这是2021.7.1吧,我试过可以的啊

这样,你在宿主机上运行
pip list | grep -E 'pyatv|attrs'

看看pyatv是不是0.8.1, attrs是不是21.2.0
页: 1 2 [3] 4 5 6 7 8 9 10 11 12
查看完整版本: 让你的HomePod可以TTS?没有那么多麻烦