Thanks all. What I have done is, completely remove Ubuntu 18.04 and install Ubuntu 16.04. It works without any problem. :) Thanks ! On Wed, Jul 17, 2019 at 2:03 PM Akihiro Motoki <amotoki@gmail.com> wrote:
While I don't see any issue around devstack horizon with python3, I see some points to be checked.
- Do you use USE_PYTHON3 in local.conf? - Is the right wsgi module for apache installed? - Can you import django.core.wsgi with right python3 interpreter manually?
The following is an example in my environment.
$ which python3 /usr/bin/python3 $ python3 manage.py shell Python 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole)
from django.core.wsgi import get_wsgi_application
now exiting InteractiveConsole...
$ cat /etc/apache2/mods-enabled/wsgi.load LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so
$ dpkg -S /usr/lib/apache2/modules/mod_wsgi.so libapache2-mod-wsgi-py3: /usr/lib/apache2/modules/mod_wsgi.so
On Tue, Jul 16, 2019 at 7:04 PM Manula Thantriwatte <manulachathurika@gmail.com> wrote:
Hi All,
I have successfully install DevStack in Ubuntu 18.04. But when I'm
accessing the dashboard I'm getting 500 error. What I'm getting in horizon_error.log is,
2019-07-15 14:10:43.218296 mod_wsgi (pid=31763): Target WSGI script
2019-07-15 14:10:43.218323 mod_wsgi (pid=31763): Exception occurred
'/opt/stack/horizon/openstack_dashboard/wsgi.py' cannot be loaded as Python module. processing WSGI script '/opt/stack/horizon/openstack_dashboard/wsgi.py'.
2019-07-15 14:10:43.218349 Traceback (most recent call last): 2019-07-15 14:10:43.218370 File "/opt/stack/horizon/openstack_dashboard/wsgi.py", line 21, in <module> 2019-07-15 14:10:43.218401 from django.core.wsgi import get_wsgi_application 2019-07-15 14:10:43.218422 ImportError: No module named django.core.wsgi
Python Version is : 3.6.8 Django version is : 2.0.5
I tried with uninstalling Djanago and reinstalling it. But it didn't work for me.
Can someone help me on how to resole this issue ?
Thanks ! -- Regards, Manula Chathurika Thantriwatte phone : (+94) 772492511 email : manulachathurika@gmail.com Linkedin : http://lk.linkedin.com/in/manulachathurika blog : http://manulachathurika.blogspot.com/
-- Regards, Manula Chathurika Thantriwatte phone : (+94) 772492511 email : manulachathurika@gmail.com Linkedin : *http://lk.linkedin.com/in/manulachathurika <http://lk.linkedin.com/in/manulachathurika>* blog : http://manulachathurika.blogspot.com/