- 积分
- 679
- 金钱
- 521
- 威望
- 0
- 贡献
- 0
- HASS币
- 10
高级会员
- 积分
- 679
- 金钱
- 521
- HASS币
- 10
|
发表于 2018-11-7 02:48:09
|
显示全部楼层
您好,想请教一下按照出现这个错误是怎么回事?
2018-11-06 18:46:03 WARNING (MainThread) [custom_components.image_processing] Updating baidu_face_indentify image_processing took longer than the scheduled update interval 0:00:01
2018-11-06 18:46:03 ERROR (Thread-7) [custom_components.image_processing.baidu_face_indentify] 百度人脸识别连接错误
2018-11-06 18:46:03 ERROR (MainThread) [homeassistant.helpers.entity] Update for image_processing.facerec fails
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 221, in async_update_ha_state
await self.async_device_update()
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 347, in async_device_update
await self.async_update()
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/image_processing/__init__.py", line 134, in async_update
await self.async_process_image(image.content)
File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/homeassistant/.homeassistant/custom_components/image_processing/baidu_face_indentify.py", line 455, in process_image
result = json.loads(r.text)
UnboundLocalError: local variable 'r' referenced before assignment |
|