Closed szczys closed 2 years ago
Does anyone else remember running across this? Should the documents include a fix for it (or perhaps a troubleshooting section)?
I did not encounter that issue so far. However IMO our docs should not include a fix, because if anything, then west
docs should be updated instead (with a following change in our docs if really necessary).
I just removed by ~/zephyrproject folder to test something and upon reinstalling west I was met with this issue once again. Here the full output:
(.venv) mike@krusty ~/Downloads $ pip install west
Collecting west
Using cached west-0.12.0-py3-none-any.whl (84 kB)
Requirement already satisfied: setuptools in /home/mike/zephyrproject/.venv/lib/python3.8/site-packages (from west) (44.0.0)
Collecting colorama
Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting PyYAML>=5.1
Using cached PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (701 kB)
Collecting packaging
Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting pykwalify
Using cached pykwalify-1.8.0-py2.py3-none-any.whl (24 kB)
Collecting pyparsing!=3.0.5,>=2.0.2
Using cached pyparsing-3.0.6-py3-none-any.whl (97 kB)
Collecting python-dateutil>=2.8.0
Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting ruamel.yaml>=0.16.0
Using cached ruamel.yaml-0.17.20-py3-none-any.whl (109 kB)
Collecting docopt>=0.6.2
Using cached docopt-0.6.2.tar.gz (25 kB)
Collecting six>=1.5
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting ruamel.yaml.clib>=0.2.6; platform_python_implementation == "CPython" and python_version < "3.11"
Using cached ruamel.yaml.clib-0.2.6-cp38-cp38-manylinux1_x86_64.whl (570 kB)
Building wheels for collected packages: docopt
Building wheel for docopt (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/mike/zephyrproject/.venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ahoe5umb/docopt/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ahoe5umb/docopt/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/pip-wheel-q7vttraa
cwd: /tmp/pip-install-ahoe5umb/docopt/
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Failed building wheel for docopt
Running setup.py clean for docopt
Failed to build docopt
Installing collected packages: colorama, PyYAML, pyparsing, packaging, six, python-dateutil, ruamel.yaml.clib, ruamel.yaml, docopt, pykwalify, west
Running setup.py install for docopt ... done
Successfully installed PyYAML-6.0 colorama-0.4.4 docopt-0.6.2 packaging-21.3 pykwalify-1.8.0 pyparsing-3.0.6 python-dateutil-2.8.2 ruamel.yaml-0.17.20 ruamel.yaml.clib-0.2.6 six-1.16.0 west-0.12.0
I understand what you're saying @mniestroj, but this a blocker for people trying out Golioth.
I followed the ESP32 quickstart yesterday and had an error when installing west by running
pip install west
:The fix was
pip install wheels
This was found here which is a similar issue when using virtual environment.
There's another issue that suggests this is a problem with the version of pip.
Does anyone else remember running across this? Should the documents include a fix for it (or perhaps a troubleshooting section)?