cancel
Showing results for 
Search instead for 
Did you mean: 

How to import a Python custom library (IVR custom state)

heber_silva
Explorer
0 Kudos

Hi Experts,

I'm developing a customizer to connect in a SAP HANA database and use it inside a custom state in my Custom-IVR.

Using a regular Python IDE I’ve imported a library called "hdbcli" (available with SAP HANA client package) and connected to SAP HANA database successfully. This same python file was imported to custom-IVR customizer block, but I'm getting an error because “hdbcli” is not available in SAP Contact Center packages.

Is there any procedure to import new libraries to python/libs managed by CEM Server?

Best Regards,

Heber Olivar

Accepted Solutions (1)

Accepted Solutions (1)

former_member202106
Contributor
0 Kudos

Hi Heber,

What version of Contact Center you are currently on? From SP10 on words we utilize Python version 2.7.10 (see SP10 release note.) Which seems to have the method. I don't remember what was the earlier version of Python but might be that it doesn't have the function.

//Jukka

Answers (1)

Answers (1)

heber_silva
Explorer
0 Kudos

Hi Jukka,

We're running SAP CCtr FP12 and python library "hdbcli" is not installed or available at installation package.

How we can add custom libs to SAP CCtr package for use in our IVR customizers?

Best Regards,

Heber Olivar

-

former_member202106
Contributor

Hi Heber,

Thanks for the info. Following is now totally unofficial and comes without support.

This might be quite simple task. It might work if you drop hdbcli files under CEM-VU to place where Python pip installation tools has installed it locally. Wild guess is folder <VU_HOME>\<CEM_VU>\Python\Lib\site-packages

List of installed files with locations can be listed with:

pip show -f <package_name>

Might require CEM reset after the actions.

BR,
Jukka

heber_silva
Explorer
0 Kudos

Hi Jukka,

Thank you for your help, it's works!

I just would like to mention that the library "hdbcli" I was trying is only available for 64bits and I moved to another library called "pyhdb" to connect on SAP HANA from my custom-state.

Best Regards,

Heber Olivar