Visitar URL original
Pipeline fails with import error for dataiku · Issue #104 · dataiku/dataiku-api-client-python · GitHub
Skip to content

Pipeline fails with import error for dataiku #104

Description

@arielman

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?

Activity

  1. cstenac commented on Nov 17, 2020

    @cstenac
    Contributor

    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

  2. arielman commented on Nov 17, 2020

    @arielman
    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

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