This content has been marked as final. Show 6 replies
Thank you. Your post helped me look in right direction.
Windows XP, Python 2.6, Django 1.1, Oracle client 9.2 and 10.2, cx_Oracle 5.0.2 (for Oracle 10) on my computer.
Issue was i did not have ORACLE_BASE=C:/oracle and ORACLE_HOME=C:\oracle\10.2 defined as env variable.
Also, the path had both 9.2 and 10.2 defined.
When i ran server it gave: DLL not found even though it exists. Once i removed all 9.2 entries from my env variables it worked like a charm.
I am still a newbie and trying to get data out from oracle db using python/django.
I am also trying to use cx_oracle module with python & django. The module installed without any problem but
while running the server, I am getting following errors
Unhandled exception in thread started by <function inner_run at 0x00D17970>
Traceback (most recent call last):
File "C:\Documents and Settings\tbodha\Desktop\django\Python26\Lib\site-packages\django\core\management\commands\runserver.py", line 48, in inner_run self.validate(display_num_errors=True)
File "C:\Documents and Settings\tbodha\Desktop\django\Python26\Lib\site-packages\django\core\management\base.py", line 249, in validate num_errors = get_validation_errors(s, app)
File "C:\Documents and Settings\tbodha\Desktop\django\Python26\Lib\site-packages\django\core\management\validation.py", line 22, in get_validation_errors from django.db import models, connection
File "C:\Documents and Settings\tbodha\Desktop\django\Python26\Lib\site-packages\django\db\__init__.py", line 41, in <module> backend = load_backend(settings.DATABASE_ENGINE)
File "C:\Documents and Settings\tbodha\Desktop\django\Python26\Lib\site-packages\django\db\__init__.py", line 17, in load_backend return import_module('.base', 'django.db.backends.%s' % backend_name)
File "C:\Documents and Settings\tbodha\Desktop\django\Python26\Lib\site-packages\django\utils\importlib.py", line 35, in import_module __import__(name)
File "C:\Documents and Settings\tbodha\Desktop\django\Python26\Lib\site-packages\django\db\backends\oracle\base.py", line 25, in <module> raise ImproperlyConfigured("Error loading cx_Oracle module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading cx_Oracle module: DLL
load failed: The specified procedure could not be found.
can anybody point me which configuration value, I am missing?
Edited by: 3nath on Oct 27, 2009 7:37 AM
You might need to install the file: vcredist_x86.exe (or the x64 version) in case you haven't installed the runtime from some other application packages.
You might be able to download from this site:
Edited by: dbaktiar on Dec 19, 2009 7:55 AM