Re: [cx-oracle-users] cx_Oracle installation problem / python
Brought to you by:
atuining
From: Amaury F. d'A. <ama...@gm...> - 2011-11-28 15:40:32
|
2011/11/28 Humberto Ferreira da Luz Junior <hum...@gm...> > Hi, I need to access an oracle database with python. > In order to install cx_oracle I followed thoses steps: > 1. I installed python-2.7.2.amd64.msi. > 2. I installed cx_Oracle-5.1.1-10g.win-amd64- > py2.7.msi > 3. I opened the IDEL (Python GUI) to test cx_oracle: > >>> import cx_Oracle > > Traceback (most recent call last): > File "<pyshell#1>", line 1, in <module> > import cx_Oracle > ImportError: DLL load failed: %1 não é um aplicativo Win32 válido. (%1 is > not a valid Win32 app). > > I asked for help in the web2app google group but they said that this is > probably an cx_oracle issue. Could somebody give me a tip to solve this > problem? > > Obs. cx_Oracle.pyd is located in C:\Python27\Lib\site-packages. > It's certainly an incompatibility with the Oracle client found in the PATH. Are you sure to use a 64bit version of the Oracle client? If you downloaded the Instant Client, it's probably a 32bit version, which can only work in a 32bit program -- Amaury Forgeot d'Arc |