Apache errlog _Py_open: Assertion `PyGILState_Check()' failed

Asked by gary

Apache/2.2.31 (Unix) mod_wsgi/4.5.3
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Linux lg10 #1 SMP Thu Apr 14 05:36:26 CST 2011 i686 i686 i386 GNU/Linux

this RedHat 5 server only one IP can send file to it

so I download the python3.5.2, mod_wsgi and complied them by source
 and use pip download ladon to a file and sent to server and install it by sudo pip3.5 install --no-index --find-links /tmp/ladon ladon


    WSGIDaemonProcess lis.ly.gov.tw user=tts group=tts threads=15
    WSGIProcessGroup lis.ly.gov.tw
    WSGIScriptReloading On
    WSGIScriptAlias /service /disk1/websrv/ladon/lyopendata/handler.py

I request by calling "http://XXXXX.tw/service"
server resopond code 500

Apache2 error_log:
httpd: Python/fileutils.c:996: _Py_open: Assertion `PyGILState_Check()' failed.
[Fri Jul 22 00:37:00 2016] [error] [client] Truncated or oversized response headers received from daemon process 'XXXXX.tw': /disk1/websrv/ladon/lyopendata/handler.py
[Fri Jul 22 00:37:01 2016] [notice] child pid 27292 exit signal Aborted (6)

others website on this server all work
I set a "hello world" WSGI also work

where the problem(s?) may be?
I don't have any idea..

Question information

English Edit question
ladon Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :

This question was expired because it remained in the 'Open' state without activity for the last 15 days.