Re: wsgi on RedHat 9
"John P. Rouillard" <[email protected]> Tue, 06 Feb 2024 18:06:38 -0500
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Tonu: In message <CABDFm8gy3bPV+sk_kKtqfENncALrA9c-dY5X+OWW==mhQ5+xzA@mail.gmail.com> , Tonu Mikk writes: >Thanks Ralf and John! The file permissions need fixing. And there was >indeed an error in the Apache Virtual config file. The line > > WSGIScriptAlias /piano /opt/trackers/classic_wsgi.py > >Should have been > WSGIScriptAlias /piano /opt/trackers/classic/classic_wsgi.py > >Once I changed it and restarted Apache, I now get the following error: > >[Tue Feb 06 13:42:39.162045 2024] [wsgi:error] [pid 3131857:tid 3132046] >[remote 10.20.27.232:52794] File "/opt/trackers/classic/classic_wsgi.py", >line 1, in <module> >[Tue Feb 06 13:42:39.162058 2024] [wsgi:error] [pid 3131857:tid 3132046] >[remote 10.20.27.232:52794] from roundup.cgi.wsgi_handler import >RequestDispatcher >[Tue Feb 06 13:42:39.162089 2024] [wsgi:error] [pid 3131857:tid 3132046] >[remote 10.20.27.232:52794] ModuleNotFoundError: No module named 'roundup' Can you run python3 -c 'import roundup' without error? If so, it looks like test_wsgi isn't running the python environment in which you installed Roundup. With your wsgi-test try adding: import sys and replace output... with: output = b'Hooray, mod_wsgi is working: %s, %s' % (sys.version, sys.prefix) That should show your system installed python version and /usr. If the `python3 -c 'import roundup'` fails, then something went weird with your install. As an aside, you can use a venv created from the vendor's python3 by adding a python-home setting. https://modwsgi.readthedocs.io/en/develop/user-guides/virtual-environments.html Hope this helps. -- -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions.