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

Manjaro: Encountering an issue during the installation process #27529

Closed
Qodestackr opened this issue Oct 5, 2023 · 4 comments
Closed

Manjaro: Encountering an issue during the installation process #27529

Qodestackr opened this issue Oct 5, 2023 · 4 comments
Assignees
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. Installation Possible-Solution question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue
Milestone

Comments

@Qodestackr
Copy link

Describe the bug

CLI installation issue.

Related command

curl -L https://aka.ms/InstallAzureCli | bash

Errors

[qodestackr@qodestackr-pc ~]$ curl -L https://aka.ms/InstallAzureCli | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
100  1405  100  1405    0     0     76      0  0:00:18  0:00:18 --:--:--   345
Downloading Azure CLI install script from https://azurecliprod.blob.core.windows.net/install.py to /tmp/azure_cli_install_tmp_1Jsqdz.
######################################################################## 100.0%
/tmp/azure_cli_install_tmp_1Jsqdz: OK
Running install script.
-- Verifying Python version.
-- Python version 3.11.5 okay.
-- Verifying native dependencies.
-- Unable to verify native dependencies. dist=manjaro linux, version=None. Continuing...

===> In what directory would you like to place the install? (leave blank to use '/home/qodestackr/lib/azure-cli'): 
-- '/home/qodestackr/lib/azure-cli' is not empty and may contain a previous installation.

===> Remove this directory? (y/N): y
-- Deleted '/home/qodestackr/lib/azure-cli'.
-- Creating directory '/home/qodestackr/lib/azure-cli'.
-- We will install at '/home/qodestackr/lib/azure-cli'.

===> In what directory would you like to place the 'az' executable? (leave blank to use '/home/qodestackr/bin'): 
-- The executable will be in '/home/qodestackr/bin'.
-- Downloading virtualenv package from https://pypi.python.org/packages/source/v/virtualenv/virtualenv-16.7.11.tar.gz.
-- Downloaded virtualenv package to /tmp/tmppj32e945/virtualenv-16.7.11.tar.gz.
-- Checksum of /tmp/tmppj32e945/virtualenv-16.7.11.tar.gz OK.
-- Extracting '/tmp/tmppj32e945/virtualenv-16.7.11.tar.gz' to '/tmp/tmppj32e945'.
-- Executing: ['/usr/bin/python3', 'virtualenv.py', '--python', '/usr/bin/python3', '/home/qodestackr/lib/azure-cli']
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/qodestackr/lib/azure-cli/bin/python3
Also creating executable in /home/qodestackr/lib/azure-cli/bin/python
ERROR: The executable /home/qodestackr/lib/azure-cli/bin/python3 is not functioning
ERROR: It thinks sys.prefix is '/usr' (should be '/home/qodestackr/lib/azure-cli')
ERROR: virtualenv is not compatible with this system or executable
Traceback (most recent call last):
  File "/tmp/azure_cli_install_tmp_1Jsqdz", line 415, in <module>
    main()
  File "/tmp/azure_cli_install_tmp_1Jsqdz", line 399, in main
    create_virtualenv(tmp_dir, install_dir)
  File "/tmp/azure_cli_install_tmp_1Jsqdz", line 144, in create_virtualenv
    exec_command(cmd, cwd=working_dir)
  File "/tmp/azure_cli_install_tmp_1Jsqdz", line 105, in exec_command
    subprocess.check_call(command_list, cwd=cwd, env=env)
  File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', 'virtualenv.py', '--python', '/usr/bin/python3', '/home/qodestackr/lib/azure-cli']' returned non-zero exit status 100.

Issue script & Debug output

[qodestackr@qodestackr-pc ~]$ curl -L https://aka.ms/InstallAzureCli | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
100  1405  100  1405    0     0     76      0  0:00:18  0:00:18 --:--:--   345
Downloading Azure CLI install script from https://azurecliprod.blob.core.windows.net/install.py to /tmp/azure_cli_install_tmp_1Jsqdz.
######################################################################## 100.0%
/tmp/azure_cli_install_tmp_1Jsqdz: OK
Running install script.
-- Verifying Python version.
-- Python version 3.11.5 okay.
-- Verifying native dependencies.
-- Unable to verify native dependencies. dist=manjaro linux, version=None. Continuing...

===> In what directory would you like to place the install? (leave blank to use '/home/qodestackr/lib/azure-cli'): 
-- '/home/qodestackr/lib/azure-cli' is not empty and may contain a previous installation.

===> Remove this directory? (y/N): y
-- Deleted '/home/qodestackr/lib/azure-cli'.
-- Creating directory '/home/qodestackr/lib/azure-cli'.
-- We will install at '/home/qodestackr/lib/azure-cli'.

===> In what directory would you like to place the 'az' executable? (leave blank to use '/home/qodestackr/bin'): 
-- The executable will be in '/home/qodestackr/bin'.
-- Downloading virtualenv package from https://pypi.python.org/packages/source/v/virtualenv/virtualenv-16.7.11.tar.gz.
-- Downloaded virtualenv package to /tmp/tmppj32e945/virtualenv-16.7.11.tar.gz.
-- Checksum of /tmp/tmppj32e945/virtualenv-16.7.11.tar.gz OK.
-- Extracting '/tmp/tmppj32e945/virtualenv-16.7.11.tar.gz' to '/tmp/tmppj32e945'.
-- Executing: ['/usr/bin/python3', 'virtualenv.py', '--python', '/usr/bin/python3', '/home/qodestackr/lib/azure-cli']
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/qodestackr/lib/azure-cli/bin/python3
Also creating executable in /home/qodestackr/lib/azure-cli/bin/python
ERROR: The executable /home/qodestackr/lib/azure-cli/bin/python3 is not functioning
ERROR: It thinks sys.prefix is '/usr' (should be '/home/qodestackr/lib/azure-cli')
ERROR: virtualenv is not compatible with this system or executable
Traceback (most recent call last):
  File "/tmp/azure_cli_install_tmp_1Jsqdz", line 415, in <module>
    main()
  File "/tmp/azure_cli_install_tmp_1Jsqdz", line 399, in main
    create_virtualenv(tmp_dir, install_dir)
  File "/tmp/azure_cli_install_tmp_1Jsqdz", line 144, in create_virtualenv
    exec_command(cmd, cwd=working_dir)
  File "/tmp/azure_cli_install_tmp_1Jsqdz", line 105, in exec_command
    subprocess.check_call(command_list, cwd=cwd, env=env)
  File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', 'virtualenv.py', '--python', '/usr/bin/python3', '/home/qodestackr/lib/azure-cli']' returned non-zero exit status 100.

Expected behavior

It should complete installation

Environment Summary

python version: Python 3.11.5

Additional context

No response

@Qodestackr Qodestackr added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Oct 5, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Installation labels Oct 5, 2023
@azure-client-tools-bot-prd
Copy link

Hi @Qodestackr
Find similar issue #23215.

Issue title Virtualenv step failing in install script
Create time 2022-07-15
Comment number 2

Possible solution:
As mentioned in that issue, the installation script is outdated. You can use this guide to install azure-cli with pip: #20476.


Please confirm if this resolves your issue.

@yonzhan
Copy link
Collaborator

yonzhan commented Oct 5, 2023

Thank you for opening this issue, we will look into it.

@yonzhan yonzhan added this to the Backlog milestone Oct 5, 2023
@yonzhan yonzhan added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that and removed bug This issue requires a change to an existing behavior in the product in order to be resolved. labels Oct 5, 2023
@Qodestackr
Copy link
Author

pip install azure-cli works

Kindly update Azure docs accordingly.

@makeitcloudy
Copy link

the way described in #20476 works in manjaro 6.1.60-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. Installation Possible-Solution question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue
Projects
None yet
Development

No branches or pull requests

5 participants