question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Packages conflict for azure.storage.blob

See original GitHub issue

Describe the bug I installed the code in azure-cli repo. The code dependent on package azure-storage-blob and it is installed. But I cannot import azure.storage.blob in python.

To Reproduce

  1. Clone the repo
  2. run python scripts/dev_setup.py
  3. run pip show azure-storage-blob, this package is installed.
  4. run python -c "import azure.storage.blob", get error ModuleNotFoundError: No module named 'azure.storage'

From my investigation, it might be introduced by https://github.com/Azure/azure-cli/pull/8855

Expected behavior azure.storage.blob can be imported.

Environment summary Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32

Additional context This is blocking the Docs CI, please take this issue as high priority.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
daxianji007commented, Apr 15, 2019

@tjprescott Thanks for the solution! Now I can finnally go through the Docs CI. And I also tested that the generated document is almost the same with before.

1reaction
daxianji007commented, Apr 11, 2019

@tjprescott I find this PR because I run Docs CI locally for specified commit. The CI passed at commit 35f9aec6684fe36b1a08297e6b64b7a5b0f7f5b7 and failed at commit 9e360fc664c8acd0a1f1a9246fd58ffe5238acb5. The only difference between the two commits is #8855.

I have deeper investigation today, this could be related to pip version change in #8855. I think it is the reason why you did not repro it.

The difference comes from this command. When force-reinstall azure-nspkg==1.0.0 and azure-mgmt-nspkg==1.0.0 with pip==9.0.3 . It shows:

Successfully installed azure-nspkg-1.0.0
Successfully installed azure-mgmt-nspkg-1.0.0

When When force-reinstall with pip==19.0.3. It shows:

Successfully installed azure-nspkg-1.0.0
Successfully installed azure-mgmt-nspkg-1.0.0 azure-nspkg-3.0.2

Then the packages might be conflicted and I cannot import azure.storage.blob. If I manually force-reinstall azure-nspkg==1.0.0. This issue is gone.

The issue is temporarily mitigated but Docs CI keeps blocked. New changes will not be reflected in documents. It is possible to set the pip version to “pip~=9.0.1” like this Pull Request #9068?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Pipeline fails with conflicting dependencies
txt (line 8) and azure-storage-blob==2.1.0 because these package versions have conflicting dependencies. The conflict is caused by: The user ...
Read more >
Troubleshoot dependency version conflicts - Azure
An overview of how to troubleshoot dependency version conflicts related to using the Azure SDK for Java.
Read more >
Azure Blob Storage error codes - Microsoft Learn
Error code HTTP status code User message BlobAlreadyExists Conflict (409) The specified blob already exists. BlobNotFound Not Found (404) The specified blob does not exist. ContainerAlreadyExists...
Read more >
Azure Core shared library for Java | Microsoft Learn
These libraries follow the Azure SDK Design Guidelines for Java and can be easily identified by package names starting with com.azure and module ......
Read more >
ConflictResolutionPolicy Class | Microsoft Learn
Represents the conflict resolution policy configuration for specifying how to ... result in conflicts on items in the container in the Azure Cosmos...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found