Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ibm_db install problem
#1
I have problem to install ibm_db on Windows Home 10
I managed to install it in Visual Studio with the info successfull instalation but when trying to debug there is problem like below:
------------------------------------------------------
Message=DLL load failed while importing ibm_db: The specified module could not be found.
Source=C:\Users\zdzis\source\repos\PythonApplication2\PythonApplication2\PythonApplication2.py
StackTrace:
File "C:\Users\zdzis\source\repos\PythonApplication2\PythonApplication2\PythonApplication2.py", line 1, in <module> (Current frame)
import ibm_db
--------------------------------------------------------
my sysytem env are:
IBM_DB_HOME=C:\DB2\IBM\SQLLIB
path=C:\Program Files\IBM\IBM DATA SERVER DRIVER
path=C:\DB2\IBM\SQLLIB\clidriver\bin

what can it be, don't you know guys ?
Reply
#2
You most install the Python DBI driver for IBM Db2 | GitHub
This run from command line.
pip install ibm-db
Are you familiars with python and pip from command line?
Do this from cmd
C:\>python -V
Python 3.10.5

where python
C:\python310\python.exe

C:\>pip -V
pip 22.3 from C:\python310\lib\site-packages\pip (python 3.10)
Then in PythonApplication2.py add this as test(run only this).
import sys

print(sys.executable)
Output:
C:\Python310\python.exe
So here you see all point to same version,Visual Studio may install a own version of Python.
I think very few that use Python are use Visual Studio,a lot use VS Code which has better support for Python.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  problem install somewhere package akbarza 1 505 Dec-27-2023, 01:25 PM
Last Post: Gribouillis
  Problem trying to install UniCurses on Python-3.12 / W10-64 rdmaia 5 1,211 Aug-02-2023, 06:24 PM
Last Post: DeaD_EyE
  Pip install problem with Python 3.7, not 3.9 Mark98 2 1,645 Aug-02-2023, 11:51 AM
Last Post: Mark98
  Visual Studio Code venv ibm_db error mesi1000 7 2,856 Nov-13-2022, 12:36 AM
Last Post: snippsat
  install problem 3.9.1 ajvperth 0 1,641 Jan-04-2021, 03:17 PM
Last Post: ajvperth
  Problem: Restart kernel onPydev console when trying to install a python package poppy2020 1 7,740 Nov-25-2020, 06:13 PM
Last Post: Larz60+
  PIP install problem samuelbachorik 1 4,147 Jul-31-2020, 01:33 AM
Last Post: Larz60+
  ibm_db error even though package is installed runnerpaul 6 8,863 Mar-28-2017, 07:22 AM
Last Post: runnerpaul
  OpenCV Install Problem siansoft 2 3,509 Mar-19-2017, 11:03 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020