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

Pipeline fails with import error for dataiku #104

Open
arielman opened this issue Nov 16, 2020 · 2 comments
Open

Pipeline fails with import error for dataiku #104

arielman opened this issue Nov 16, 2020 · 2 comments

Comments

@arielman
Copy link

arielman commented Nov 16, 2020

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
Copy link
Member

cstenac commented Nov 17, 2020

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
Copy link
Author

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants