wfastcgi fails import cx_Oracle, but `python -c "import cx_Oracle" succeeds
I am too embarrased to admit how long this has taken me, but I've found the answer.
FastCGI's core business is keeping subprocesses alive so that subsequent calls to the server do not require booting a Python environment. In other words, after installing a python package it is advised to reboot. I solved my first question on SO by rebooting..
The answer to this question got me thinking in the right direction.
Why does my code throw "NameError: name 'ModuleNotFoundError' is not defined" error?
Just to clarify the comments: as many said, ModuleNotFoundError
is only available in Python 3.6 and later versions, but Python 2 must be used. However the ImportError
exception is available in Python 2 and 3, it's just a bit less precise.
Replacing ModuleNotFoundError
with ImportError
should work.
Error: While importing 'new_app', an ImportError was raised
You have a simple typo, from the looks of it.
'set FLASK_APP-new_app.py' should be 'set FLASK_APP=new_app.py'.
Try that.
Robot Framework : Error while connecting Oracle Database through DatabaseLibrary
Can you try using -
Connect to Database using Custom Params cx_Oracle '${ABL_DBOBJECTS}/${abill_2808_prod}@172.20.22.48:1521/${MTNIODC48}'
Also, you can add the dependency like
*** Settings ***
Library ..${/}..${/}lib${/}databaselibrary-0.6${/}DatabaseLibrary${/}
& download the DatabaseLibrary Here
Related Topics
Python Tkinter How to Update a Text Widget in a for Loop
How to Convert an Integer to Time
Merging Two Dataframes With Different Lengths
How to Select Only One Column Using Sqlalchemy
Selenium Python Send_Key Error: List Object Has No Attribute
Plot Two Histograms on Single Chart With Matplotlib
How to Maximize a Plt.Show() Window Using Python
How to Print the Even-Indexed and Odd-Indexed Characters of Strings
Converting a Numpy Array into a Dict of Values Mapped to Rows
How to Read a Column Without Header from CSV and Save the Output in a Txt File Using Python
How to Display the Value of the Bar on Each Bar With Pyplot.Barh()
How to Get Current Cpu and Ram Usage in Python
How to Shut Down a Python Simplehttpserver
Python - How to Sort Multidimensional List to Two-Dimensional List
How to Handle Multiple Keys for a Dictionary in Python