-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
error: error in setup.cfg: command 'bdist_wheel' has no such option 'azure_namespace_package' #12612
Comments
The problem does not reproduce on master which means what's needed is to release new packages to pypi.org. For example, https://pypi.org/project/azure-mgmt-billing/ was last released more than 2 years ago. |
Hi @kappa Moving your issue to the CLI repo. Thanks! |
@kappa Moving it back, the CLI has the same issue, but that's not what your issue is about :p @RodgeFu @changlong-liu this means CLI is still using a version of SDK that contains the old packaging approach. This is a two steps fix:
@kappa the short workaround is to downgrade |
@kappa , you mention that the issue cannot repo on master branch. So which branch are you using to repo? |
@LianwMS here's what I did to test on master (testing on azure-mgmt-billing):
^ This succeeds as opposed to:
This one fails because it uses the source from https://pypi.org/project/azure-mgmt-billing/#files which was published in March 2018. Hope that helps. |
@kappa, I tried your repo step. but both of command work: Here is some screenshot: |
@LianwMS I am sorry, I didn't copy the command correctly, because "--no-binary" switch requires an argument. Here's the correct repro command: $ pip3 wheel --no-binary azure-mgmt-billing azure-mgmt-billing |
@LianwMS this is the output from my original command (building the wheel for azure-cli with dependencies) in the task: 123 wheels built successfully and 5 failures for the packages I mentioned. |
@LianwMS The reason why we don't see the errors when we build other packages individually is because the new packages are already released for them but azure-cli specifies old versions as dependencies. See:
This is successful and build a wheel for azure-mgmt-applicationinsights-0.3.0 which was released in April 2020: https://pypi.org/project/azure-mgmt-applicationinsights/#history But azure-cli depends on the version 0.1.1 of that package: https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/requirements.py3.Linux.txt which is broken:
Fails. |
So, it seems that, we only need to release billing for new. Then Cli need update to the recent version. I will try to release billing first. |
quick update: @LianwMS is working with Billing team on updating the swagger accordingly. |
Hi @kappa , do you still have the issue? Are you developing azure-cli locally https://github.com/Azure/azure-cli/blob/dev/doc/configuring_your_machine.md? If yes, pls use azdev tool to setup environment. Or are you trying to use Azure CLI as end user? then pls follow official instruction guideline https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest |
@LianwMS, yes, the issue is still there. It can be reproduced with: |
@kappa, May I know why you need build it locally? There is another issues Azure/azure-cli-extensions#1395 which is the same as this issue. |
@LianwMS, thank you, yes, it looks exactly the same issue. Glad I am not alone. |
Add @yungezz here for CLI question. |
Hi @kappa is it ok to close this one while track the error in Azure/azure-cli#14416 since this is an azure-cli issue? thanks. |
Closing since issue is fixed and/or monitored elsewherre. The root cause has been removed for years now anyway (we don't patch wheel anymore to produce our wheel, hence any version of wheel works) |
[Fix S360 Broken Issues][HDInsight]Fix s360 issues batch3 (Azure#12612) * Add networkProperties and clusterId * Add properties: VMGroupName, saskey, fileshare Change vmSizes to vmsizes, vmSizes_filter to vmsizes_filter to fix S360 issue * Suppress R4007 DefaultErrorResponseSchema Co-authored-by: Zhenyu Zhou <[email protected]>
Describe the bug
I am trying to build the wheel for azure-cli and the build fails with the message
"error: error in setup.cfg: command 'bdist_wheel' has no such option 'azure_namespace_package'" in several dependant packages which I am trying to list here:
azure-mgmt-billing
azure-mgmt-applicationinsights
azure-mgmt-consumption
azure-mgmt-datalake-analytics
azure-mgmt-relay
To Reproduce
$ pip wheel --no-binary :all: azure-cli
Expected behavior
Environment summary
Building the wheel with "pip wheel" on Fedora 31 with python 3.7.7.
Additional context
I believe the issue is similar to Azure/azure-cli#10232.
The text was updated successfully, but these errors were encountered: