← Back to team overview

graphite-dev team mailing list archive

[Question #809147]: webapp database setup fails

 

New question #809147 on Graphite:
https://answers.launchpad.net/graphite/+question/809147

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.

-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.