Changes between Initial Version and Version 1 of Ticket #34439


Ignore:
Timestamp:
Mar 27, 2023, 10:24:42 AM (20 months ago)
Author:
Mariusz Felisiak
Comment:

Please don't use Trac as a support channel. Closing per TicketClosingReasons/UseSupportChannels.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34439

    • Property Resolutioninvalid
    • Property Status newclosed
  • Ticket #34439 – Description

    initial v1  
    2121
    2222***httpd.conf*** (C:\Apache24\conf\httpd.conf)
    23 ```
     23{{{
    2424ServerName localhost
    2525Listen 8001
     
    4040LogLevel info
    4141WSGIApplicationGroup %{GLOBAL}
    42 ```
    43 
    44 <br>
     42}}}
    4543
    4644***wsgi.py*** (C:/Users/my_name/my_path/Analyser/wsgi.py)
    4745
    48 ``` python
     46{{{
    4947import os
    5048import sys
     
    6563application = get_wsgi_application()
    6664print(f'checkpoint 2')
    67 ```
     65}}}
    6866
    6967***settings.py*** (C:/Users/my_name/my_path/Analyser/core/settings.py)
    70 ``` python
     68{{{
    7169WSGI_APPLICATION = 'wsgi.application'
    7270
     
    7472from split_settings.tools import include
    7573include('config/*.py',)
    76 ```
     74}}}
    7775
    7876# Issue 1: No module named 'encodings'
     
    8179
    8280***error.log***
    83 ```
     81{{{
    8482Python path configuration:
    8583  PYTHONHOME = (not set)
     
    109107Current thread 0x00007520 (most recent call first):
    110108<no Python frame>
    111 ```
     109}}}
    112110
    113111tried with SetEnv in httpd.conf but it didn't work
    114 ```
     112{{{
    115113# did not work
    116114SetEnv PYTHONHOME "C:/Users/my_name/anaconda3/envs/production"
    117115SetEnv PYTHONPATH "C:/Users/my_name/anaconda3/envs/production/Lib/site-packages"
    118 ```
     116}}}
    119117
    120118I **added to my environment variables**
     
    128126
    129127***error.log***
    130 ```
     128{{{
    131129[Thu Mar 23 14:01:14.062920 2023] [wsgi:info] [pid 31308:tid 1076] mod_wsgi (pid=31308): Create interpreter 'localhost:8001|'.
    132130[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.
     
    135133[Thu Mar 23 14:01:14.298046 2023] [wsgi:error] [pid 31308:tid 1076] checkpoint 1
    136134[Thu Mar 23 14:01:14.298046 2023] [wsgi:error] [pid 31308:tid 1076] \r
    137 ```
     135}}}
    138136
    139137**I tried to set `WSGIApplicationGroup %{GLOBAL}` in httpd.conf**, now i get an Internal Server Error page.
     
    142140
    143141Now the in the ***error.log*** appears:
    144 ```
     142{{{
    145143raise RuntimeError(\r
    146144[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}}}
    148146
    149147I tried to **set CRYPTOGRAPHY_OPENSSL_NO_LEGACY to True**
     
    156154
    157155***error.log***
    158 ```
     156{{{
    159157[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'.
    160158[Thu Mar 23 14:23:33.411332 2023] [wsgi:error] [pid 3540:tid 1044] checkpoint 1
    161159[Thu Mar 23 14:23:33.411332 2023] [wsgi:error] [pid 3540:tid 1044] \r
    162 ```
     160}}}
    163161
    164162And now I'm stuck here.
Back to Top