-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More graceful failure when oracle client library is not installed #158
Comments
Thanks, It's true. That error comes directly from Oracle and can't be modified, we can add a test to check whether the library was properly installed (given that cx_Oracle is a requirement, it checks for the installation of the Oracle client first, but not whether is properly installed) |
Yeah, I'd suggest adding import guards around the |
The problem with that is that every Oracle Error is different, from syntax errors to connection errors, locks, etc. I have those guards and actually print the errors instead of raising an Exception. I can definitely add something regarding the first time running to make sure everything is ok. |
Makes sense, yes at least a mention in the readme would be good. It definitely confused me :) |
Will do |
I've updated the Readme with clear instructions and also added a FAQ |
Current if the oracle client library can't be located (for example, if someone installs
easyaccess
from pip but fails to install the oracle binaries), this happens:While the error message does point to the installation instructions for the oracle client, this is such a common pitfall that the error message itself should try to explain what's going wrong in less technical language, something like "easyaccess was unable to load the oracle client library, please follow the installation instructions below:"
I would also encourage you to more prominently explain in the installation instructions in the readme that the oracle client library needs to be installed separately. I'm not sure offhand if that applies only to the pip installation (what I used) or to the conda installation as well.
See openjournals/joss-reviews#1022
The text was updated successfully, but these errors were encountered: