SAP Knowledge Base Article - Preview

3375571 - How to avoid error 1640 when python program connects to ASE server - SAP ASE


Connection from Python program to ASE server will report error 1640 when "net password encryption reqd" configuration parameter is set to "1".

sybpydb.ProgrammingError: ('Adaptive Server requires encryption of the login password on the network.\n', 1640)



  • SAP Adaptive Server Enterprise 16.0
  • Python 3.x


SAP Adaptive Server Enterprise 16.0


Python, 1640, net password encryption reqd , KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , BC-SYB-SDK , SDK , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.