SAP Knowledge Base Article - Preview

2144404 - ' wrong ELF class: ELFCLASS64' is thrown when running sample application with Python module - SAP SDK


  • Using SAP ASE SDK 15.7, with python module, running sample program to test out database connectivity, located in $SYBASE/$SYBASE_OCS/sample/python results in error:

Traceback (most recent call last): File "", line 55, in <(><<)>module> import sybpydb
ImportError: isapython2.6:
fatal: /export/lic01/sybase15.7/OCS- 15_0/python/python26_64r/lib/ wrong ELF class: ELFCLASS64



  • SDK for SAP ASE (Adaptive Server Enterprise) 15.7
  • SUN Solaris X86 64-bit (Can also be Linux x86_64, HP x64, AIX x64, SPARC x64)
  • Python 2.6.X, 3.1.X (in this case python was 32-bit build)


SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0 ; SAP Adaptive Server Enterprise SDK 16.0 ; Sybase SDK 15.7 ; Sybase Software Developer Kit 15.7


script, 64 bit, 32 bit , KBA , BC-SYB-SDK , SDK , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Problem

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.