wmjie / ibm-db

Automatically exported from code.google.com/p/ibm-db
0 stars 0 forks source link

ibm_db_django - better ImportError of ibm_db.pyd diagnostics #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I had issues like described in 
http://code.google.com/p/ibm-db/issues/detail?id=112&q=importerror#makechanges

The issue is that import of ibm_db.pyd can't be done since dependencies of pyd 
file can't be loaded. 

This could be easier detected (apache error log), if ibm_db_django module 
reported real issue. 

That could be improved with the patch in attachment, i.e. instead of reporting:

    raise ImportError( "ibm_db module not found. Install ibm_db module from http://code.google.com/p/ibm-db/." )

report real error:

    raise ImportError( "ibm_db module not found. Install ibm_db module from http://code.google.com/p/ibm-db/. Error: %s" % e )

Then the error is reported like: 

   ibm-db module ... Error: libdb2.so.1: cannot open shared object file: No such file or directory

Original issue reported on code.google.com by trebor74hr@gmail.com on 14 May 2012 at 8:18

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks Robert for indicating about this enhancement. It has been released with 
ibm_db_django-1.0.4.

Original comment by rahul.pr...@in.ibm.com on 16 May 2012 at 11:52