Changes between Initial Version and Version 1 of Ticket #34439
- Timestamp:
- Mar 27, 2023, 10:24:42 AM (21 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34439
- Property Resolution → invalid
- Property Status new → closed
-
Ticket #34439 – Description
initial v1 21 21 22 22 ***httpd.conf*** (C:\Apache24\conf\httpd.conf) 23 ``` 23 {{{ 24 24 ServerName localhost 25 25 Listen 8001 … … 40 40 LogLevel info 41 41 WSGIApplicationGroup %{GLOBAL} 42 ``` 43 44 <br> 42 }}} 45 43 46 44 ***wsgi.py*** (C:/Users/my_name/my_path/Analyser/wsgi.py) 47 45 48 ``` python 46 {{{ 49 47 import os 50 48 import sys … … 65 63 application = get_wsgi_application() 66 64 print(f'checkpoint 2') 67 ``` 65 }}} 68 66 69 67 ***settings.py*** (C:/Users/my_name/my_path/Analyser/core/settings.py) 70 ``` python 68 {{{ 71 69 WSGI_APPLICATION = 'wsgi.application' 72 70 … … 74 72 from split_settings.tools import include 75 73 include('config/*.py',) 76 ``` 74 }}} 77 75 78 76 # Issue 1: No module named 'encodings' … … 81 79 82 80 ***error.log*** 83 ``` 81 {{{ 84 82 Python path configuration: 85 83 PYTHONHOME = (not set) … … 109 107 Current thread 0x00007520 (most recent call first): 110 108 <no Python frame> 111 ``` 109 }}} 112 110 113 111 tried with SetEnv in httpd.conf but it didn't work 114 ``` 112 {{{ 115 113 # did not work 116 114 SetEnv PYTHONHOME "C:/Users/my_name/anaconda3/envs/production" 117 115 SetEnv PYTHONPATH "C:/Users/my_name/anaconda3/envs/production/Lib/site-packages" 118 ``` 116 }}} 119 117 120 118 I **added to my environment variables** … … 128 126 129 127 ***error.log*** 130 ``` 128 {{{ 131 129 [Thu Mar 23 14:01:14.062920 2023] [wsgi:info] [pid 31308:tid 1076] mod_wsgi (pid=31308): Create interpreter 'localhost:8001|'. 132 130 [Thu Mar 23 14:01:14.065559 2023] [wsgi:info] [pid 31308:tid 1076] mod_wsgi (pid=31308): Adding 'C:/Users/my_name/anaconda3/envs/production/Lib/site-packages' to path. … … 135 133 [Thu Mar 23 14:01:14.298046 2023] [wsgi:error] [pid 31308:tid 1076] checkpoint 1 136 134 [Thu Mar 23 14:01:14.298046 2023] [wsgi:error] [pid 31308:tid 1076] \r 137 ``` 135 }}} 138 136 139 137 **I tried to set `WSGIApplicationGroup %{GLOBAL}` in httpd.conf**, now i get an Internal Server Error page. … … 142 140 143 141 Now the in the ***error.log*** appears: 144 ``` 142 {{{ 145 143 raise RuntimeError(\r 146 144 [Thu Mar 23 14:09:06.159643 2023] [wsgi:error] [pid 22156:tid 1056] [client ::1:49632] RuntimeError: OpenSSL 3.0's legacy provider failed to load. This is a fatal error by default, but cryptography supports running without legacy algorithms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did not expect this error, you have likely made a mistake with your OpenSSL configuration.\r 147 ``` 145 }}} 148 146 149 147 I tried to **set CRYPTOGRAPHY_OPENSSL_NO_LEGACY to True** … … 156 154 157 155 ***error.log*** 158 ``` 156 {{{ 159 157 [Thu Mar 23 14:23:33.150762 2023] [wsgi:info] [pid 3540:tid 1044] [client ::1:49785] mod_wsgi (pid=3540, process='', application=''): Loading Python script file 'C:/Users/my_name/my_path/Analyser/wsgi.py'. 160 158 [Thu Mar 23 14:23:33.411332 2023] [wsgi:error] [pid 3540:tid 1044] checkpoint 1 161 159 [Thu Mar 23 14:23:33.411332 2023] [wsgi:error] [pid 3540:tid 1044] \r 162 ``` 160 }}} 163 161 164 162 And now I'm stuck here.