Python Forum
[split] ibm_db install problem
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] ibm_db install problem
#1
I am on Python 38,

Output:
pip install ibm_db Requirement already satisfied: ibm_db in d:\anaconda\lib\site-packages (3.2.5)
import os
import ibm_db

os.add_dll_directory('C:\Program Files\IBM\clidriver\Bin')
But still I am getting the error, kindly assist.
Error:
Traceback (most recent call last): File "D:\Anaconda\lib\site-packages\IPython\core\interactiveshell.py", line 3418, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-2-08585eaba77c>", line 1, in <module> runfile('C:/Users/ramku/PycharmProjects/pythonProject/T24 monitoring for db.py', wdir='C:/Users/ramku/PycharmProjects/pythonProject') File "C:\Users\ramku\AppData\Roaming\JetBrains\IdeaIC2020.3\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile pydev_imports.execfile(filename, global_vars, local_vars) # execute the script File "C:\Users\ramku\AppData\Roaming\JetBrains\IdeaIC2020.3\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "C:/Users/ramku/PycharmProjects/pythonProject/T24 monitoring for db.py", line 9, in <module> import ibm_db File "C:\Users\ramku\AppData\Roaming\JetBrains\IdeaIC2020.3\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) ImportError: DLL load failed while importing ibm_db: The specified module could not be found.
buran write Feb-13-2025, 07:15 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Reply
#2
from the docs:
Quote:Windows:

If a db2 client or server or dsdriver or clidriver is already installed in the system and user has already set installed path to PATH environment variable, then user need to set environment variable IBM_DB_HOME manaully to the installed path before installing ibm_db.

To verify it, just execute db2level command before installation of ibm_db. If it works, note down the install directory path and set system level environment variable IBM_DB_HOME as install path shown in output of db2level command.

If user has installed clidriver in F:\DSDRIVER and if the "PATH" environment variable has F:\DSDRIVER\bin, then user should also set IBM_DB_HOME to F:\DSDRIVER.

check you setup
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] another problem with code blakeusherremix68 0 415 Dec-23-2024, 11:36 PM
Last Post: blakeusherremix68
  pip install problem taufanjs 4 1,398 Dec-06-2024, 01:37 AM
Last Post: taufanjs
  problem install somewhere package akbarza 1 1,564 Dec-27-2023, 01:25 PM
Last Post: Gribouillis
  Problem trying to install UniCurses on Python-3.12 / W10-64 rdmaia 5 2,900 Aug-02-2023, 06:24 PM
Last Post: DeaD_EyE
  Pip install problem with Python 3.7, not 3.9 Mark98 2 3,303 Aug-02-2023, 11:51 AM
Last Post: Mark98
  Visual Studio Code venv ibm_db error mesi1000 7 4,990 Nov-13-2022, 12:36 AM
Last Post: snippsat
  ibm_db install problem mesi1000 1 5,899 Oct-27-2022, 06:54 PM
Last Post: snippsat
  install problem 3.9.1 ajvperth 0 2,209 Jan-04-2021, 03:17 PM
Last Post: ajvperth
  Problem: Restart kernel onPydev console when trying to install a python package poppy2020 1 9,635 Nov-25-2020, 06:13 PM
Last Post: Larz60+
  PIP install problem samuelbachorik 1 5,313 Jul-31-2020, 01:33 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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