wmjie / ibm-db

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

python import ibm_db on mac returning error #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install ibm_db
2. open python interactive session
3. type "import ibm_db"

What is the expected output? What do you see instead?

python
Python 2.6.1 (r261:67515, Feb 11 2010, 15:47:53) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ibm_db
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: 
dlopen(/Library/Python/2.6/site-packages/ibm_db-1.0.3-py2.6-macosx-10.6-universa
l.egg/ibm_db.so, 2): Symbol not found: _SQLAllocHandle
  Referenced from: /Library/Python/2.6/site-packages/ibm_db-1.0.3-py2.6-macosx-10.6-universal.egg/ibm_db.so
  Expected in: flat namespace
 in /Library/Python/2.6/site-packages/ibm_db-1.0.3-py2.6-macosx-10.6-universal.egg/ibm_db.so

What version of the product are you using? On what operating system?
Darwin MacBook-Pro.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 
18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386

Please provide any additional information below.

Original issue reported on code.google.com by vsrivas...@gmail.com on 8 Oct 2010 at 6:23

GoogleCodeExporter commented 9 years ago
Once delete ibm_db-1.0.3-py2.6-macosx-10.6-universal.egg from 
/Library/Python/2.6/site-packages/ and reinstall ibm_db by following command
easy_install ibm_db

Are you trying to connect with IDS. If yes then please mention the IDS version 
and the DS Driver which you are using. 

Original comment by rahul.pr...@in.ibm.com on 12 Oct 2010 at 9:15

GoogleCodeExporter commented 9 years ago
IDS 11.5
It did not work maybe I need to reinstall sqllib? Why do I need sqllib for 
ibm_db? If I have CSDK will that work?

Original comment by vsrivas...@gmail.com on 23 Nov 2010 at 3:40

GoogleCodeExporter commented 9 years ago
ibm_db uses DB2 DS Driver's CLI APIs under the cover. That's why sqllib 
directory needed.

CSDK will not work instead of DS Driver.

Original comment by rahul.pr...@in.ibm.com on 23 Nov 2010 at 5:30

GoogleCodeExporter commented 9 years ago
Issue: 64 and 63 are same.

Original comment by rahul.pr...@in.ibm.com on 23 Nov 2010 at 5:41