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

 找回密码
 立即注册
查看: 5472|回复: 2

[已解决] HA升级0.49.1版本报错

[复制链接]

1

主题

7

帖子

65

积分

论坛积极会员

积分
65
金钱
58
HASS币
0
发表于 2017-7-27 17:13:57 | 显示全部楼层 |阅读模式
本帖最后由 stars7 于 2017-7-28 10:19 编辑

树莓派3b安装ha,hb都正常。今天发现有更新,按照官网指引手动输入命令pip3 install --upgrade homeassistant进行更新。最后报错,好像是权限问题,使用的用户是pi。求大神分析!


Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 295, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/lib/python3/dist-packages/pip/req.py", line 1436, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/pip/req.py", line 672, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "/usr/lib/python3/dist-packages/pip/req.py", line 902, in move_wheel_files
    pycompile=self.pycompile,
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 214, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 204, in clobber
    os.makedirs(destdir)
  File "/usr/lib/python3.4/os.py", line 237, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.4/dist-packages/homeassistant-0.49.1.dist-info'

Storing debug log for failure in /home/pi/.pip/pip.log


pip.log日志中的报错为
Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 295, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/lib/python3/dist-packages/pip/req.py", line 1436, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/pip/req.py", line 672, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "/usr/lib/python3/dist-packages/pip/req.py", line 902, in move_wheel_files
    pycompile=self.pycompile,
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 214, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 204, in clobber
    os.makedirs(destdir)
  File "/usr/lib/python3.4/os.py", line 237, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.4/dist-packages/homeassistant-0.49.1.dist-info'


已解决。。。确实是权限问题,前面忘记加sudo。。



回复

使用道具 举报

27

主题

1307

帖子

5947

积分

元老级技术达人

积分
5947
金钱
4615
HASS币
100
发表于 2017-7-27 17:45:09 | 显示全部楼层
难道不是权限问题?   升级命令前面加上 sudo啊
回复

使用道具 举报

11

主题

337

帖子

1390

积分

金牌会员

iLee

Rank: 6Rank: 6

积分
1390
金钱
1052
HASS币
0
发表于 2017-7-28 09:19:44 | 显示全部楼层
亲加 sudo pip3 install --upgrade homeassistant
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-23 06:52 , Processed in 0.047806 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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