[英]cx_Oracle 5.1.1 under apache+mod_wsgi
if I use cx_Oracle 5.0.4, I can connect from python console, and works under apache+django+mod_wsgi 如果我使用cx_Oracle 5.0.4,则可以从python控制台连接,并且可以在apache + django + mod_wsgi下工作
but when I update cx_Oracle 5.1.1, I can connect from python console, BUT same code doesn't work under apache+django+mod_wsgi 但是当我更新cx_Oracle 5.1.1时,我可以从python控制台连接,但是相同的代码在apache + django + mod_wsgi下不起作用
File "C:\\Python27\\lib\\site-packages\\django\\db\\backends\\oracle\\base.py", line 24, in 文件“ C:\\ Python27 \\ lib \\ site-packages \\ django \\ db \\ backends \\ oracle \\ base.py”,第24行,在
raise ImproperlyConfigured("Error loading cx_Oracle module: %s" % e) 引发ImproperlyConfigured(“加载cx_Oracle模块时出错:%s”%e)
TemplateSyntaxError: Caught ImproperlyConfigured while rendering: Error loading cx_Oracle module: DLL load failed: The specified module could not be found. TemplateSyntaxError:渲染时被错误配置:加载cx_Oracle模块时出错:DLL加载失败:找不到指定的模块。
PS: python 2.7 PS:python 2.7
PSS: I have instaled MSVC 2008 Redistributable x86 PSS:我已经安装了MSVC 2008 Redistributable x86
Need a solution as well. 也需要一个解决方案。
I have the same setup on WinXP (Apache 2.2.21/ mod_wsgi 3.3/ python 2.7.2/ cx_Oracle 5.xx). 我在WinXP上具有相同的设置(Apache 2.2.21 / mod_wsgi 3.3 / python 2.7.2 / cx_Oracle 5.xx)。 I found that cx_Oracle 5.1 also fails with the same error.
我发现cx_Oracle 5.1也因相同的错误而失败。 Only 5.0.4 works.
仅5.0.4有效。
Here is the list of changes that were made from 5.0.4 to 5.1: 这是从5.0.4到5.1所做的更改的列表:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.