home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.45k stars 30.33k forks source link

Permission denied installing pychromecast/netifaces on Windows 10 #8105

Closed ghost closed 6 years ago

ghost commented 7 years ago

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version): 0.47.0

Python release (python3 --version): Python 3.6.0 :: Continuum Analytics, Inc (Miniconda)

Component/platform: media_player.cast

Description of problem:

4A193D1F, ve=05, md=BRAVIA 4K GB, ic=/setup/icon.png, fn=KD-43X8000D, ca=2053, st=1, bs=FFFFFFFFFFFF, nf=1, rs=YouTube>
INFO:homeassistant.loader:Loaded media_player.cast from homeassistant.components.media_player.cast
INFO:homeassistant.util.package:Attempting install of pychromecast==0.8.1
INFO:homeassistant.components.http:Serving /api/events to 10.1.1.10 (auth: True)
ERROR:homeassistant.util.package:Unable to install package pychromecast==0.8.1: Exception:
Traceback (most recent call last):
  File "c:\users\adam\miniconda3\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "c:\users\adam\miniconda3\lib\site-packages\pip\commands\install.py", line 425, in run
    os.remove(target_item_dir)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\Adam\\AppData\\Roaming\\.homeassistant\\deps\\netifaces.cp36-win_amd64.pyd'
ERROR:homeassistant.setup:Not initializing media_player.cast because could not install dependency pychromecast==0.8.1
ERROR:homeassistant.setup:Unable to prepare setup for platform media_player.cast: Could not install all requirements.
INFO:homeassistant.core:Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up:
* media_player.cast
Please check your config, notification_id=invalid_config, service_call_id=2515003418552-1>
INFO:homeassistant.core:Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up:
* media_player.cast
Please check your config, notification_id=invalid_config, service_call_id=2515003418552-2>
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.invalid_config, old_state=None, new_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:
* media_player.cast

Expected:

Problem-relevant configuration.yaml entries and steps to reproduce:

  1. pip install homeassistant
  2. start home assistant
  3. wait 1-5 minutes for error

Traceback (if applicable):

Additional info:

ghost commented 7 years ago

Strangely, running pip install pychromecast and then restarting hass resolves the error, but it then times out connecting to the device.

ghost commented 7 years ago

Seems to be this error: https://community.home-assistant.io/t/installation-on-64-bit-windows-10/140

Same issue on Python 3.6.1, even running as Administrator!

image

balloobbot commented 7 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:

balloobbot commented 6 years ago

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍