Need help trying to install Azure CLI on pfSense CE 2.4.5 but getting ERROR: Command errored out with exit status 1: /root/lib/azure-cli/bin/python

CompusaurusRex 96 Reputation points
2020-12-30T23:11:32.29+00:00

I was able to download the script and save locally (installAzureCliPython.py), set permission (+x) and ran. I completed adding packages and fails after message "Building dependencies". Here is a screen shot of the command issue and prompt responses:command prompt responses

Here is a screen shot as it reached building dependencies: install reaching dependencies

I installed bash and ran from that shell as root: python installAzureCliPython.py

Here is the error message:

ERROR: Command errored out with exit status 1: /root/lib/azure-cli/bin/python
/root/lib/azure-cli/lib/python3.7/site-packages/pip install --ignore-
installed --no-user --prefix /tmppip-build-env-kcwduoe9/overlay --no-warn-
sript-location --no-binary :none: --only-binary :none: -i
https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3;
platform_python_implementation != '"'"'PyPy'"'"' Check the logs for the full
command output.
Here is a screen shot of the error:command error screenshot Any suggestions or help is appreciated.

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
338 questions
{count} votes

Accepted answer
  1. CompusaurusRex 96 Reputation points
    2021-01-06T05:14:02.007+00:00

    Hello and thanks for the reply.
    That doc was helpful thank you! My teammate discovered this cause and developed a solution: ERROR: Failed building wheel for cffi
    The following steps resolved the issue:
    ln -s /usr/local/bin/python3.7 /usr/local/bin/python
    pkg install bash
    /usr/local/bin/bash
    rm /usr/local/etc/pkg/repos/FreeBSD.conf
    vi /usr/local/etc/pkg/repos/pfSense.conf
    change FreeBSD enabled "no" to "yes" then ensure FreeBSD appears in pkg update
    pkg update
    pkg install py37-azure-cli


1 additional answer

Sort by: Most helpful
  1. prmanhas-MSFT 17,906 Reputation points Microsoft Employee
    2021-01-05T06:01:53.32+00:00

    @CompusaurusRex Apologies for all the delay and any inconvenience this issue might have caused.

    I had discussion with our team internally and below is the response I got:

    The CLI should be installed following instructions as per below document:

    https://learn.microsoft.com/en-us/cli/azure/.

    If that is not working questions should be levied to the azure CLI team or asked through a GitHub issue.

    Hope it helps!!!

    Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.