|
本帖最后由 翻滚吧暖菌 于 2018-1-21 16:47 编辑
C:\Windows\system32>python -m homeassistant --open-ui
Config directory: C:\Users\馒头\AppData\Roaming\.homeassistant
Traceback (most recent call last):
File "D:\Python\Python35\lib\site-packages\homeassistant\__main__.py", line 374, in <module>
sys.exit(main())
File "D:\Python\Python35\lib\site-packages\homeassistant\__main__.py", line 366, in main
exit_code = setup_and_run_hass(config_dir, args)
File "D:\Python\Python35\lib\site-packages\homeassistant\__main__.py", line 272, in setup_and_run_hass
log_rotate_days=args.log_rotate_days, log_file=args.log_file)
File "D:\Python\Python35\lib\site-packages\homeassistant\bootstrap.py", line 182, in from_config_file
config_path, hass, verbose, skip_pip, log_rotate_days, log_file)
File "D:\Python\Python35\lib\asyncio\base_events.py", line 466, in run_until_complete
return future.result()
File "D:\Python\Python35\lib\asyncio\futures.py", line 293, in result
raise self._exception
File "D:\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(None)
File "D:\Python\Python35\lib\site-packages\homeassistant\bootstrap.py", line 203, in async_from_config_file
yield from async_mount_local_lib_path(config_dir, hass.loop)
File "D:\Python\Python35\lib\site-packages\homeassistant\bootstrap.py", line 319, in async_mount_local_lib_path
lib_dir = yield from async_get_user_site(deps_dir, loop=loop)
File "D:\Python\Python35\lib\site-packages\homeassistant\util\package.py", line 103, in async_get_user_site
lib_dir = stdout.decode().strip()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 9: invalid continuation byte
输入python -m homeassistant --open-ui显示代码如上,在代码里面提示到的所有的文件添加默认gbk和utf-8也不行。
已解决,解决方法是取消中文路径!
|
|