Description of problem: The graphite-web requires 'python-django >= 1.3' which installs python-django version 1.6 (On F20 at least). The current graphite-web version (0.9.12) does not support django < 1.5 Version-Release number of selected component (if applicable): 0.9.12-5 How reproducible: Install graphite-web on Fedora 20 Steps to Reproduce: 1. # dnf install graphite-web 2. open webpage 3. Actual results: Internal Server Error /var/log/httpd/graphite-web-error.log: ImportError: No module named defaults Expected results: Graphite-web to open. Additional info: https://stackoverflow.com/questions/19962736/django-import-error-no-module-named-django-conf-urls-defaults /var/log/httpd/graphite-web-error.log: [Mon Sep 15 00:22:52.523542 2014] [:error] [pid 722] [client 127.0.0.1:36401] mod_wsgi (pid=722): Exception occurred processing WSGI script '/usr/share/graphite/graphite-web.wsgi'. [Mon Sep 15 00:22:52.523584 2014] [:error] [pid 722] [client 127.0.0.1:36401] Traceback (most recent call last): [Mon Sep 15 00:22:52.523607 2014] [:error] [pid 722] [client 127.0.0.1:36401] File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 206, in __call__ [Mon Sep 15 00:22:52.523719 2014] [:error] [pid 722] [client 127.0.0.1:36401] response = self.get_response(request) [Mon Sep 15 00:22:52.523732 2014] [:error] [pid 722] [client 127.0.0.1:36401] File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 194, in get_response [Mon Sep 15 00:22:52.523749 2014] [:error] [pid 722] [client 127.0.0.1:36401] response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) [Mon Sep 15 00:22:52.523756 2014] [:error] [pid 722] [client 127.0.0.1:36401] File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 232, in handle_uncaught_exception [Mon Sep 15 00:22:52.523767 2014] [:error] [pid 722] [client 127.0.0.1:36401] if resolver.urlconf_module is None: [Mon Sep 15 00:22:52.523773 2014] [:error] [pid 722] [client 127.0.0.1:36401] File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 360, in urlconf_module [Mon Sep 15 00:22:52.523792 2014] [:error] [pid 722] [client 127.0.0.1:36401] self._urlconf_module = import_module(self.urlconf_name) [Mon Sep 15 00:22:52.523804 2014] [:error] [pid 722] [client 127.0.0.1:36401] File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module [Mon Sep 15 00:22:52.523817 2014] [:error] [pid 722] [client 127.0.0.1:36401] __import__(name) [Mon Sep 15 00:22:52.523823 2014] [:error] [pid 722] [client 127.0.0.1:36401] File "/usr/lib/python2.7/site-packages/graphite/urls.py", line 15, in <module> [Mon Sep 15 00:22:52.523833 2014] [:error] [pid 722] [client 127.0.0.1:36401] from django.conf.urls.defaults import * [Mon Sep 15 00:22:52.523849 2014] [:error] [pid 722] [client 127.0.0.1:36401] ImportError: No module named defaults
Created attachment 937484 [details] require python-django15 on f20 specfile patch
Created attachment 937485 [details] patch on wsgi file for use of django15
I've attached a patch for the specfile and a patch for the wsgi file to get graphite-web working on f20 with django 1.5
Thanks, I will review and merge in these changes.
any updates on this?
Yes, I'm working on a large packaging update to the graphite packages. This bug is definitely on my list of things the update should fix. Hopefully will push builds to rawhide and updates-testing by next week.
graphite-web-0.9.12-8.fc21,python-carbon-0.9.12-6.fc21,python-whisper-0.9.12-4.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/graphite-web-0.9.12-8.fc21,python-carbon-0.9.12-6.fc21,python-whisper-0.9.12-4.fc21
graphite-web-0.9.12-8.fc20,python-carbon-0.9.12-6.fc20,python-whisper-0.9.12-4.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/graphite-web-0.9.12-8.fc20,python-carbon-0.9.12-6.fc20,python-whisper-0.9.12-4.fc20
Package graphite-web-0.9.12-8.fc20, python-carbon-0.9.12-6.fc20, python-whisper-0.9.12-4.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing graphite-web-0.9.12-8.fc20 python-carbon-0.9.12-6.fc20 python-whisper-0.9.12-4.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-15082/graphite-web-0.9.12-8.fc20,python-carbon-0.9.12-6.fc20,python-whisper-0.9.12-4.fc20 then log in and leave karma (feedback).
graphite-web-0.9.12-8.fc21, python-carbon-0.9.12-6.fc21, python-whisper-0.9.12-4.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
graphite-web-0.9.12-8.fc20, python-carbon-0.9.12-6.fc20, python-whisper-0.9.12-4.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.