-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
mod_wsgi and importing _psycopg #1144
Comments
Hello. I don't have an idea on top of my mind about what it could be. You may try to compile psycopg2 with debug messages and check if there are errors reported at import time that might suggest us where things get stuck. If you would like us to try and investigate you should provide something to make the issue reproducible, such as a docker image. Thank you very much! |
Thank you. |
How did you fix this ? @edgarcosta |
I returned to using gunicorn + proxy, as the python environment to use my app is delicate. |
Can you please detail the action to solve this? Thank you |
Let me try again.
ps: If you don't have admin access to apache, then neither of these two solutions are going to work for you. |
The sooner you get rid of mod_wsgi and everything that binds to apache, the better it is for you. |
This may be related to #995 but I honestly don't understand what is going on in that thread.
When trying to import psycopg2 through mod_wsgi I get the same error message:
I have checked shared object dependencies, via
ldd
, of the.so
file no issues arise.I have also noticed that the mod_wsgi documentation mentions some conflicts with psycopg2, but those seem to be outdated and only about reloading the app.
Any ideas of what
initialization of _psycopg raised unreported exception
means?I googled around, and the only relevant hits I found seem to be related to #995.
Any insight or help is appreciated.
Thank you in advance!
The text was updated successfully, but these errors were encountered: