Skip to Content

Data Intelligence Docker File Install Fails

Hello.

I am working with a Data Intelligence instance, attempting to create a Python modeling pipeline that allows me to connect to an external SQL DW. As such, I am attempting to utilise an ODBC connection.

I am attempting to install the Python package 'pyodbc' following the standard Docker process outlined in the documentation: https://help.sap.com/viewer/29ff74dc606c41acad117003f6034ac7/2.6.latest/en-US/781938a8d99944d099c94ac813962c34.html. However, this fails when I attempt to build the Docker file. This happens exclusively for the package pyodbc, as I have tested for other packages with no issues.

The code that is being run is a variation of this:

FROM $com.sap.opensuse.base

RUN python3.6-m pip install pyodbc

The error that is thrown is:

error building docker image. Docker daemon error: The command '/bin/sh -c python3.6 -m pip --no-cache-dir install pyodbc' returned a non-zero code: 1

I am unable to figure out how to find more detailed error logs for each build attempt. I have tried multiple variants of the above code with different paths, specifying version numbers, and so on.

Could anyone please explain why it is failing here?

Thank you.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Feb 12 at 11:38 AM

    Fryderyk, I recommend to run your docker first locally where you get far more detailed error messages before building a docker on DI. Of course you cannot use the SAP provided images but for testing purposes you might use "opensuse/leap:15.0."

    When I use the following docker image I can reproduce your error and you can start from there to solve the challenges installing jodbc. For more details you might have a look at my blog as a guideline. Some Notes on Docker File Creation on SAP Data Intelligence

    >>

    FROM opensuse/leap:15.0

    RUN zypper --non-interactive update && \

    zypper --non-interactive install --no-recommends --force-resolution \

    python3 \

    python3-pip \

    gcc=7 \

    gcc-c++=7 \

    libgthread-2_0-0=2.54.3 RUN python3 -m pip install pyodbc

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 01 at 08:39 AM

    Hi,

    I has an error and i can't solve it

    I has a docker like that image

    When I try to create a graphic with those labels, as I expose in the image.

    I have this error

    [object Object],ERROR,"Failed to run graph: failed to deploy graph: failed to prepare graph description: failed to select image: no matching dockerfile found for group 'group1' with runtime tags: {""docker4"": """", ""tornado"": ""5.0.2"", ""python36"": """", ""opensuse"": """"}

    I am working with trial Cal sap instance Sap Data Intelligence 3.0

    Thanks

    traces.png


    traces.png (192.4 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.