dataiku / dataiku-api-client-python

Python client for the DSS public API
https://doc.dataiku.com/dss/latest/api/public/
Other
41 stars 25 forks source link

Pipeline fails with import error for dataiku #104

Open arielman opened 4 years ago

arielman commented 4 years ago

I'm trying to run the below example on my jenkins node:

https://community.dataiku.com/t5/Knowledge-Base/Building-a-Jenkins-pipeline-for-Dataiku-DSS/ta-p/10201 In one of the stages, I created python venv which install the requirments.txt file. I can see in the console log that dataiku-api-client was installed with version 8.0.0, but still, it fails later with the first command of import dataiku:

ModuleNotFoundError: No module named 'dataiku' My python version is 3.7.4 any idea what's wrong with that?

cstenac commented 4 years ago

Hi,

Dataiku APIs are made of two packages, "dataiku-api-client" (module name dataikuapi) and "dataiku-internal-client" (module name dataiku). The latter is not available from pypi repositories and must be downloaded from DSS itself, as indicated here: https://doc.dataiku.com/dss/latest/python-api/outside-usage.html#in-a-requirements-txt-file

arielman commented 4 years ago

Ok. but when I'm trying to install it manually, I get: + pip install dataiku-internal-client.tar.gz Processing ./dataiku-internal-client.tar.gz Collecting requests>=2 (from dataiku-internal-client==7.0.0) Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f15b95ec860>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/requests/