Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

No OpenSSL for Python from SAP BTP

mwn
Explorer
0 Kudos

Tutorials: https://developers.sap.com/tutorials/btp-cf-buildpacks-python-create.html
--------------------------

I have successfully followed this tutorial. Today, I found that BTP CF will be changing to a new runtime cflinuxfs4 and so I tried to push my app with the parameter -s cflinuxfs4 . It deployed OK, but at runtime I am getting an error from the dbapi.connect call saying that "-10709, 'Connection failed (RTE:[300002] OpenSSL is not available"

Does anyone know how I can fix this?

Thanks

4 REPLIES 4

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

mn_hana

I have tested now with Python buildpack .. its works. No issues with open SSL.

You don't need to push with -s cflinuxfs4... Just push cf push or cf push <appname>

0 Kudos

Don’t I need to use the -s option at least once to set the new runtime? Yes, subsequent pushes don’t need it, but it will default to 3 until I tell it 4.

mwn
Explorer
0 Kudos

It seems I need a newer version of the hdbcli library, which can be done by changing the requirements.txt file to include a line:

hdbcli==2.16.21

0 Kudos

Can confirm. This worked for me.