Closed fredrikwe closed 8 years ago
Did you follow this video tutorial?
Sorry, not using windows. I can just guess. Is Python in your PATH? Was the installation of HA successful in the first place?
Win10.0.14267 Clicked to add to PATH HA?? Redid it - same result
HA = Home Assistant ;-)
When I used the Gitup guide install went ok, but I get the same error when trying to open
C:\WINDOWS\system32>hass --open-ui
Unable to find configuration. Creating default one in C:\Users\fredr\AppData\Roaming\.homeassistant
Process Process-1:
Traceback (most recent call last):
File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\multiprocessing\process.py", line 254, in _bootstra
p
self.run()
File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\multiprocessing\process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\homeassistant\__main__.py", line 232,
in setup_and_run_hass
config_file = ensure_config_file(config_dir)
File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\homeassistant\__main__.py", line 58,
in ensure_config_file
config_path = config_util.ensure_config_exists(config_dir)
File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\homeassistant\config.py", line 61, in
ensure_config_exists
config_path = create_default_config(config_dir, detect_location)
File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\homeassistant\config.py", line 73, in
create_default_config
location_info = detect_location and loc_util.detect_location_info()
File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\homeassistant\util\location.py", line
27, in detect_location_info
'https://freegeoip.net/json/', timeout=5).json()
File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\requests\models.py", line 808, in jso
n
return complexjson.loads(self.text, **kwargs)
File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\json\__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\json\decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
This looks like https://freegeoip.net/json/ is not returning the right information. We should probably add some better error handling there. What do you see when you go to https://freegeoip.net/json/ ?
On Wed, Feb 24, 2016 at 11:12 AM, fredrikwe notifications@github.com wrote:
When I used the Gitup guide install went ok, but I get the same error when trying to open
C:\WINDOWS\system32>hass --open-ui Unable to find configuration. Creating default one in C:\Users\fredr\AppData\Roaming.homeassistant Process Process-1: Traceback (most recent call last): File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\multiprocessing\process.py", line 254, in
_bootstra p self.run() File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\multiprocessing\process.py", line 93, in run self.target(self._args, *self._kwargs) File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\homeassistantmain_.py", line 232, in setup_and_run_hass config_file = ensure_config_file(config_dir) File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\homeassistantmain__.py", line 58, in ensure_config_file config_path = config_util.ensure_config_exists(config_dir) File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\homeassistant\config.py", line 61, in ensure_config_exists config_path = create_default_config(config_dir, detect_location) File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\homeassistant\config.py", line 73, in create_default_config location_info = detect_location and loc_util.detect_location_info() File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\homeassistant\util\location.py", line 27, in detect_location_info 'https://freegeoip.net/json/', timeout=5).json() File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\requests\models.py", line 808, in jso n return complexjson.loads(self.text, **kwargs) File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\jsoninit.py", line 319, in loads return _default_decoder.decode(s) File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "c:\users\fredr\appdata\local\programs\python\python35-32\lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
— Reply to this email directly or view it on GitHub https://github.com/balloob/home-assistant/issues/1378#issuecomment-188411258 .
PaulusSchoutsen.nl It's nice to be important but it's more important to be nice.
{"ip":"90.174.4.23","country_code":"ES","country_name":"Spain","region_code":"VC","region_name":"Valencia","city":"Valencia","zip_code":"46001","time_zone":"Europe/Madrid","latitude":39.4698,"longitude":-0.3774,"metro_code":0}
Pls note that I am using a 4G data connection, so the IP may change a lot. My real ZIP is 03730, my city Xabia
On Wed, Feb 24, 2016 at 8:15 PM, Paulus Schoutsen notifications@github.com wrote:
This looks like https://freegeoip.net/json/ is not returning the right information. We should probably add some better error handling there. What do you see when you go to https://freegeoip.net/json/ ?
On Wed, Feb 24, 2016 at 11:12 AM, fredrikwe notifications@github.com wrote:
When I used the Gitup guide install went ok, but I get the same error when trying to open
C:\WINDOWS\system32>hass --open-ui Unable to find configuration. Creating default one in C:\Users\fredr\AppData\Roaming.homeassistant Process Process-1: Traceback (most recent call last): File
"c:\users\fredr\appdata\local\programs\python\python35-32\lib\multiprocessing\process.py", line 254, in
*bootstra p self.run() File
"c:\users\fredr\appdata\local\programs\python\python35-32\lib\multiprocessing\process.py", line 93, in run self.target(self._args, *self._kwargs) File
"c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\homeassistant__main*.py", line 232, in setup_and_run_hass config_file = ensure_config_file(config_dir) File
"c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\homeassistantmain.py", line 58, in ensure_config_file config_path = config_util.ensure_config_exists(config_dir) File
"c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\homeassistant\config.py", line 61, in ensure_config_exists config_path = create_default_config(config_dir, detect_location) File
"c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\homeassistant\config.py", line 73, in create_default_config location_info = detect_location and loc_util.detect_location_info() File
"c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\homeassistant\util\location.py", line 27, in detect_location_info 'https://freegeoip.net/json/', timeout=5).json() File
"c:\users\fredr\appdata\local\programs\python\python35-32\lib\site-packages\requests\models.py", line 808, in jso n return complexjson.loads(self.text, **kwargs) File
"c:\users\fredr\appdata\local\programs\python\python35-32\lib\jsoninit.py", line 319, in loads return _default_decoder.decode(s) File
"c:\users\fredr\appdata\local\programs\python\python35-32\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File
"c:\users\fredr\appdata\local\programs\python\python35-32\lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
— Reply to this email directly or view it on GitHub < https://github.com/balloob/home-assistant/issues/1378#issuecomment-188411258
.
PaulusSchoutsen.nl It's nice to be important but it's more important to be nice.
— Reply to this email directly or view it on GitHub https://github.com/balloob/home-assistant/issues/1378#issuecomment-188412423 .
I'm able to reproduce it if freegeoip.net return Server returned HTTP 503: Try again later
.