Python论坛  - 讨论区

标题:[python-chinese] 请教一下大家,python下用什么第三方模块连oracle最

2007年11月06日 星期二 15:45

huaihuai hhuai在foxmail.com
星期二 十一月 6 15:45:13 HKT 2007

我试用了一下cx_oracle,弄了好久,import cx_oracle时说找不到模块,
 版本都是对的啊。
-------------- 涓嬩竴閮ㄥ垎 --------------
一个HTML附件被移除...
URL: http://python.cn/pipermail/python-chinese/attachments/20071106/062b6986/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年11月07日 星期三 10:23

23号 no.0023在gmail.com
星期三 十一月 7 10:23:14 HKT 2007

你正确安装了没有?

> 我试用了一下cx_oracle,弄了好久,import cx_oracle时说找不到模块,
> 版本都是对的啊。

> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese

-- 
Best Regards,
       No.23
----
My Blog: http://blog.chinaunix.net/u1/42287/

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年11月07日 星期三 11:04

Xie Yanbo xieyanbo在gmail.com
星期三 十一月 7 11:04:35 HKT 2007

On Nov 6, 2007 3:45 PM, huaihuai <hhuai在foxmail.com> wrote:
> 我试用了一下cx_oracle,弄了好久,import cx_oracle时说找不到模块,
> 版本都是对的啊。

是不是忽略了大小写?正确的应该是:
import cx_Oracle

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年11月08日 星期四 20:11

yuan xuan xuanyuan14.leo在gmail.com
星期四 十一月 8 20:11:37 HKT 2007

估计是这个问题.顺便提一下安装oracle客户端.

在07-11-7,Xie Yanbo <xieyanbo在gmail.com> 写道:
>
> On Nov 6, 2007 3:45 PM, huaihuai <hhuai在foxmail.com> wrote:
> > 我试用了一下cx_oracle,弄了好久,import cx_oracle时说找不到模块,
> > 版本都是对的啊。
>
> 是不是忽略了大小写?正确的应该是:
> import cx_Oracle
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
一个HTML附件被移除...
URL: http://python.cn/pipermail/python-chinese/attachments/20071108/22152907/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年11月08日 星期四 21:28

Antediluvian petercui在gmail.com
星期四 十一月 8 21:28:08 HKT 2007

谁知道在Mac下怎么弄?装了一个instantClient10_1,编译通过了,但是一堆的警告,而且import的时候出这个错误:
Python 2.5.1 (r251:54863, Oct  5 2007, 21:08:09)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cx_Oracle
Traceback (most recent call last):
  File "", line 1, in 
ImportError: dlopen(/Library/Python/2.5/site-packages/cx_Oracle.so, 2):
Symbol not found: _OCIAttrGet
  Referenced from: /Library/Python/2.5/site-packages/cx_Oracle.so
  Expected in: dynamic lookup



On Nov 8, 2007 8:11 PM, yuan xuan <xuanyuan14.leo at gmail.com> wrote:

> 估计是这个问题.顺便提一下安装oracle客户端.
>
> 在07-11-7,Xie Yanbo <xieyanbo at gmail.com> 写道:
>
> > On Nov 6, 2007 3:45 PM, huaihuai <hhuai at foxmail.com> wrote:
> > > 我试用了一下cx_oracle,弄了好久,import cx_oracle时说找不到模块,
> > > 版本都是对的啊。
> >
> > 是不是忽略了大小写?正确的应该是:
> > import cx_Oracle
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>



-- 
There are pretenders among us, geniuses with the ability to become anyone
they want to be.
Some birds aren't meant to be caged. Their feathers are just too bright. And
when they fly away, the part of you that knows it was a sin to lock them up
does rejoice.
一生一代一双人,争教两处销魂。相思相望不相亲,天为谁春?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20071108/0c72319a/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年11月08日 星期四 21:45

yuan xuan xuanyuan14.leo在gmail.com
星期四 十一月 8 21:45:16 HKT 2007

请参考:
http://pedro.emanuel.familiasalgado.org/?p=103

MAC下没做过这样的尝试 :)

在07-11-8,Antediluvian <petercui在gmail.com> 写道:
>
> 谁知道在Mac下怎么弄?装了一个instantClient10_1,编译通过了,但是一堆的警告,而且import的时候出这个错误:
> Python 2.5.1 (r251:54863, Oct  5 2007, 21:08:09)
> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import cx_Oracle
> Traceback (most recent call last):
>   File "", line 1, in 
> ImportError: dlopen(/Library/Python/2.5/site-packages/cx_Oracle.so, 2):
> Symbol not found: _OCIAttrGet
>   Referenced from: /Library/Python/2.5/site-packages/cx_Oracle.so
>   Expected in: dynamic lookup
>
>
>
> On Nov 8, 2007 8:11 PM, yuan xuan <xuanyuan14.leo在gmail.com> wrote:
>
> > 估计是这个问题.顺便提一下安装oracle客户端.
> >
> > 在07-11-7,Xie Yanbo < xieyanbo在gmail.com> 写道:
> >
> > > On Nov 6, 2007 3:45 PM, huaihuai <hhuai在foxmail.com> wrote:
> > > > 我试用了一下cx_oracle,弄了好久,import cx_oracle时说找不到模块,
> > > > 版本都是对的啊。
> > >
> > > 是不是忽略了大小写?正确的应该是:
> > > import cx_Oracle
> > > _______________________________________________
> > > python-chinese
> > > Post: send python-chinese在lists.python.cn
> > > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > > Unsubscribe: send unsubscribe to
> > > python-chinese-request在lists.python.cn
> > > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
> >
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
>
>
>
> --
> There are pretenders among us, geniuses with the ability to become anyone
> they want to be.
> Some birds aren't meant to be caged. Their feathers are just too bright.
> And when they fly away, the part of you that knows it was a sin to lock them
> up does rejoice.
> 一生一代一双人,争教两处销魂。相思相望不相亲,天为谁春?
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
一个HTML附件被移除...
URL: http://python.cn/pipermail/python-chinese/attachments/20071108/697d902a/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号