sap-tutorials / How-Tos

How-To documents for sap.com - DEPRECATED
Creative Commons Attribution 4.0 International
24 stars 19 forks source link

Connect to SAP HANA, express edition using Python #245

Closed Paddre closed 6 years ago

Paddre commented 6 years ago

In Step 3: Test Connectivity

The example code fails at line from hdbcli import dbapi with error:

Traceback (most recent call last): File "", line 1, in File "C:\Program Files\sap\hdbclient\hdbcli\dbapi.py", line 12, in import pyhdbcli ImportError: DLL load failed: The specified module could not be found.

Paddre commented 6 years ago

Sorry, my bad. I tried executing the code from within the python console and then got the above error. Saving it in a .py file as described in the How-To, works fine (except that the connection cannot be established but that's not an issue of the how-to obviously :-P)