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

Failed to install or start extension '@autorest/python' (5.4.0) #4608

Closed
vtahiliani opened this issue Aug 3, 2022 · 4 comments
Closed

Failed to install or start extension '@autorest/python' (5.4.0) #4608

vtahiliani opened this issue Aug 3, 2022 · 4 comments

Comments

@vtahiliani
Copy link

Facing issue with autorest to generate az cli extension using reference: https://github.com/Azure/autorest.az#take-logz-extension-as-a-dry-run
I have following configuration:

AutoRest Core AutoRest CLI Node.js
3.0.6370 3.5.1 12.20
Any workaround/fix for this issue, blocking issue not processing further.
Installing AutoRest extension '@autorest/python' (5.4.0)
Failed to install or start extension '@autorest/python' (5.4.0)
  Error: Package '@autorest/python' - '5.4.0' failed to install:
  Failed to install package '[https://registry.npmjs.org/@autorest/python/-/python-5.4.0.tgz'](https://registry.npmjs.org/@autorest/python/-/python-5.4.0.tgz%27) -- Error: Process Failed.Error: Failed to install package '[https://registry.npmjs.org/@autorest/python/-/python-5.4.0.tgz'](https://registry.npmjs.org/@autorest/python/-/python-5.4.0.tgz%27) -- Error: Process Failed.
    at install (/node_modules/@azure-tools/extension/dist/main.js:367:15)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async ExtensionManager.installPackage (/node_modules/@azure-tools/extension/dist/main.js:571:13)
    at async resolveExtensions (C:\Users\xyz\.autorest\@[email protected]\nodemodules\@autorest\core\dist\lib\configuration\configuration-loader.js:330:55)
    at async ConfigurationLoader.CreateView (C:\Users\xyz\.autorest\@[email protected]\nodemodules\@autorest\core\dist\lib\configuration\configuration-loader.js:371:9)
    at async AutoRest.RegenerateView (C:\Users\xyz\.autorest\@[email protected]\nodemodules\@autorest\core\dist\lib\autorest-core.js:86:30)
    at async currentMain (C:\Users\xyz\.autorest\@[email protected]\nodemodules\@autorest\core\dist\app.js:313:20)
    at async mainImpl (C:\Users\xyz\.autorest\@[email protected]\nodemodules\@autorest\core\dist\app.js:517:20)
    at async main (C:\Users\xyz\.autorest\@[email protected]\nodemodules\@autorest\core\dist\app.js:544:20)
@timotheeguerin
Copy link
Member

please use a newer version, there is an issue with a dependency of dependency that wasn't pinned in this version.

@vtahiliani
Copy link
Author

Can you share version to be used to get unblock in generating az cli from autorest.

@vtahiliani
Copy link
Author

vtahiliani commented Aug 9, 2022 via email

@timotheeguerin
Copy link
Member

Please see this for using AZ Azure/autorest.az#898

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

No branches or pull requests

2 participants