Failed to exec Python script file #16

Open
opened 2025-11-02 19:12:17 +00:00 by eric · 1 comment
Owner

This is the full log from the WikiDeck Apache server:

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.244.17.29. Set the 'ServerName' directive globally to suppress this message
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.244.17.29. Set the 'ServerName' directive globally to suppress this message
[Fri Oct 31 16:39:44.548083 2025] [mpm_event:notice] [pid 1:tid 1] AH00489: Apache/2.4.62 (Unix) mod_wsgi/4.9.4 Python/3.11 configured -- resuming normal operations
[Fri Oct 31 16:39:44.548296 2025] [core:notice] [pid 1:tid 1] AH00094: Command line: 'httpd -D FOREGROUND'
10.244.9.11 - - [31/Oct/2025:16:40:24 +0000] "GET / HTTP/1.1" 200 6969
10.244.9.11 - - [31/Oct/2025:16:40:25 +0000] "GET /favicon.ico HTTP/1.1" 404 207
10.244.9.11 - - [31/Oct/2025:16:50:21 +0000] "GET / HTTP/1.1" 200 6969
10.244.9.11 - - [31/Oct/2025:16:50:22 +0000] "GET / HTTP/1.1" 200 6969
10.244.9.11 - - [31/Oct/2025:16:50:22 +0000] "GET / HTTP/1.1" 200 6969
10.244.9.11 - - [31/Oct/2025:17:43:11 +0000] "GET / HTTP/1.1" 200 6969
10.244.9.11 - - [31/Oct/2025:17:43:12 +0000] "GET /js/lkk_ch.js HTTP/1.1" 404 207
10.244.9.11 - - [31/Oct/2025:17:43:12 +0000] "GET /css/support_parent.css HTTP/1.1" 404 207
10.244.9.11 - - [31/Oct/2025:17:43:12 +0000] "GET /js/twint_ch.js HTTP/1.1" 404 207
10.244.9.11 - - [31/Oct/2025:18:22:57 +0000] "GET / HTTP/1.1" 200 6969
10.244.9.11 - - [31/Oct/2025:18:22:59 +0000] "GET /favicon.ico HTTP/1.1" 404 207
10.244.9.11 - - [31/Oct/2025:20:29:59 +0000] "GET / HTTP/1.1" 200 6969
10.244.9.11 - - [31/Oct/2025:20:30:00 +0000] "GET /favicon.ico HTTP/1.1" 404 207
10.244.9.11 - - [31/Oct/2025:23:21:27 +0000] "GET / HTTP/1.1" 200 6969
10.244.9.11 - - [01/Nov/2025:01:08:37 +0000] "GET / HTTP/1.1" 200 6969
10.244.9.11 - - [01/Nov/2025:14:19:45 +0000] "GET / HTTP/1.1" 200 6969
[Sat Nov 01 17:03:27.116294 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] mod_wsgi (pid=10): Failed to exec Python script file '/usr/local/apache2/htdocs/wsgi_app.py'.
[Sat Nov 01 17:03:27.116393 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] mod_wsgi (pid=10): Exception occurred processing WSGI script '/usr/local/apache2/htdocs/wsgi_app.py'.
[Sat Nov 01 17:03:27.117583 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] Traceback (most recent call last):
[Sat Nov 01 17:03:27.118033 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782]   File "/usr/local/apache2/htdocs/wsgi_app.py", line 4, in <module>
[Sat Nov 01 17:03:27.118053 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782]     from app import app as application
[Sat Nov 01 17:03:27.118085 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782]   File "/usr/local/apache2/htdocs/wikideck/app.py", line 8, in <module>
[Sat Nov 01 17:03:27.118213 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782]     from Mine.Mine import mine
[Sat Nov 01 17:03:27.118259 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782]   File "/usr/local/apache2/htdocs/wikideck/Mine/Mine.py", line 8, in <module>
[Sat Nov 01 17:03:27.118272 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782]     from cryptography.hazmat.primitives import serialization
[Sat Nov 01 17:03:27.118288 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782]   File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/serialization/__init__.py", line 7, in <module>
[Sat Nov 01 17:03:27.118298 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782]     from cryptography.hazmat.primitives._serialization import (
[Sat Nov 01 17:03:27.118361 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782]   File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/_serialization.py", line 10, in <module>
[Sat Nov 01 17:03:27.118374 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782]     from cryptography.hazmat.primitives.hashes import HashAlgorithm
[Sat Nov 01 17:03:27.118441 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782]   File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/hashes.py", line 9, in <module>
[Sat Nov 01 17:03:27.118456 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782]     from cryptography.hazmat.bindings._rust import openssl as rust_openssl
[Sat Nov 01 17:03:27.118531 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] ImportError: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
10.244.9.11 - - [01/Nov/2025:17:03:26 +0000] "GET /.git/config HTTP/1.1" 500 528
10.244.9.11 - - [02/Nov/2025:04:50:23 +0000] "GET /robots.txt HTTP/1.1" 404 207
[Sun Nov 02 04:50:31.524512 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] mod_wsgi (pid=10): Failed to exec Python script file '/usr/local/apache2/htdocs/wsgi_app.py'.
[Sun Nov 02 04:50:31.527401 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] mod_wsgi (pid=10): Exception occurred processing WSGI script '/usr/local/apache2/htdocs/wsgi_app.py'.
[Sun Nov 02 04:50:31.528393 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] Traceback (most recent call last):
[Sun Nov 02 04:50:31.529401 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164]   File "/usr/local/apache2/htdocs/wsgi_app.py", line 4, in <module>
[Sun Nov 02 04:50:31.530360 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164]     from app import app as application
[Sun Nov 02 04:50:31.530460 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164]   File "/usr/local/apache2/htdocs/wikideck/app.py", line 8, in <module>
[Sun Nov 02 04:50:31.530804 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164]     from Mine.Mine import mine
[Sun Nov 02 04:50:31.531144 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164]   File "/usr/local/apache2/htdocs/wikideck/Mine/Mine.py", line 8, in <module>
[Sun Nov 02 04:50:31.531182 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164]     from cryptography.hazmat.primitives import serialization
[Sun Nov 02 04:50:31.531428 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164]   File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/serialization/__init__.py", line 7, in <module>
[Sun Nov 02 04:50:31.531515 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164]     from cryptography.hazmat.primitives._serialization import (
[Sun Nov 02 04:50:31.531871 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164]   File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/_serialization.py", line 10, in <module>
[Sun Nov 02 04:50:31.532201 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164]     from cryptography.hazmat.primitives.hashes import HashAlgorithm
[Sun Nov 02 04:50:31.532258 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164]   File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/hashes.py", line 9, in <module>
[Sun Nov 02 04:50:31.532742 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164]     from cryptography.hazmat.bindings._rust import openssl as rust_openssl
[Sun Nov 02 04:50:31.533279 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] ImportError: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
10.244.9.11 - - [02/Nov/2025:04:50:31 +0000] "GET / HTTP/1.1" 500 528
10.244.9.11 - - [02/Nov/2025:04:57:46 +0000] "GET / HTTP/1.1" 500 33
10.244.9.11 - - [02/Nov/2025:06:39:11 +0000] "GET /robots.txt HTTP/1.1" 404 207
10.244.9.11 - - [02/Nov/2025:06:39:11 +0000] "GET / HTTP/1.1" 500 33
[Sun Nov 02 19:03:32.369153 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] mod_wsgi (pid=10): Failed to exec Python script file '/usr/local/apache2/htdocs/wsgi_app.py'.
[Sun Nov 02 19:03:32.369963 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] mod_wsgi (pid=10): Exception occurred processing WSGI script '/usr/local/apache2/htdocs/wsgi_app.py'.
[Sun Nov 02 19:03:32.371083 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] Traceback (most recent call last):
[Sun Nov 02 19:03:32.371982 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540]   File "/usr/local/apache2/htdocs/wsgi_app.py", line 4, in <module>
[Sun Nov 02 19:03:32.372031 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540]     from app import app as application
[Sun Nov 02 19:03:32.372069 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540]   File "/usr/local/apache2/htdocs/wikideck/app.py", line 8, in <module>
[Sun Nov 02 19:03:32.372083 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540]     from Mine.Mine import mine
[Sun Nov 02 19:03:32.372108 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540]   File "/usr/local/apache2/htdocs/wikideck/Mine/Mine.py", line 8, in <module>
[Sun Nov 02 19:03:32.372121 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540]     from cryptography.hazmat.primitives import serialization
[Sun Nov 02 19:03:32.372482 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540]   File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/serialization/__init__.py", line 7, in <module>
[Sun Nov 02 19:03:32.372765 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540]     from cryptography.hazmat.primitives._serialization import (
[Sun Nov 02 19:03:32.372903 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540]   File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/_serialization.py", line 10, in <module>
[Sun Nov 02 19:03:32.372939 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540]     from cryptography.hazmat.primitives.hashes import HashAlgorithm
[Sun Nov 02 19:03:32.373165 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540]   File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/hashes.py", line 9, in <module>
[Sun Nov 02 19:03:32.373201 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540]     from cryptography.hazmat.bindings._rust import openssl as rust_openssl
[Sun Nov 02 19:03:32.373546 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] ImportError: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
10.244.9.11 - - [02/Nov/2025:19:03:32 +0000] "GET / HTTP/1.1" 500 528
10.244.9.11 - - [02/Nov/2025:19:03:32 +0000] "GET /favicon.ico HTTP/1.1" 404 207
10.244.9.11 - - [02/Nov/2025:19:03:43 +0000] "GET / HTTP/1.1" 500 33
10.244.9.11 - - [02/Nov/2025:19:03:43 +0000] "GET /favicon.ico HTTP/1.1" 404 207
10.244.9.11 - - [02/Nov/2025:19:03:46 +0000] "GET / HTTP/1.1" 500 33
10.244.9.11 - - [02/Nov/2025:19:03:46 +0000] "GET /favicon.ico HTTP/1.1" 404 207

Once Python fails, the server begins responding with the error described in #15.

This is the full log from the WikiDeck Apache server: ``` AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.244.17.29. Set the 'ServerName' directive globally to suppress this message AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.244.17.29. Set the 'ServerName' directive globally to suppress this message [Fri Oct 31 16:39:44.548083 2025] [mpm_event:notice] [pid 1:tid 1] AH00489: Apache/2.4.62 (Unix) mod_wsgi/4.9.4 Python/3.11 configured -- resuming normal operations [Fri Oct 31 16:39:44.548296 2025] [core:notice] [pid 1:tid 1] AH00094: Command line: 'httpd -D FOREGROUND' 10.244.9.11 - - [31/Oct/2025:16:40:24 +0000] "GET / HTTP/1.1" 200 6969 10.244.9.11 - - [31/Oct/2025:16:40:25 +0000] "GET /favicon.ico HTTP/1.1" 404 207 10.244.9.11 - - [31/Oct/2025:16:50:21 +0000] "GET / HTTP/1.1" 200 6969 10.244.9.11 - - [31/Oct/2025:16:50:22 +0000] "GET / HTTP/1.1" 200 6969 10.244.9.11 - - [31/Oct/2025:16:50:22 +0000] "GET / HTTP/1.1" 200 6969 10.244.9.11 - - [31/Oct/2025:17:43:11 +0000] "GET / HTTP/1.1" 200 6969 10.244.9.11 - - [31/Oct/2025:17:43:12 +0000] "GET /js/lkk_ch.js HTTP/1.1" 404 207 10.244.9.11 - - [31/Oct/2025:17:43:12 +0000] "GET /css/support_parent.css HTTP/1.1" 404 207 10.244.9.11 - - [31/Oct/2025:17:43:12 +0000] "GET /js/twint_ch.js HTTP/1.1" 404 207 10.244.9.11 - - [31/Oct/2025:18:22:57 +0000] "GET / HTTP/1.1" 200 6969 10.244.9.11 - - [31/Oct/2025:18:22:59 +0000] "GET /favicon.ico HTTP/1.1" 404 207 10.244.9.11 - - [31/Oct/2025:20:29:59 +0000] "GET / HTTP/1.1" 200 6969 10.244.9.11 - - [31/Oct/2025:20:30:00 +0000] "GET /favicon.ico HTTP/1.1" 404 207 10.244.9.11 - - [31/Oct/2025:23:21:27 +0000] "GET / HTTP/1.1" 200 6969 10.244.9.11 - - [01/Nov/2025:01:08:37 +0000] "GET / HTTP/1.1" 200 6969 10.244.9.11 - - [01/Nov/2025:14:19:45 +0000] "GET / HTTP/1.1" 200 6969 [Sat Nov 01 17:03:27.116294 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] mod_wsgi (pid=10): Failed to exec Python script file '/usr/local/apache2/htdocs/wsgi_app.py'. [Sat Nov 01 17:03:27.116393 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] mod_wsgi (pid=10): Exception occurred processing WSGI script '/usr/local/apache2/htdocs/wsgi_app.py'. [Sat Nov 01 17:03:27.117583 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] Traceback (most recent call last): [Sat Nov 01 17:03:27.118033 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] File "/usr/local/apache2/htdocs/wsgi_app.py", line 4, in <module> [Sat Nov 01 17:03:27.118053 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] from app import app as application [Sat Nov 01 17:03:27.118085 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] File "/usr/local/apache2/htdocs/wikideck/app.py", line 8, in <module> [Sat Nov 01 17:03:27.118213 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] from Mine.Mine import mine [Sat Nov 01 17:03:27.118259 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] File "/usr/local/apache2/htdocs/wikideck/Mine/Mine.py", line 8, in <module> [Sat Nov 01 17:03:27.118272 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] from cryptography.hazmat.primitives import serialization [Sat Nov 01 17:03:27.118288 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/serialization/__init__.py", line 7, in <module> [Sat Nov 01 17:03:27.118298 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] from cryptography.hazmat.primitives._serialization import ( [Sat Nov 01 17:03:27.118361 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/_serialization.py", line 10, in <module> [Sat Nov 01 17:03:27.118374 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] from cryptography.hazmat.primitives.hashes import HashAlgorithm [Sat Nov 01 17:03:27.118441 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/hashes.py", line 9, in <module> [Sat Nov 01 17:03:27.118456 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] from cryptography.hazmat.bindings._rust import openssl as rust_openssl [Sat Nov 01 17:03:27.118531 2025] [wsgi:error] [pid 10:tid 69] [client 10.244.9.11:46782] ImportError: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576 10.244.9.11 - - [01/Nov/2025:17:03:26 +0000] "GET /.git/config HTTP/1.1" 500 528 10.244.9.11 - - [02/Nov/2025:04:50:23 +0000] "GET /robots.txt HTTP/1.1" 404 207 [Sun Nov 02 04:50:31.524512 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] mod_wsgi (pid=10): Failed to exec Python script file '/usr/local/apache2/htdocs/wsgi_app.py'. [Sun Nov 02 04:50:31.527401 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] mod_wsgi (pid=10): Exception occurred processing WSGI script '/usr/local/apache2/htdocs/wsgi_app.py'. [Sun Nov 02 04:50:31.528393 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] Traceback (most recent call last): [Sun Nov 02 04:50:31.529401 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] File "/usr/local/apache2/htdocs/wsgi_app.py", line 4, in <module> [Sun Nov 02 04:50:31.530360 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] from app import app as application [Sun Nov 02 04:50:31.530460 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] File "/usr/local/apache2/htdocs/wikideck/app.py", line 8, in <module> [Sun Nov 02 04:50:31.530804 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] from Mine.Mine import mine [Sun Nov 02 04:50:31.531144 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] File "/usr/local/apache2/htdocs/wikideck/Mine/Mine.py", line 8, in <module> [Sun Nov 02 04:50:31.531182 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] from cryptography.hazmat.primitives import serialization [Sun Nov 02 04:50:31.531428 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/serialization/__init__.py", line 7, in <module> [Sun Nov 02 04:50:31.531515 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] from cryptography.hazmat.primitives._serialization import ( [Sun Nov 02 04:50:31.531871 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/_serialization.py", line 10, in <module> [Sun Nov 02 04:50:31.532201 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] from cryptography.hazmat.primitives.hashes import HashAlgorithm [Sun Nov 02 04:50:31.532258 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/hashes.py", line 9, in <module> [Sun Nov 02 04:50:31.532742 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] from cryptography.hazmat.bindings._rust import openssl as rust_openssl [Sun Nov 02 04:50:31.533279 2025] [wsgi:error] [pid 10:tid 71] [client 10.244.9.11:52164] ImportError: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576 10.244.9.11 - - [02/Nov/2025:04:50:31 +0000] "GET / HTTP/1.1" 500 528 10.244.9.11 - - [02/Nov/2025:04:57:46 +0000] "GET / HTTP/1.1" 500 33 10.244.9.11 - - [02/Nov/2025:06:39:11 +0000] "GET /robots.txt HTTP/1.1" 404 207 10.244.9.11 - - [02/Nov/2025:06:39:11 +0000] "GET / HTTP/1.1" 500 33 [Sun Nov 02 19:03:32.369153 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] mod_wsgi (pid=10): Failed to exec Python script file '/usr/local/apache2/htdocs/wsgi_app.py'. [Sun Nov 02 19:03:32.369963 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] mod_wsgi (pid=10): Exception occurred processing WSGI script '/usr/local/apache2/htdocs/wsgi_app.py'. [Sun Nov 02 19:03:32.371083 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] Traceback (most recent call last): [Sun Nov 02 19:03:32.371982 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] File "/usr/local/apache2/htdocs/wsgi_app.py", line 4, in <module> [Sun Nov 02 19:03:32.372031 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] from app import app as application [Sun Nov 02 19:03:32.372069 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] File "/usr/local/apache2/htdocs/wikideck/app.py", line 8, in <module> [Sun Nov 02 19:03:32.372083 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] from Mine.Mine import mine [Sun Nov 02 19:03:32.372108 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] File "/usr/local/apache2/htdocs/wikideck/Mine/Mine.py", line 8, in <module> [Sun Nov 02 19:03:32.372121 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] from cryptography.hazmat.primitives import serialization [Sun Nov 02 19:03:32.372482 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/serialization/__init__.py", line 7, in <module> [Sun Nov 02 19:03:32.372765 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] from cryptography.hazmat.primitives._serialization import ( [Sun Nov 02 19:03:32.372903 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/_serialization.py", line 10, in <module> [Sun Nov 02 19:03:32.372939 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] from cryptography.hazmat.primitives.hashes import HashAlgorithm [Sun Nov 02 19:03:32.373165 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] File "/usr/local/lib/python3.11/dist-packages/cryptography/hazmat/primitives/hashes.py", line 9, in <module> [Sun Nov 02 19:03:32.373201 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] from cryptography.hazmat.bindings._rust import openssl as rust_openssl [Sun Nov 02 19:03:32.373546 2025] [wsgi:error] [pid 10:tid 73] [client 10.244.9.11:42540] ImportError: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576 10.244.9.11 - - [02/Nov/2025:19:03:32 +0000] "GET / HTTP/1.1" 500 528 10.244.9.11 - - [02/Nov/2025:19:03:32 +0000] "GET /favicon.ico HTTP/1.1" 404 207 10.244.9.11 - - [02/Nov/2025:19:03:43 +0000] "GET / HTTP/1.1" 500 33 10.244.9.11 - - [02/Nov/2025:19:03:43 +0000] "GET /favicon.ico HTTP/1.1" 404 207 10.244.9.11 - - [02/Nov/2025:19:03:46 +0000] "GET / HTTP/1.1" 500 33 10.244.9.11 - - [02/Nov/2025:19:03:46 +0000] "GET /favicon.ico HTTP/1.1" 404 207 ``` Once Python fails, the server begins responding with the error described in #15.
Author
Owner

From falcon3-3b-instruct on LocalAI:

To troubleshoot the issue with the Python script failing due to the import error involving PyO3 and cryptography, you can follow these steps:

1. Isolate the Problem

  • Check PyO3 Version Compatibility:
    Ensure that your system has the correct version of PyO3 installed, as the error you're encountering suggests a problem with subinterpreters. You can check your PyO3 version by running:

    pip show pyo3
    

    If the version is outdated, consider updating:

    pip install --upgrade pyo3
    
  • Verify Cryptography Installation:
    Make sure that PyO3 is properly integrating with the cryptography library. You can try installing cryptography separately from PyO3 to see if the issue persists. This can help isolate whether the problem is with PyO3 itself or how it interacts with cryptography.

2. Review the Error Messages

  • Understanding PyO3 Import Error:
    The error message indicates that PyO3 modules do not support subinterpreters, which is a known issue (as mentioned in the GitHub issue you've cited: https://github.com/PyO3/pyo3/issues/576). This suggests that there may be a conflict between PyO3 and the specific cryptography bindings.

3. Alternative Solutions

  • Use an Alternative Cryptography Library:
    Since PyO3 has issues with cryptography bindings, consider using a pure-Python cryptography alternative like cryptography-cython or cryptography-pybind11 which might not have the same subinterpreter issue.

  • Manually Install Cryptography:
    If you want to stick with PyO3, you might need to manually install the specific cryptography bindings for PyO3. This process can be complex and depends heavily on your system and PyO3 version. You might find a workaround or a community solution in the PyO3 or cryptography GitHub issues.

4. Check Your Code and Configuration

  • Review Your Code:
    Ensure that your app.py and Mine.py files are correctly structured and that there are no typos or logical errors that could be causing the script to fail.

  • Apache Configuration:
    Verify that your Apache configuration file (httpd.conf or apache2.conf) correctly points to your Python script (/usr/local/apache2/htdocs/wikideck/Mine/Mine.py).

5. Community and Support

  • Seek Community Help:
    If you're unable to resolve the issue through direct troubleshooting, posting a detailed description of your problem on platforms like Stack Overflow or the PyO3 or cryptography GitHub issues could lead to valuable community assistance.

Conclusion

The error you're encountering seems to be a PyO3-specific issue related to cryptography bindings. Given that this is a common problem and the PyO3 community is active, reaching out for more detailed help or finding an alternative solution might be the most effective approach.

From falcon3-3b-instruct on LocalAI: > To troubleshoot the issue with the Python script failing due to the import error involving PyO3 and cryptography, you can follow these steps: > > ### 1. **Isolate the Problem** > - **Check PyO3 Version Compatibility:** > Ensure that your system has the correct version of PyO3 installed, as the error you're encountering suggests a problem with subinterpreters. You can check your PyO3 version by running: > ```sh > pip show pyo3 > ``` > If the version is outdated, consider updating: > ```sh > pip install --upgrade pyo3 > ``` > > - **Verify Cryptography Installation:** > Make sure that PyO3 is properly integrating with the cryptography library. You can try installing cryptography separately from PyO3 to see if the issue persists. This can help isolate whether the problem is with PyO3 itself or how it interacts with cryptography. > > ### 2. **Review the Error Messages** > - **Understanding PyO3 Import Error:** > The error message indicates that PyO3 modules do not support subinterpreters, which is a known issue (as mentioned in the GitHub issue you've cited: [https://github.com/PyO3/pyo3/issues/576](https://github.com/PyO3/pyo3/issues/576)). This suggests that there may be a conflict between PyO3 and the specific cryptography bindings. > > ### 3. **Alternative Solutions** > - **Use an Alternative Cryptography Library:** > Since PyO3 has issues with cryptography bindings, consider using a pure-Python cryptography alternative like `cryptography-cython` or `cryptography-pybind11` which might not have the same subinterpreter issue. > > - **Manually Install Cryptography:** > If you want to stick with PyO3, you might need to manually install the specific cryptography bindings for PyO3. This process can be complex and depends heavily on your system and PyO3 version. You might find a workaround or a community solution in the PyO3 or cryptography GitHub issues. > > ### 4. **Check Your Code and Configuration** > - **Review Your Code:** > Ensure that your `app.py` and `Mine.py` files are correctly structured and that there are no typos or logical errors that could be causing the script to fail. > > - **Apache Configuration:** > Verify that your Apache configuration file (`httpd.conf` or `apache2.conf`) correctly points to your Python script (`/usr/local/apache2/htdocs/wikideck/Mine/Mine.py`). > > ### 5. **Community and Support** > - **Seek Community Help:** > If you're unable to resolve the issue through direct troubleshooting, posting a detailed description of your problem on platforms like Stack Overflow or the PyO3 or cryptography GitHub issues could lead to valuable community assistance. > > ### Conclusion > The error you're encountering seems to be a PyO3-specific issue related to cryptography bindings. Given that this is a common problem and the PyO3 community is active, reaching out for more detailed help or finding an alternative solution might be the most effective approach.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: WikiDeck/wikideck#16
No description provided.