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

Azure Blob Module installation issue in azure Virtual machine #25993

Closed
rushikesh0900 opened this issue Sep 1, 2022 · 4 comments
Closed

Azure Blob Module installation issue in azure Virtual machine #25993

rushikesh0900 opened this issue Sep 1, 2022 · 4 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-author-feedback Workflow: More information is needed from author to address the issue. no-recent-activity There has been no recent activity on this issue. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Storage Storage Service (Queues, Blobs, Files)

Comments

@rushikesh0900
Copy link

rushikesh0900 commented Sep 1, 2022

  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

@rushikesh0900 rushikesh0900 added the Mgmt This issue is related to a management-plane library. label Sep 1, 2022
@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Sep 1, 2022
@github-actions github-actions bot added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Sep 1, 2022
@azure-sdk azure-sdk added Client This issue points to a problem in the data-plane of the library. needs-team-triage Workflow: This issue needs the team to triage. Storage Storage Service (Queues, Blobs, Files) labels Sep 1, 2022
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Sep 1, 2022
@rushikesh0900 rushikesh0900 changed the title Azure Module installation issue in azure Virtual machine Azure Blob Module installation issue in azure Virtual machine Sep 1, 2022
@vincenttran-msft
Copy link
Member

Hi @rushikesh0900 , thanks for bringing this to our attention. We'll investigate and get back to you ASAP.

Thanks!

@github-actions github-actions bot removed the needs-team-triage Workflow: This issue needs the team to triage. label Sep 1, 2022
@vincenttran-msft vincenttran-msft removed the Mgmt This issue is related to a management-plane library. label Sep 1, 2022
@rushikesh0900
Copy link
Author

Hi @rushikesh0900 , thanks for bringing this to our attention. We'll investigate and get back to you ASAP.

Thanks!

@jalauzon-msft
Copy link
Member

Hi @rushikesh0900, module errors such as this typically indicate a setup issue. There are a couple of things that I suspect could be the culprit here:

  • You may have multiple Python's/pips installed on the system and where you are using pip install is not the same location where your Python code is running. We can see that your pip is coming from /usr/lib/python2.7/site-packages/pip (python 2.7). Can you please verify your Python script is running in the same envorment?
    • You can check where your currently executing Python executable from inside your script using something like below.
    • You may also want to check you path to see where things are pointing.
import os
import sys
print(os.path.dirname(sys.executable))
  • Using pip install azure-storage-blob I would expect would give you the latest version of blob (currently 12.13.1) which does not support Python 2.7 and should give you an install error. This may be causing an issue. We recommend using Python 3, since 2.7 is deprecated, and installing the latest version of blob but the last version of blob to support 2.7 should be 12.9.0.

@xiangyan99 xiangyan99 added the needs-author-feedback Workflow: More information is needed from author to address the issue. label Sep 9, 2022
@ghost ghost added the no-recent-activity There has been no recent activity on this issue. label Sep 17, 2022
@ghost
Copy link

ghost commented Sep 17, 2022

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

@ghost ghost closed this as completed Oct 1, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-author-feedback Workflow: More information is needed from author to address the issue. no-recent-activity There has been no recent activity on this issue. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

5 participants