question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: Failed building wheel for rez

See original GitHub issue

When install rez with command sudo python ./install.py, it always shows error:

  ERROR: Command errored out with exit status 1:
   command: /opt/rez/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-p7yh9q_z/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-p7yh9q_z/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-5d8m850i
       cwd: /tmp/pip-req-build-p7yh9q_z/
  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 rez

Already installed pip and venv

sudo apt install python3-pip
sudo apt install python3.8-venv

Current wheel version is:

wheel                  0.34.2

Environment

  • OS ( wsl2 Ubuntu-20.04 )
  • Rez version ( master )
  • Rez python version ( Python 3.8.10 )

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ZhongLingXiaocommented, Jun 10, 2022

Hi @JeanChristopheMorinPerso

After install wsl2(Ubuntu-20.04), it pre-installed python3.8 without venvand wheel. Before, I used pip install wheel command to install wheel

And as you mentioned above, pip install may overwrite apt’s wheel. So this time I only use these 2 command to setup basic env for rez: sudo apt install python3.8-venv sudo apt install python-wheel-common

Still have the same issue.

0reactions
TxRxFxcommented, Oct 4, 2022

I had same issue as @ZhongLingXiao on my clean Ubuntu 20.04 deployment. I also followed advice given and had no success.

If you look in the below location in checked out code base you’ll see three .whl files. /$parentDir/build_utils/virtualenv/virtualenv_support ($parentDir is your local location of the codebase you pulled from git )

I used the below command-lines to explicitly install the versions of setup tools and wheel.

pip install /$parentDir/build_utils/virtualenv/virtualenv_support/setuptools-41.0.1-py2.py3-none-any.whl

pip install /$parentDir/build_utils/virtualenv/virtualenv_support/wheel-0.33.4-py2.py3-none-any.whl I did not use pip3 nor installed the pip .whl file in that folder

I then was able to run install.py script as instructed and it installed. I’m now continuing on with this install and seems to work as expected when compared to Centos.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the meaning of "Failed building wheel for X" in pip ...
If the package is not a wheel, pip tries to build a wheel for it (via setup.py bdist_wheel ). If that fails for...
Read more >
Failed building wheel for X when using pip install [Solved]
Not having the wheel package installed in the environment. · Having installed packages that clash with the package we are trying to install....
Read more >
Installing qiskit with `pip install qiskit` gives `ERROR
6->qiskit) (2.19) Building wheels for collected packages: qiskit-aer, cvxopt Building wheel for qiskit-aer (setup.py) ... error ERROR: Command ...
Read more >
Errors while instalation Odoo 12 + Ubunty 16.04
ERROR : Failed building wheel for pyldap. Running setup.py clean for pyldap. Building wheel for PyPDF2 (setup.py) ... done
Read more >
discord github webhook error 400
Aug 25, 2020 · That's all logs: ##[error]Post to webhook failed, Error: ... My suggestion is to change the webhook, to Webhooks allow...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found