Hi yogi1200,
“Solved it!! XD I wrote down what I did in the next reply”
Thanks for explaining~ I finished the point 5!
but I still got error installing the latest home assistant (0.80.3)
it does have some error message but I cannot figure out how to solve it.
something like these:
Building wheels for collected packages: bcrypt, cryptography
Running setup.py bdist_wheel for bcrypt … error
Exception: Version mismatch: this is the ‘cffi’ package version 1.11.5, located in ‘/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/api.py’. When we import the top-level ‘_cffi_backend’ extension module, we get version 1.11.2, located in ‘/volume1/@appstore/python3/lib/python3.5/site-packages/_cffi_backend.cpython-35m-arm-linux-gnueabi.so’. The two versions should be equal; check your installation.
Failed building wheel for bcrypt
and a lot of other errors…
Do you think you can take a look for me?
Thank you very much~
the full log is down here:
root@tM-Cloud:/volume1/@appstore/python3/bin# ./python3 -m pip install --upgrade homeassistant
Collecting homeassistant
Using cached https://files.pythonhosted.org/packages/c0/d5/1c17e38a185fc2ee95ef17c410760c2766cef09899ace54815d164013f12/homeassistant-0.80.3-py3-none-any.whl
Collecting pip>=8.0.3 (from homeassistant)
Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl
Collecting aiohttp==3.4.4 (from homeassistant)
Requirement already up-to-date: pyyaml<4,>=3.13 in /volume1/@appstore/python3/lib/python3.5/site-packages (from homeassistant)
Collecting voluptuous-serialize==2.0.0 (from homeassistant)
Collecting attrs==18.2.0 (from homeassistant)
Using cached https://files.pythonhosted.org/packages/3a/e1/5f9023cc983f1a628a8c2fd051ad19e76ff7b142a0faf329336f9a62a514/attrs-18.2.0-py2.py3-none-any.whl
Requirement already up-to-date: PyJWT==1.6.4 in /volume1/@appstore/python3/lib/python3.5/site-packages (from homeassistant)
Collecting async-timeout==3.0.0 (from homeassistant)
Using cached https://files.pythonhosted.org/packages/96/0f/e6357458c87fb4ed8f3df215773f3caad40968f10e05552cbd8bd28415e4/async_timeout-3.0.0-py3-none-any.whl
Requirement already up-to-date: voluptuous==0.11.5 in /volume1/@appstore/python3/lib/python3.5/site-packages (from homeassistant)
Requirement already up-to-date: jinja2>=2.10 in /volume1/@appstore/python3/lib/python3.5/site-packages (from homeassistant)
Collecting bcrypt==3.1.4 (from homeassistant)
Using cached https://files.pythonhosted.org/packages/f3/ec/bb6b384b5134fd881b91b6aa3a88ccddaad0103857760711a5ab8c799358/bcrypt-3.1.4.tar.gz
Collecting cryptography==2.3.1 (from homeassistant)
Using cached https://files.pythonhosted.org/packages/22/21/233e38f74188db94e8451ef6385754a98f3cad9b59bedf3a8e8b14988be4/cryptography-2.3.1.tar.gz
Requirement already up-to-date: certifi>=2018.04.16 in /volume1/@appstore/python3/lib/python3.5/site-packages (from homeassistant)
Collecting requests==2.19.1 (from homeassistant)
Using cached https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl
Collecting astral==1.6.1 (from homeassistant)
Using cached https://files.pythonhosted.org/packages/01/2b/0b60f1cef7d2a7a863cd06bae5fc7e3553803739c4834e921b4996920f76/astral-1.6.1-py2.py3-none-any.whl
Requirement already up-to-date: pytz>=2018.04 in /volume1/@appstore/python3/lib/python3.5/site-packages (from homeassistant)
Requirement already up-to-date: multidict<5.0,>=4.0 in /volume1/@appstore/python3/lib/python3.5/site-packages (from aiohttp==3.4.4->homeassistant)
Requirement already up-to-date: idna-ssl>=1.0; python_version < "3.7" in /volume1/@appstore/python3/lib/python3.5/site-packages (from aiohttp==3.4.4->homeassistant)
Collecting yarl<2.0,>=1.0 (from aiohttp==3.4.4->homeassistant)
Requirement already up-to-date: chardet<4.0,>=2.0 in /volume1/@appstore/python3/lib/python3.5/site-packages (from aiohttp==3.4.4->homeassistant)
Collecting MarkupSafe>=0.23 (from jinja2>=2.10->homeassistant)
Requirement already up-to-date: cffi>=1.1 in /volume1/@appstore/python3/lib/python3.5/site-packages (from bcrypt==3.1.4->homeassistant)
Requirement already up-to-date: six>=1.4.1 in /volume1/@appstore/python3/lib/python3.5/site-packages (from bcrypt==3.1.4->homeassistant)
Collecting idna>=2.1 (from cryptography==2.3.1->homeassistant)
Using cached https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl
Collecting asn1crypto>=0.21.0 (from cryptography==2.3.1->homeassistant)
Using cached https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl
Collecting urllib3<1.24,>=1.21.1 (from requests==2.19.1->homeassistant)
Using cached https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl
Collecting pycparser (from cffi>=1.1->bcrypt==3.1.4->homeassistant)
Building wheels for collected packages: bcrypt, cryptography
Running setup.py bdist_wheel for bcrypt ... error
Complete output from command /volume1/@appstore/python3/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ppqn68jb/bcrypt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmphhr1esx8pip-wheel- --python-tag cp35:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ppqn68jb/bcrypt/setup.py", line 238, in <module>
**keywords_with_side_effects(sys.argv)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/volume1/@appstore/python3/lib/python3.5/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/setuptools/dist.py", line 334, in __init__
_Distribution.__init__(self, attrs)
File "/volume1/@appstore/python3/lib/python3.5/distutils/dist.py", line 281, in __init__
self.finalize_options()
File "/volume1/@appstore/python3/lib/python3.5/site-packages/setuptools/dist.py", line 468, in finalize_options
ep.load()(self, ep.name, value)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 204, in cffi_modules
add_cffi_module(dist, cffi_module)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 49, in add_cffi_module
execfile(build_file_name, mod_vars)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 25, in execfile
exec(code, glob, glob)
File "src/build_bcrypt.py", line 21, in <module>
ffi = FFI()
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/api.py", line 54, in __init__
backend.__version__, backend.__file__))
Exception: Version mismatch: this is the 'cffi' package version 1.11.5, located in '/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/api.py'. When we import the top-level '_cffi_backend' extension module, we get version 1.11.2, located in '/volume1/@appstore/python3/lib/python3.5/site-packages/_cffi_backend.cpython-35m-arm-linux-gnueabi.so'. The two versions should be equal; check your installation.
----------------------------------------
Failed building wheel for bcrypt
Running setup.py clean for bcrypt
Complete output from command /volume1/@appstore/python3/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ppqn68jb/bcrypt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" clean --all:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ppqn68jb/bcrypt/setup.py", line 238, in <module>
**keywords_with_side_effects(sys.argv)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/volume1/@appstore/python3/lib/python3.5/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/setuptools/dist.py", line 334, in __init__
_Distribution.__init__(self, attrs)
File "/volume1/@appstore/python3/lib/python3.5/distutils/dist.py", line 281, in __init__
self.finalize_options()
File "/volume1/@appstore/python3/lib/python3.5/site-packages/setuptools/dist.py", line 468, in finalize_options
ep.load()(self, ep.name, value)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 204, in cffi_modules
add_cffi_module(dist, cffi_module)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 49, in add_cffi_module
execfile(build_file_name, mod_vars)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 25, in execfile
exec(code, glob, glob)
File "src/build_bcrypt.py", line 21, in <module>
ffi = FFI()
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/api.py", line 54, in __init__
backend.__version__, backend.__file__))
Exception: Version mismatch: this is the 'cffi' package version 1.11.5, located in '/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/api.py'. When we import the top-level '_cffi_backend' extension module, we get version 1.11.2, located in '/volume1/@appstore/python3/lib/python3.5/site-packages/_cffi_backend.cpython-35m-arm-linux-gnueabi.so'. The two versions should be equal; check your installation.
----------------------------------------
Failed cleaning build dir for bcrypt
Running setup.py bdist_wheel for cryptography ... error
Complete output from command /volume1/@appstore/python3/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ppqn68jb/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp056sx2owpip-wheel- --python-tag cp35:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ppqn68jb/cryptography/setup.py", line 318, in <module>
**keywords_with_side_effects(sys.argv)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/volume1/@appstore/python3/lib/python3.5/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/setuptools/dist.py", line 334, in __init__
_Distribution.__init__(self, attrs)
File "/volume1/@appstore/python3/lib/python3.5/distutils/dist.py", line 281, in __init__
self.finalize_options()
File "/volume1/@appstore/python3/lib/python3.5/site-packages/setuptools/dist.py", line 468, in finalize_options
ep.load()(self, ep.name, value)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 204, in cffi_modules
add_cffi_module(dist, cffi_module)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 49, in add_cffi_module
execfile(build_file_name, mod_vars)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 25, in execfile
exec(code, glob, glob)
File "src/_cffi_src/build_openssl.py", line 106, in <module>
extra_link_args=extra_link_args(compiler_type()),
File "/tmp/pip-build-ppqn68jb/cryptography/src/_cffi_src/utils.py", line 49, in build_ffi_for_binding
extra_link_args=extra_link_args,
File "/tmp/pip-build-ppqn68jb/cryptography/src/_cffi_src/utils.py", line 57, in build_ffi
ffi = FFI()
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/api.py", line 54, in __init__
backend.__version__, backend.__file__))
Exception: Version mismatch: this is the 'cffi' package version 1.11.5, located in '/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/api.py'. When we import the top-level '_cffi_backend' extension module, we get version 1.11.2, located in '/volume1/@appstore/python3/lib/python3.5/site-packages/_cffi_backend.cpython-35m-arm-linux-gnueabi.so'. The two versions should be equal; check your installation.
----------------------------------------
Failed building wheel for cryptography
Running setup.py clean for cryptography
Complete output from command /volume1/@appstore/python3/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ppqn68jb/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" clean --all:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ppqn68jb/cryptography/setup.py", line 318, in <module>
**keywords_with_side_effects(sys.argv)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/volume1/@appstore/python3/lib/python3.5/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/setuptools/dist.py", line 334, in __init__
_Distribution.__init__(self, attrs)
File "/volume1/@appstore/python3/lib/python3.5/distutils/dist.py", line 281, in __init__
self.finalize_options()
File "/volume1/@appstore/python3/lib/python3.5/site-packages/setuptools/dist.py", line 468, in finalize_options
ep.load()(self, ep.name, value)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 204, in cffi_modules
add_cffi_module(dist, cffi_module)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 49, in add_cffi_module
execfile(build_file_name, mod_vars)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 25, in execfile
exec(code, glob, glob)
File "src/_cffi_src/build_openssl.py", line 106, in <module>
extra_link_args=extra_link_args(compiler_type()),
File "/tmp/pip-build-ppqn68jb/cryptography/src/_cffi_src/utils.py", line 49, in build_ffi_for_binding
extra_link_args=extra_link_args,
File "/tmp/pip-build-ppqn68jb/cryptography/src/_cffi_src/utils.py", line 57, in build_ffi
ffi = FFI()
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/api.py", line 54, in __init__
backend.__version__, backend.__file__))
Exception: Version mismatch: this is the 'cffi' package version 1.11.5, located in '/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/api.py'. When we import the top-level '_cffi_backend' extension module, we get version 1.11.2, located in '/volume1/@appstore/python3/lib/python3.5/site-packages/_cffi_backend.cpython-35m-arm-linux-gnueabi.so'. The two versions should be equal; check your installation.
----------------------------------------
Failed cleaning build dir for cryptography
Failed to build bcrypt cryptography
Installing collected packages: pip, attrs, async-timeout, idna, yarl, aiohttp, voluptuous-serialize, bcrypt, asn1crypto, cryptography, urllib3, requests, astral, homeassistant, MarkupSafe, pycparser
Found existing installation: pip 8.1.2
Uninstalling pip-8.1.2:
Successfully uninstalled pip-8.1.2
Found existing installation: attrs 17.4.0
Uninstalling attrs-17.4.0:
Successfully uninstalled attrs-17.4.0
Found existing installation: async-timeout 2.0.0
Uninstalling async-timeout-2.0.0:
Successfully uninstalled async-timeout-2.0.0
Found existing installation: idna 2.6
Uninstalling idna-2.6:
Successfully uninstalled idna-2.6
Found existing installation: yarl 1.1.0
Uninstalling yarl-1.1.0:
Successfully uninstalled yarl-1.1.0
Found existing installation: aiohttp 2.3.10
Uninstalling aiohttp-2.3.10:
Successfully uninstalled aiohttp-2.3.10
Found existing installation: bcrypt 3.1.2
Uninstalling bcrypt-3.1.2:
Successfully uninstalled bcrypt-3.1.2
Running setup.py install for bcrypt ... error
Complete output from command /volume1/@appstore/python3/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ppqn68jb/bcrypt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-cidwr6y2-record/install-record.txt --single-version-externally-managed --compile:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ppqn68jb/bcrypt/setup.py", line 238, in <module>
**keywords_with_side_effects(sys.argv)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/volume1/@appstore/python3/lib/python3.5/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/setuptools/dist.py", line 334, in __init__
_Distribution.__init__(self, attrs)
File "/volume1/@appstore/python3/lib/python3.5/distutils/dist.py", line 281, in __init__
self.finalize_options()
File "/volume1/@appstore/python3/lib/python3.5/site-packages/setuptools/dist.py", line 468, in finalize_options
ep.load()(self, ep.name, value)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 204, in cffi_modules
add_cffi_module(dist, cffi_module)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 49, in add_cffi_module
execfile(build_file_name, mod_vars)
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 25, in execfile
exec(code, glob, glob)
File "src/build_bcrypt.py", line 21, in <module>
ffi = FFI()
File "/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/api.py", line 54, in __init__
backend.__version__, backend.__file__))
Exception: Version mismatch: this is the 'cffi' package version 1.11.5, located in '/volume1/@appstore/python3/lib/python3.5/site-packages/cffi/api.py'. When we import the top-level '_cffi_backend' extension module, we get version 1.11.2, located in '/volume1/@appstore/python3/lib/python3.5/site-packages/_cffi_backend.cpython-35m-arm-linux-gnueabi.so'. The two versions should be equal; check your installation.
----------------------------------------
Rolling back uninstall of bcrypt
Command "/volume1/@appstore/python3/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ppqn68jb/bcrypt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-cidwr6y2-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ppqn68jb/bcrypt/