Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Getting this error in WSL when installing dash: error: invalid command 'bdist_wheel' #1724

Closed
samcentury opened this issue Aug 23, 2021 · 2 comments

Comments

@samcentury
Copy link

(SamVirtual) sam_century@DESKTOP-3UN3GS4:~$ pip install dash
Collecting dash
  Downloading dash-1.21.0.tar.gz (1.1 MB)
     |████████████████████████████████| 1.1 MB 1.1 MB/s
Collecting Flask>=1.0.4
  Downloading Flask-2.0.1-py3-none-any.whl (94 kB)
     |████████████████████████████████| 94 kB 702 kB/s
Collecting dash-core-components==1.17.1
  Downloading dash_core_components-1.17.1.tar.gz (3.7 MB)
     |████████████████████████████████| 3.7 MB 1.4 MB/s
Collecting dash-html-components==1.1.4
  Downloading dash_html_components-1.1.4.tar.gz (83 kB)
     |████████████████████████████████| 83 kB 416 kB/s
Collecting dash-table==4.12.0
  Downloading dash_table-4.12.0.tar.gz (1.8 MB)
     |████████████████████████████████| 1.8 MB 1.0 MB/s
Collecting flask-compress
  Downloading Flask_Compress-1.10.1-py3-none-any.whl (7.9 kB)
Collecting future
  Downloading future-0.18.2.tar.gz (829 kB)
     |████████████████████████████████| 829 kB 996 kB/s
Collecting plotly
  Downloading plotly-5.2.1-py2.py3-none-any.whl (21.8 MB)
     |████████████████████████████████| 21.8 MB 932 kB/s
Collecting itsdangerous>=2.0
  Downloading itsdangerous-2.0.1-py3-none-any.whl (18 kB)
Collecting Werkzeug>=2.0
  Downloading Werkzeug-2.0.1-py3-none-any.whl (288 kB)
     |████████████████████████████████| 288 kB 1.1 MB/s
Collecting Jinja2>=3.0
  Downloading Jinja2-3.0.1-py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 1.0 MB/s
Collecting click>=7.1.2
  Downloading click-8.0.1-py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 1.0 MB/s
Collecting brotli
  Downloading Brotli-1.0.9-cp38-cp38-manylinux1_x86_64.whl (357 kB)
     |████████████████████████████████| 357 kB 767 kB/s
Collecting tenacity>=6.2.0
  Downloading tenacity-8.0.1-py3-none-any.whl (24 kB)
Collecting six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting MarkupSafe>=2.0
  Downloading MarkupSafe-2.0.1-cp38-cp38-manylinux2010_x86_64.whl (30 kB)
Building wheels for collected packages: dash, dash-core-components, dash-html-components, dash-table, future
  Building wheel for dash (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/sam_century/SamVirtual/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z5rtt35f/dash/setup.py'"'"'; __file__='"'"'/tmp/pip-install-z5rtt35f/dash/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-6w7k0u7v
       cwd: /tmp/pip-install-z5rtt35f/dash/
  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 dash
  Running setup.py clean for dash
  Building wheel for dash-core-components (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/sam_century/SamVirtual/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z5rtt35f/dash-core-components/setup.py'"'"'; __file__='"'"'/tmp/pip-install-z5rtt35f/dash-core-components/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-s_ijaozq
       cwd: /tmp/pip-install-z5rtt35f/dash-core-components/
  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 dash-core-components
  Running setup.py clean for dash-core-components
  Building wheel for dash-html-components (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/sam_century/SamVirtual/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z5rtt35f/dash-html-components/setup.py'"'"'; __file__='"'"'/tmp/pip-install-z5rtt35f/dash-html-components/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-8eknopva
       cwd: /tmp/pip-install-z5rtt35f/dash-html-components/
  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 dash-html-components
  Running setup.py clean for dash-html-components
  Building wheel for dash-table (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/sam_century/SamVirtual/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z5rtt35f/dash-table/setup.py'"'"'; __file__='"'"'/tmp/pip-install-z5rtt35f/dash-table/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-2bdz4g4z
       cwd: /tmp/pip-install-z5rtt35f/dash-table/
  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 dash-table
  Running setup.py clean for dash-table
  Building wheel for future (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/sam_century/SamVirtual/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z5rtt35f/future/setup.py'"'"'; __file__='"'"'/tmp/pip-install-z5rtt35f/future/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-bijh_wve
       cwd: /tmp/pip-install-z5rtt35f/future/
  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 future
  Running setup.py clean for future
Failed to build dash dash-core-components dash-html-components dash-table future
Installing collected packages: itsdangerous, Werkzeug, MarkupSafe, Jinja2, click, Flask, dash-core-components, dash-html-components, dash-table, brotli, flask-compress, future, tenacity, six, plotly, dash
    Running setup.py install for dash-core-components ... done
    Running setup.py install for dash-html-components ... done
    Running setup.py install for dash-table ... done
    Running setup.py install for future ... done
    Running setup.py install for dash ... done
Successfully installed Flask-2.0.1 Jinja2-3.0.1 MarkupSafe-2.0.1 Werkzeug-2.0.1 brotli-1.0.9 click-8.0.1 dash-1.21.0 dash-core-components-1.17.1 dash-html-components-1.1.4 dash-table-4.12.0 flask-compress-1.10.1 future-0.18.2 itsdangerous-2.0.1 plotly-5.2.1 six-1.16.0 tenacity-8.0.1
(SamVirtual) sam_century@DESKTOP-3UN3GS4:~$

Thank you so much for helping improve the quality of Dash!

We do our best to catch bugs during the release process, but we rely on your help to find the ones that slip through.

Describe your context
Please provide us your environment, so we can easily reproduce the issue.

  • replace the result of pip list | grep dash below
dash                 0.42.0
dash-core-components 0.47.0
dash-html-components 0.16.0
dash-renderer        0.23.0
dash-table           3.6.0
  • if frontend related, tell us your Browser, Version and OS

    • OS: [e.g. iOS]
    • Browser [e.g. chrome, safari]
    • Version [e.g. 22]

Describe the bug

A clear and concise description of what the bug is.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots or screen recording to help explain your problem.

@anders-kiaer
Copy link
Contributor

anders-kiaer commented Aug 23, 2021

Probably related to #1440.

I think the behaviour you see is due to something along these lines:

  • The dash* packages (and the future package) do not have wheels on PyPI (future is actually the most downloaded package on PyPI that does not have wheels, according to https://pythonwheels.com/).
  • When pip discovers this, it tries to build wheels locally.
  • Since the package wheel used for building wheels is not installed, it falls back to install directly from the source tarball on PyPI.

I.e. I think you should have a workable Dash installation at the end, despite the long list of errors? If you want to remove the errors during installation (in order to reduce the noise) you can as a work around try pip install wheel before you install Dash.

@gvwilson
Copy link
Contributor

Hi - we are tidying up stale issues and PRs in Plotly's public repositories so that we can focus on things that are most important to our community. If this issue is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. (Please note that we will give priority to reports that include a short reproducible example.) If you'd like to submit a PR, we'd be happy to prioritize a review, and if it's a request for tech support, please post in our community forum. Thank you - @gvwilson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants