i can't install the ibm_db python package in my azure function

Agustin Pace 0 Reputation points
2023-06-17T15:54:55.52+00:00

I'm trying to access a IBM DB2 instance from an azure function, but as soon as i add the ibm_db package to my requirement.txt and publish the function, when trying to install this package it gives me the error described below

ERROR: Command errored out with exit status 1:
   command: /tmp/oryx/platforms/python/3.8.6/bin/python3.8 /tmp/oryx/platforms/python/3.8.6/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpohdx5kca
       cwd: /tmp/pip-install-ygqaie_9/ibm-db_ae91bb58811d4da4a16cf48bfdca7e17
  Complete output (8 lines):
  Detected 64-bit Python
  Detected platform = linux, uname = x86_64
  Downloading https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz
   Downloading DSDriver from url =  https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz
  Pre-requisite check [gcc] : Passed

  No Python.h header file detected.
  Please install python-devel or python3-devel as instructed in "https://github.com/ibmdb/python-ibmdb/blob/master/README.md#KnownIssues" and continue with the installation

The goal is to be capable to access DB2 regardless the language. I tried with node and .NET but they also have their own issues with this package (or i may have done something wrong)

Any idea how to to avoid this error?

Thanks!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.