-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Strange error under Apache and mod_wsgi #8559
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
Comments
I don't see any changes in |
I installed numpy with pip3 on Ubuntu. I couldn't get any traceback, so I traced the error with the primitive print messages method. I could trace it to the Line 226 in eefc4b8
The strange thing is that it only occurs when run through Apache and mod_wsgi. I also have no idea how's that possible. It would be nice if you could reproduce the error to see if it is really there. It might not even be numpy related just it hangs in numpy code for some strange reason... By the way, I could reproduce the error without pandas so it is irrelevant in that sense, just the original call was from that package. |
I wonder whether this is a problem with the manylinux wheel not finding Python symbols? Have a look at this thread. Does it work correctly when you compile numpy yourself ( |
Doesn't seem like the code itself is at fault as the number of repeats is limited. |
Does mod_wsgi use subinterpreters?
…On Feb 3, 2017 9:15 AM, "Charles Harris" ***@***.***> wrote:
Doesn't seem like the code itself is at fault as the number of repeats is
limited.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8559 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAlOaEpQoUDKGypPEMoP1k6c1bn_y3ZMks5rY2CvgaJpZM4L2hM0>
.
|
mod_wsgi uses Python subinterpreters. IOW, this is likely duplicate of
gh-5856
|
So basically: numpy + default-configured-mod_wsgi is not a supported
configuration. It might work sometimes, but other times you will hit issues
like this, and we don't have any realistic plan for how to make numpy safe
for multiple subinterpreters.
You might be able to avoid the issue by configuring mod_wsgi not to use
subinterpreters, possibly with the WSGIApplicationGroup directive. Or there
are lots of ways to host a wsgi app besides mod_wsgi.
|
Thank you guys for the quick and satisfying explanation. |
I am building a web app with Flask when I encountered the strangest error.
pandas-0.19.2
calls inpandas.core.indexing
The call never finish in
numpy-1.12.0
when called from the Apache server environment withmod_wsgi
(compiled forPython/3.5.1+
and runtime usingPython/3.5.2
). The code loads properly when run from a normalPython/3.5.2
interpreter.The very same code executes properly with
pandas-0.18.1
andnumpy-1.11.1
in the same Apache setup.The text was updated successfully, but these errors were encountered: