I’m trying to follow Dr. Zzs’ video on how to turn the TTGO Camera into a video doorbell, but I’m running into a few problems. One of them is that when compiling ttgo_camera.yaml, I get this back.
INFO Reading configuration...
INFO Detected timezone 'CST' with UTC offset -6 and daylight savings time from 03/10/19 02:00:00 to 11/03/19 02:00:00
INFO Generating C++ source...
INFO Compiling app...
INFO Running: platformio run -d /config/esphome/ttgocam
Processing ttgocam (platform: [email protected]; framework: arduino; board: esp-wrover-kit)
--------------------------------------------------------------------------------
Error: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/platformio/__main__.py", line 120, in main
cli(None, None, None)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 700, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 680, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 508, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/decorators.py", line 16, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/platformio/commands/run.py", line 107, in cli
result = (envname, ep.process())
File "/usr/local/lib/python2.7/dist-packages/platformio/commands/run.py", line 207, in process
result = self._run()
File "/usr/local/lib/python2.7/dist-packages/platformio/commands/run.py", line 302, in _run
self.verbose)
File "/usr/local/lib/python2.7/dist-packages/platformio/commands/run.py", line 325, in _autoinstall_libdeps
ctx.invoke(cmd_lib_install, libraries=[lib], silent=not verbose)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 508, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/decorators.py", line 26, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/platformio/commands/lib.py", line 103, in lib_install
library, silent=silent, interactive=interactive, force=force)
File "/usr/local/lib/python2.7/dist-packages/platformio/managers/lib.py", line 344, in install
interactive=interactive)
File "/usr/local/lib/python2.7/dist-packages/platformio/managers/lib.py", line 245, in search_lib_id
"/v2/lib/search", dict(query=" ".join(query)), cache_valid="1h")
File "/usr/local/lib/python2.7/dist-packages/platformio/util.py", line 660, in get_api_result
result = _get_api_result(url, params, data)
File "/usr/local/lib/python2.7/dist-packages/platformio/util.py", line 162, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/platformio/util.py", line 623, in _get_api_result
verify=verify_ssl)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 686, in send
r.content
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 828, in content
self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 755, in generate
raise ContentDecodingError(e)
ContentDecodingError: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing: incorrect data check',))
============================================================
An unexpected error occurred. Further steps:
* Verify that you have the latest version of PlatformIO using
`pip install -U platformio` command
* Try to find answer in FAQ Troubleshooting section
https://docs.platformio.org/page/faq.html
* Report this problem to the developers
https://github.com/platformio/platformio-core/issues
============================================================
And when I do ‘pip install platformio’ it says pip is not installed, which is when I remember that hass.io is just Like That.