• Home
  • Jobs
  • Courses
  • Teachers
  • For business
  • Blog
  • ES/EN

0

21
Views
MOD_WSGI cannot locate Oracle instantclient library

I have a flask app running on Apache server using mod_wsgi. Everything works fine until I try to access the database using cx_Oracle. At that moment I get the following error:

sqlalchemy.exc.DatabaseError: (cx_Oracle.DatabaseError) DPI-1047: Cannot locate a 64-bit Oracle Client library: "The specified module could not be found". See https://oracle.github.io/odpi/doc/installation.html#windows for help.

I have added the client library path to the os environment variables. It works well if I start the application from Pycharm IDE.

I have even added the following line in my .wsgi file.

sys.path.append('D:\FlaskDev\instantclient_11_2')

Can anyone help? Thanks in advance

16 days ago ·

Santiago Trujillo

1 answers
Answer question

0

If your python is 64Bits you must to use an 64 instant client too. Try to follow this instructions.

16 days ago · Santiago Trujillo Report
Answer question
Find remote jobs
Loading

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2022 PeakU Inc. All Rights Reserved.