Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Python and HCP Trial connectivity issue. #86

Closed
Vigneshbosch opened this issue May 10, 2017 · 6 comments
Closed

Python and HCP Trial connectivity issue. #86

Vigneshbosch opened this issue May 10, 2017 · 6 comments

Comments

@Vigneshbosch
Copy link

I am trying to establish a connection with my HCP trail account from python but facing the below issue:

capture

The code snippet i used to establish this connection is :

import dbapi

conn = dbapi.connect( 'hanatrial.ondemand.com' , 30015, 'p1942054738', 'xxxxxx')

print ( conn.isconnected())

Please note :

  • i have placed this code under python folder of hdbclient.

  • I have copied these files into the Lib folder of python

          * __init__.py, dbapi.py, resultrow.py
    
          * pyhdbcli.pdb, pyhdbcli.pyd
    

Please let me know what am i missing to establish a connection between HCP and python.

@ghost
Copy link

ghost commented May 10, 2017

@timogasda
Copy link
Contributor

Please note that this repository is not about the HANA connector that ships with HANA, which you seem to be using.

@Vigneshbosch
Copy link
Author

@iivanov-hub
Thanks for the response the blog was useful but the open-db-tunnel doesn't provide me with a user name and password.

capture2

Please let me know if i am missing something ?

@TwoLaid
I even tried with the pyhdb library still no luck. The connection gets timed out.

untitled

@ghost
Copy link

ghost commented May 10, 2017

Once you have tunnel up and running, you have to use your database user and password, SYSTEM for example. host is "localhost" and port is 3015, based on output from your command output.

@timogasda
Copy link
Contributor

I've never worked with a HCP trial instance, but maybe refer to this thread: SAP/node-hdb#1

It is for the NodeJS connector but the logic might be applicable here as well

@jarus
Copy link
Contributor

jarus commented May 23, 2018

Sorry for the late response. If the issue still persist then please feel free to reopen the issue. I would also recommend to contact the HCP/SCP support as it looks like a problem related with the HCP/SCP proxy.

@jarus jarus closed this as completed May 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants