I can't connect to a DB2 remote server using Python. Here is what I've done:
- Created a virtualenv with Python 2.7.10 (On Mac OS X 10.11.1)
- installed ibm-db using
sudo pip install ibm_db
Ran the following code:
import ibm_db ibm_db.connect("my_connection_string", "", "")
I then get the following error:
Exception: [IBM][CLI Driver] SQL1042C An unexpected system error occurred. SQLSTATE=58004 SQLCODE=-1042
I've googled around for hours and trying out different solutions. Unfortunately, I haven't been able to find a proper guide for setting the environment up on Mac OS X + Python + DB2.