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

azdev setup fails with AssertionError #417

Closed
chrisribe opened this issue Oct 9, 2024 · 0 comments · Fixed by #418
Closed

azdev setup fails with AssertionError #417

chrisribe opened this issue Oct 9, 2024 · 0 comments · Fixed by #418

Comments

@chrisribe
Copy link
Member

Ran into an issue when running the command:
azdev setup --cli ./Azure-cli --repo ./Azure-cli-extensions

on step
Installing requirements.py3.Linux.txt...

I got _install_wheel error

Installing collected packages: requests-oauthlib, azure-keyvault-keys, azure-keyvault-certificates, azure-keyvault-administration, azure-appconfiguration, msrestazure, azure-synapse-spark, azure-synapse-managedprivateendpoints, azure-synapse-artifacts, azure-synapse-accesscontrol, azure-mgmt-web, azure-mgmt-trafficmanager, azure-mgmt-synapse, azure-mgmt-storage, azure-mgmt-sqlvirtualmachine, azure-mgmt-sql, azure-mgmt-signalr, azure-mgmt-servicelinker, azure-mgmt-servicefabricmanagedclusters, azure-mgmt-servicefabric, azure-mgmt-servicebus, azure-mgmt-security, azure-mgmt-search, azure-mgmt-resource, azure-mgmt-redis, azure-mgmt-redhatopenshift, azure-mgmt-recoveryservicesbackup, azure-mgmt-recoveryservices, azure-mgmt-rdbms, azure-mgmt-privatedns, azure-mgmt-policyinsights, azure-mgmt-netapp, azure-mgmt-msi, azure-mgmt-monitor, azure-mgmt-media, azure-mgmt-marketplaceordering, azure-mgmt-maps, azure-mgmt-managementgroups, azure-mgmt-loganalytics, azure-mgmt-keyvault, azure-mgmt-iothubprovisioningservices, azure-mgmt-iothub, azure-mgmt-iotcentral, azure-mgmt-imagebuilder, azure-mgmt-hdinsight, azure-mgmt-extendedlocation, azure-mgmt-eventhub, azure-mgmt-eventgrid, azure-mgmt-dns, azure-mgmt-datamigration, azure-mgmt-databoxedge, azure-mgmt-cosmosdb, azure-mgmt-containerservice, azure-mgmt-containerregistry, azure-mgmt-containerinstance, azure-mgmt-compute, azure-mgmt-cognitiveservices, azure-mgmt-cdn, azure-mgmt-botservice, azure-mgmt-billing, azure-mgmt-batchai, azure-mgmt-batch, azure-mgmt-authorization, azure-mgmt-applicationinsights, azure-mgmt-appcontainers, azure-mgmt-appconfiguration, azure-mgmt-apimanagement, azure-mgmt-advisor, azure-data-tables, msal-extensions, azure-mgmt-kusto, azure-mgmt-devtestlabs, azure-graphrbac, azure-datalake-store, azure-batch
  Attempting uninstall: requests-oauthlib
    Found existing installation: requests-oauthlib 2.0.0
    Uninstalling requests-oauthlib-2.0.0:
      Successfully uninstalled requests-oauthlib-2.0.0
ERROR: Exception:
Traceback (most recent call last):
  File "/mnt/c/GitRepos/Azure/AzCLITools/env/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 105, in _run_wrapper
    status = _inner_run()
             ^^^^^^^^^^^^
  File "/mnt/c/GitRepos/Azure/AzCLITools/env/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 96, in _inner_run
    return self.run(options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/c/GitRepos/Azure/AzCLITools/env/lib/python3.12/site-packages/pip/_internal/cli/req_command.py", line 67, in wrapper
    return func(self, options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/c/GitRepos/Azure/AzCLITools/env/lib/python3.12/site-packages/pip/_internal/commands/install.py", line 457, in run
    installed = install_given_reqs(
                ^^^^^^^^^^^^^^^^^^^
  File "/mnt/c/GitRepos/Azure/AzCLITools/env/lib/python3.12/site-packages/pip/_internal/req/__init__.py", line 70, in install_given_reqs
    requirement.install(
  File "/mnt/c/GitRepos/Azure/AzCLITools/env/lib/python3.12/site-packages/pip/_internal/req/req_install.py", line 867, in install
    install_wheel(
  File "/mnt/c/GitRepos/Azure/AzCLITools/env/lib/python3.12/site-packages/pip/_internal/operations/install/wheel.py", line 732, in install_wheel
    _install_wheel(
  File "/mnt/c/GitRepos/Azure/AzCLITools/env/lib/python3.12/site-packages/pip/_internal/operations/install/wheel.py", line 621, in _install_wheel
    assert os.path.exists(pyc_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

After trying a couple of commands this one seems to have allowed me to re-run the command with success:

pip install msrestazure==0.6.4
python -m pip install -r /mnt/c/GitRepos/Azure/AzCLITools/Azure-cli/src/azure-cli/requirements.py3.Linux.txt
azdev setup --cli ./Azure-cli --repo ./Azure-cli-extensions

The pip install requirements.py3.Linux.txt may not have been required, but I ran that 1st before the entire longer azdev setup sequence.

This issue is a good blocker for initial onboarding :(

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

Successfully merging a pull request may close this issue.

1 participant