Skip to content

Azure Blob Module installation issue in azure Virtual machine  #25993

Closed

Description

  1. Describe the bug

Azure.storage.blob module 12.9.0 is installed in Python 2.7.13 but still its failing with no module found

  1. Code Snippet

Error added in same issue .

  1. Expected behavior

Python 2.7.13 (default, Jan 11 2017, 10:56:06) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import azure.storage.blob
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named azure.storage.blob

Setup (please complete the following information):

  • Python Version: Python 2.7.13
  • SDK Version: azure-storage-blob==12.2.0

Commands we used -->

1-Created a SLES 12 sp4 gen2 VM, as your VM
2-Downloaded pip:
linux:/tmp # wget -c https://bootstrap.pypa.io/pip/2.7/get-pip.py
--2022-08-25 09:14:09-- https://bootstrap.pypa.io/pip/2.7/get-pip.py
3- -Installed pip, and got the same deprecation message, but pip installed successfully (the installed version is 20.3.4 , and the one that does not support Python 2.7 will be version 21.0);
linux:/tmp # python2 get-pip.py
4- linux:/tmp # pip --version
pip 20.3.4 from /usr/lib/python2.7/site-packages/pip (python 2.7)

Per the above, the running version of pip will still support python 2.7, only the upcoming pip version 21.0 will not

Trying to update pip will not upgrade from 20.3.4 to a newer version:

linux:/tmp # pip install --upgrade pip

5 - Installed same package
linux:/tmp # pip install azure-storage-blob

6 - Installed the missing dependency "requests" with version 2.18.4, as asked by azure storage-blob
linux:/tmp # pip install requests==2.18.4

7 - Uninstalled azure-storage-blob:
linux:/tmp # pip uninstall azure-storage-blob

8 - And installed azure-storage-blob again
linux:/tmp # pip install azure-storage-blob

9 - But yes after this still we are getting error like : no module found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-author-feedbackWorkflow: More information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this issue.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions