webapp database setup fails

Asked by David Guertin

I'm trying to set up a new install of graphite-web/carbon/whisper, and the configuration is failing at the webapp database setup:

# PYTHONPATH=/opt/graphite/webapp django-admin migrate --settings=graphite.settings

Traceback (most recent call last):
  File "/usr/bin/django-admin", line 8, in <module>
    sys.exit(execute_from_command_line())
  File "/usr/lib/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python3.9/site-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/usr/lib/python3.9/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/lib/python3.9/site-packages/django/apps/registry.py", line 91, in populate
    app_config = AppConfig.create(entry)
  File "/usr/lib/python3.9/site-packages/django/apps/config.py", line 224, in create
    import_module(entry)
  File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'tagging'

I installed from source from the Github repo, and before doing so I ran check-dependencies.py, which succeeded:

# ./check-dependencies.py
All optional dependencies are met.
All necessary dependencies are met.

I can also see that the django-tagging and tagging modules are installed:

# pip list | grep tag
django-tagging 0.4.3
tagging 0.2.1

Why is the database setup not seeing the tagging module? Is this a version issue?

This is Python 3.9.18 on Rocky Linux 9.

Question information

Language:
English Edit question
Status:
Expired
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.