Skip to content

Cannot import azure-datalake-store in python <3.3 if no other azure library is installed #236

@VincentBLortie

Description

@VincentBLortie

Description

When azure-datalake-store is the only azure package installed using pip in a python environment with version < 3.3, azure.datalake.store cannot be imported.

(My guess is that unlike other azure packages, azure-datalake-store does not depend on azure-nspkg)


Reproduction Steps

  1. Create a new environment with a version of python earlier than 3.3 and activate that environment

Example:

conda create --name p27 python=2.7
source activate p27
  1. Install azure-datalake-store and nothing else: pip install azure-datalake-store

  2. Attempt to import azure.datalake.store: python -c "import azure.datalake.store"

The output is:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named azure.datalake.store

Environment summary

SDK Version: What version of the SDK are you using? (pip show azure-datalake-store)

Name: azure-datalake-store
Version: 0.0.29
Summary: Azure Data Lake Store Filesystem Client Library for Python
Home-page: https://github.com/Azure/azure-data-lake-store-python
Author: Microsoft Corporation
Author-email: ptvshelp@microsoft.com
License: MIT License
Location: /Users/vincentlortie/miniconda2/envs/p27/lib/python2.7/site-packages
Requires: futures, pathlib2, adal, cffi
Required-by:

Python Version: What Python version are you using? Is it 64-bit or 32-bit?
2.7.15

OS Version: What OS and version are you using?
macOS High Sierra 10.13.6

Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
zsh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions