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

error: invalid command 'bdist_wheel' #177

Open
comex opened this issue May 26, 2022 · 1 comment
Open

error: invalid command 'bdist_wheel' #177

comex opened this issue May 26, 2022 · 1 comment

Comments

@comex
Copy link

comex commented May 26, 2022

When I use pyflow with a copy of Python installed by MacPorts, it complains that bdist_wheel is an invalid command. This is apparently because this Python doesn't have the wheel module installed by default. If I run port install py310-wheel, the error goes away. But ideally pyflow would detect when wheel isn't installed and do something more helpful.

For reference, if I use pip in the same situation, it says:

Using legacy 'setup.py install' for construct, since package 'wheel' is not installed.

Though I don't know why that would be preferable over just installing it.

% pyflow init
Please enter the Python version for this project: (eg: 3.8)
Default [3.9]:3.10
Created `pyproject.toml`
Found multiple compatible Python versions. Please enter the number associated with the one you'd like to use:
1: python3.10: 3.10.4
2: python3: 3.10.4
1
🐍 Setting up Python...
% pyflow install construct
Found lockfile
⬇ Installing construct 2.10.68 ...
thread 'main' panicked at 'running setup.py bdist_wheel in folder "/private/tmp/__pypackages__/3.10/lib/construct-2.10.68". Py path: "/private/tmp/__pypackages__/3.10/.venv/bin/python": 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'
', /Users/comex/.cargo/registry/src/github.com-1ecc6299db9ec823/pyflow-0.3.1/src/install.rs:413:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@comex
Copy link
Author

comex commented May 28, 2022

For the record, I reproduced this on 4c6ec9b.

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

1 participant