Skip to content

Python cx_Oracle error “DPI-1047: Cannot locate a 32-bit Oracle Client” #Python #Oracle #340

@ulfahartinam

Description

@ulfahartinam

I have errors my code program I use Python 3.6.5(32 bit), cx_Oracle 7.2.1, And my OS windows 10(64 bit), how to fix it this error?
this is my message erros:

File "D:\bisa.py", line 3, in
con= cx_Oracle.connect('db_employees/root@localhost/orcl')
cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 32-bit Oracle Client library: "C:\oraclexe\app\oracle\product\11.2.0\server\bin\oci.dll is not the correct architecture". See https://oracle.github.io/odpi/doc/installation.html#windows for help

I have installed the Oracle instant client 64 bits and 32 bits but still have errors

This is picture installed in 32 bit
image

this is picture installed in 64 bit
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions