i'm seeing the following error while trying to set...
# automation-api
h
i'm seeing the following error while trying to set up a venv for automation via azure pipelines (ubuntu-latest):
Copy code
Building wheels for collected packages: pulumi-azure-native, pulumi-kubernetes, pulumi-tls
  Building wheel for pulumi-azure-native (setup.py): started
  Building wheel for pulumi-azure-native (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /home/vsts/work/1/s/experimental/sid/iac-azure/infra/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5kvg33b8/pulumi-azure-native/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5kvg33b8/pulumi-azure-native/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-ete6c603
       cwd: /tmp/pip-install-5kvg33b8/pulumi-azure-native/
  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'
these errors only show up for pulumi-* packages - any insights please?
b
do you have the
wheel
package in your dependencies? can you try installing it and rerun?
h
don't have it in there explicitly. works on my local (macos 11.4, python 3.9.6 via homebrew) without this error. i've tried the following before invoking my automation program without success: •
sudo apt install python3-wheel
# says already up to date •
python3 -m pip install wheel
with and without
--upgrade
, and with and without
uninstall
before
install
• ^ same things for
setuptools
• ^
python3 -m pip install --upgrade pip
before all of these • ... and mostly everything else i could find on stackoverflow that seemed relevant
b
what OS/arch are you using? in your runner?
h
ubuntu-latest seems to map to ubuntu 20.04 with python 3.8
b
and it's amd64?
👍 1
h
uname -a
: Linux fv-az95-401 5.8.0-1036-azure #38~20.04.1-Ubuntu SMP Thu Jun 17 141418 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
b
i'm completely stumped, this works flawless most of the time 😞 it does look like the wheel package isn't installed correctly though