Description of problem:
The version of python-django is too old according to requirements for graphite-web. Any execution of the python scripts shipped with the latest EPEL release of python-django and graphite-web result in failure. graphite-web 0.9.16 requires at least version 1.14 to function (see additional info).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. yum install graphite-web python-django
2. Ensure versions are identical to above (current latest versions from EPEL7)
3. Execute /usr/bin/graphite-manage
Traceback (most recent call last):
File "/usr/bin/graphite-manage", line 13, in <module>
File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute
File "/usr/lib/python2.7/site-packages/django/__init__.py", line 27, in setup
File "/usr/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
File "/usr/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
File "/usr/lib/python2.7/site-packages/graphite/events/models.py", line 6, in <module>
from tagging.managers import ModelTaggedItemManager
File "/usr/lib/python2.7/site-packages/tagging/managers.py", line 8, in <module>
from tagging.models import Tag, TaggedItem
File "/usr/lib/python2.7/site-packages/tagging/models.py", line 10, in <module>
from django.contrib.contenttypes import generic
ImportError: cannot import name generic
Normal python exit behavior.
Actually 1.11 > 1.4.
So Django is too new. Maybe try python-django16. That's 1.6. Still not 1.4 but closer.
Yes sorry that's what I meant to type. I checked with python-django16 and it seems to work fine. The graphite-web package however in this case should require python-django16 instead.
or this opens the door to finally update graphite-web.
| (In reply to Matthias Runge from comment #3)
> or this opens the door to finally update graphite-web.
That is what I wanted to do for a long time. But by now I'm not sure if that can be done without breaking existing installations which would probably be against EPEL guidelines. I don't have time to figure that out and don't want people to shout at me for breaking their installation which has been working for 5 years..
So I don't plan to update EPEL7 any more. I will update it in EPEL8 when that comes available.
If someone else wants to update, then be my guest, I'll assign permissions.
graphite-web-0.9.16-3.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-c7b042b501
graphite-web-0.9.16-3.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-c7b042b501
graphite-web-0.9.16-3.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.