When building python package, it failed with message "error: invalid command 'bdist_wheel"
Issue
- Failed to build package
statsforecastinPython3.9, below error was shown during package build phase:
Building wheels for collected packages: fugue-sql-antlr
Building wheel for fugue-sql-antlr (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-clicj6pw/fugue-sql-antlr/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-clicj6pw/fugue-sql-antlr/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-y95ct3kh
cwd: /tmp/pip-wheel-clicj6pw/fugue-sql-antlr/
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 fugue-sql-antlr
Running setup.py clean for fugue-sql-antlr
Failed to build fugue-sql-antlr
ERROR: Failed to build one or more wheels
Environment
- Red Hat Enterprise Linux release 8.8 (Ootpa)
- python39-3.9.16-1.module+el8.8.0+18968+3d7b19f0.1.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.