-
Notifications
You must be signed in to change notification settings - Fork 240
Unable to install azure-storage-blob dependencies via setup.py #499
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
Comments
Hi @SamuelRamond, thanks for reaching out! I was able to reproduce this issue by doing |
So, the root cause is because setuptools is downloading the wheel of "azure-common", which he shouldn't do (setup.py install is supposed to not use wheel at all). Searching for azure-common>=1.1.5
Reading https://pypi.python.org/simple/azure-common/
Downloading https://files.pythonhosted.org/packages/28/b9/51abe52b2d744e46f68314db31d178a8e8a2ea9a409b42146af08884ed47/azure_common-1.1.15-py2.py3-none-any.whl#sha256=8dda3d3eee6ec1b0d014aa84260042f6840d28d7b3fe03a552ed1e1541c00986
Best match: azure-common 1.1.15
Processing azure_common-1.1.15-py2.py3-none-any.whl
Installing azure_common-1.1.15-py2.py3-none-any.whl to c:\users\lmazuel\git\azure-storage-python\testenv\lib\site-packages
writing requirements to c:\users\lmazuel\git\azure-storage-python\testenv\lib\site-packages\azure_common-1.1.15-py3.7.egg\EGG-INFO\requires.txt
Adding azure-common 1.1.15 to easy-install.pth file
Installed c:\users\lmazuel\git\azure-storage-python\testenv\lib\site-packages\azure_common-1.1.15-py3.7.egg I expect setuptools to download the sdist when installation is planned to be as egg. Our wheels and sdist are different, and if try a mixed installation of wheel and some egg, that has no chance to work out of the box. Solution might be to downgrade setuptools. Edit: To support what I'm saying about deprecation: |
So I took a random old setuptools (25.1.25) and retried it, and it uses the sdist as expected: Searching for azure-common>=1.1.5
Reading https://pypi.python.org/simple/azure-common/
Downloading https://files.pythonhosted.org/packages/35/46/1cc91b5b6d3ea4ba239e202414102f196cd611f85afa77300432244b8902/azure-common-1.1.15.zip#sha256=8139e399d8c15f1dfcbc6254ccf98a835888cdaf500487b58d6af3e4bb3726a2
Best match: azure-common 1.1.15
Processing azure-common-1.1.15.zip
Writing C:\Users\lmazuel\AppData\Local\Temp\easy_install-afihut10\azure-common-1.1.15\setup.cfg
Running azure-common-1.1.15\setup.py -q bdist_egg --dist-dir C:\Users\lmazuel\AppData\Local\Temp\easy_install-afihut10\azure-common-1.1.15\egg-dist-tmp-et_yuz0w
Wheel is not available, disabling bdist_wheel hook
creating c:\users\lmazuel\git\azure-storage-python\testenv2\lib\site-packages\azure_common-1.1.15-py3.7.egg
Extracting azure_common-1.1.15-py3.7.egg to c:\users\lmazuel\git\azure-storage-python\testenv2\lib\site-packages
Adding azure-common 1.1.15 to easy-install.pth file
Installed c:\users\lmazuel\git\azure-storage-python\testenv2\lib\site-packages\azure_common-1.1.15-py3.7.egg So, with pip and setuptools moving on, at some point setuptools team decided to download wheels to build egg file, which is surprising, but that's how it is... Only solutions to this problem then:
|
Update: tracked this down to setuptools 38.2.0 (released in November 2017)
|
Fixed in 1.4.0. |
Which service(blob, file, queue) does this issue concern?
Which version of the SDK was used? Please provide the output of
pip freeze
.What problem was encountered?
Unable to install the whole dependency tree via classic
setup.py
ininstall_requires
Have you found a mitigation/solution?
Using
pip install azure-storage-blob==1.3.1
it works well but in our CI process we try to have all dependency in oursetup.py
I tried to add what seems to be the additional dependencies while
pip freeze
after manual pip install but this does not work either.FYI, i added
Is there something i need to add in the
setup.py
to make it work ?The text was updated successfully, but these errors were encountered: