--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
python3 -m venv dash
Thanks again, I'm going to update my installation instructions to include this and the explanation - it is all a lot clearer now!
--
--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/ef43ace8-4ee7-4df3-836e-4a662c68ea14%40googlegroups.com.
mod_wsgi (pid=147546): Failed to exec Python script file '/home/prajwael/django_project/django_project>
mod_wsgi (pid=147546): Exception occurred processing WSGI script '/home/prajwael/django_project/django>
Traceback (most recent call last):
File "/home/prajwael/django_project/django_project/wsgi.py", line 12, in <module>
[wsgi:error] from django.core.wsgi import get_wsgi_application
[wsgi:error] ModuleNotFoundError: No module named 'django'
As far as the packages used, I am using Python 3.8.2, Apache/2.4.41 (Ubuntu), pip 20.0.2, Django==3.0.6, virtual environment is used, django is installed globally as well as locally. mod_wsgi was installed using the command:
sudo apt-get install libapache2-mod-wsgi-py3
Following is in the django_project.conf file:
WSGIScriptAlias / /home/prajwael/django_project/django_project/wsgi.py
WSGIDaemonProcess django_app python-path=/home/prajwael/django_project python-home=/home/prajwael/django_project/venv
WSGIProcessGroup django_app
wsgi.py file has the following content:
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
application = get_wsgi_application()
Thank you
Can you explain your problem from the start. We don't necessarily see the full history of what the prior issue was about. Plus your issue could be entirely different.So, error you are getting and what you expect, the mod_wsgi configuration you are using, platform, Python version, how mod_wsgi was installed, whether Python virtual environment used, where is Django installed (globally, virtual environment, per user site packages) etc etc. In other words, any information that might be useful to work out what your problem is.
Graham
On 29 May 2020, at 1:55 pm, Prajwal Gautam <gunn.pra...@gmail.com> wrote:
Hi there,I encountered the same problem but I havent been able to fix this issue. Any form of assistance would be highly appreciated!
On Wednesday, May 23, 2018 at 3:40:51 PM UTC-5, Tim Buckland wrote:Ok, I've got this working now :)It seems I needed to issue this command:python3 -m venv dash
... instead of using virtualenv which created a Python 2 virtual environment!--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/d99d4604-9b28-402f-8377-ca1fc78bad1d%40googlegroups.com.
On 29 May 2020, at 8:56 pm, Graham Dumpleton <graham.d...@gmail.com> wrote:If Django is definitely installed in the Python virtual environment, most likely the issue is that mod_wsgi was compiled for a different Python version that Python 3.8.See:You can use mod_wsgi compiled for Python 3.6 or 3.7 with a Python virtual environment created with Python 3.8.
If Django is definitely installed in the Python virtual environment, most likely the issue is that mod_wsgi was compiled for a different Python version that Python 3.8.See:You can use mod_wsgi compiled for Python 3.6 or 3.7 with a Python virtual environment created with Python 3.8.Another cause is that permissions on installed Python packages (Django) are such that the Apache user cannot access them.Confirm what version of Python mod_wsgi is compiled for.Also run Python interpreter with activate Python virtual environment and do:import djangoprint(django.__file__)Check that the directory where it is installed doesn't have restrictive permissions.
Graham
To unsubscribe from this group and stop receiving emails from it, send an email to mod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/d99d4604-9b28-402f-8377-ca1fc78bad1d%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/0723fdda-4cfa-4281-9737-0f204a628993%40googlegroups.com.