Home Assistant release with the issue:
0.102.0
Last working Home Assistant release (if known):
-
Operating environment (Hass.io/Docker/Windows/etc.):
Lubuntu 18.04.3
Lubuntu 19.10
Integration:
core
Description of problem:
wheel not in venv.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
-
Traceback (if applicable):
Building wheels for collected packages: python-slugify, voluptuous-serialize, voluptuous, contextvars, idna-ssl, pycparser
Running setup.py bdist_wheel for python-slugify ... error
Complete output from command /home/daniel/home-assistant/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a_lkf3p7/python-slugify/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmplqkijfqlpip-wheel- --python-tag cp36:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for python-slugify
Running setup.py clean for python-slugify
Running setup.py bdist_wheel for voluptuous-serialize ... error
Complete output from command /home/daniel/home-assistant/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a_lkf3p7/voluptuous-serialize/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp083jdzwipip-wheel- --python-tag cp36:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for voluptuous-serialize
Running setup.py clean for voluptuous-serialize
Running setup.py bdist_wheel for voluptuous ... error
Complete output from command /home/daniel/home-assistant/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a_lkf3p7/voluptuous/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpu_gpg66lpip-wheel- --python-tag cp36:
/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for voluptuous
Running setup.py clean for voluptuous
Running setup.py bdist_wheel for contextvars ... error
Complete output from command /home/daniel/home-assistant/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a_lkf3p7/contextvars/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpbk4f7b93pip-wheel- --python-tag cp36:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for contextvars
Running setup.py clean for contextvars
Running setup.py bdist_wheel for idna-ssl ... error
Complete output from command /home/daniel/home-assistant/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a_lkf3p7/idna-ssl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpf3q71pn2pip-wheel- --python-tag cp36:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for idna-ssl
Running setup.py clean for idna-ssl
Running setup.py bdist_wheel for pycparser ... error
Complete output from command /home/daniel/home-assistant/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a_lkf3p7/pycparser/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp7f5lp404pip-wheel- --python-tag cp36:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for pycparser
Running setup.py clean for pycparser
Failed to build python-slugify voluptuous-serialize voluptuous contextvars idna-ssl pycparser
Installing collected packages: PyJWT, attrs, idna, multidict, yarl, idna-ssl, chardet, async-timeout, aiohttp, pytz, astral, pycparser, cffi, bcrypt, certifi, cryptography, MarkupSafe, jinja2, text-unidecode, python-slugify, urllib3, requests, ruamel.yaml, voluptuous, voluptuous-serialize, immutables, contextvars, homeassistant
Additional information:
Following the guide https://developers.home-assistant.io/docs/en/development_environment.html for setting up a development environment on a fresh install of Ubuntu give me the above error. This is due to that wheel was not in the virtual environment.
It is installed globally, but is missing in the venv. And needs to be installed before running the setup scripts.
try pip install wheel before running python3 -m pip install --upgrade homeassistant
See also this PR for the documentation.
https://github.com/home-assistant/developers.home-assistant/pull/335
Yes. I solved it my self by installing wheel. But wouldn't it be a good idea to put wheel in the requirements.txt?
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 馃憤
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
how about depending on an acceptable version of wheel then? Wouldn't that work better, and the doc could remain as is?
-> "as was"
Most helpful comment
Yes. I solved it my self by installing wheel. But wouldn't it be a good idea to put wheel in the requirements.txt?