Closed timarmate-ga closed 4 years ago
I cannot import pydruid after a seemingly successful pip installation.
You can reproduce it simply using docker:
contents of Dockerfile:
FROM python:3.6.6 RUN pip install pydruid
build the container:
$ docker build -t pydruid-install-error-env .
The output on my machine:
Step 1/2 : FROM python:3.6.6 ---> 8256ec07b2ad Step 2/2 : RUN pip install pydruid ---> Running in cd3b88c4d7ac Collecting pydruid Downloading https://files.pythonhosted.org/packages/81/a9/dc295a5b492fcf5df957dc74bd963214052c3322a75f71f53a4ab3145713/pydruid-0.6.0.tar.gz Collecting requests (from pydruid) Downloading https://files.pythonhosted.org/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cbfab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whl (58kB) Collecting certifi>=2017.4.17 (from requests->pydruid) Downloading https://files.pythonhosted.org/packages/98/99/def511020aa8f663d4a2cfaa38467539e864799289ff354569e339e375b1/certifi-2020.4.5.2-py2.py3-none-any.whl (157kB) Collecting idna<3,>=2.5 (from requests->pydruid) Downloading https://files.pythonhosted.org/packages/89/e3/afebe61c546d18fb1709a61bee788254b40e736cff7271c7de5de2dc4128/idna-2.9-py2.py3-none-any.whl (58kB) Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests->pydruid) Downloading https://files.pythonhosted.org/packages/e1/e5/df302e8017440f111c11cc41a6b432838672f5a70aa29227bf58149dc72f/urllib3-1.25.9-py2.py3-none-any.whl (126kB) Collecting chardet<4,>=3.0.2 (from requests->pydruid) Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB) Building wheels for collected packages: pydruid Running setup.py bdist_wheel for pydruid: started Running setup.py bdist_wheel for pydruid: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/d8/dd/c0/cc2b341c34151f692318d4401427d0f94fa5198794b9164af8 Successfully built pydruid Installing collected packages: certifi, idna, urllib3, chardet, requests, pydruid Successfully installed certifi-2020.4.5.2 chardet-3.0.4 idna-2.9 pydruid-0.6.0 requests-2.23.0 urllib3-1.25.9 You are using pip version 18.1, however version 20.2b1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Removing intermediate container cd3b88c4d7ac ---> d21a64f46594 Successfully built d21a64f46594 Successfully tagged pydruid-install-error-env:latest
... and you can run the container and try to import pydruid:
$ docker run -it --rm --name pydruid-install-error-container pydruid-install-error-env python -c 'import pydruid'
Outputting:
Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'pydruid'
ok 0.6.1 is out and should address this
0.6.1
Indeed, it works now with this Dockerfile:
FROM python:3.6.6 RUN pip install pydruid==0.6.1
Thank you.
I cannot import pydruid after a seemingly successful pip installation.
You can reproduce it simply using docker:
contents of Dockerfile:
build the container:
The output on my machine:
... and you can run the container and try to import pydruid:
Outputting: