Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logging error during initial huxley setup #827

Open
TheLickIn13Keys opened this issue Sep 16, 2023 · 0 comments
Open

logging error during initial huxley setup #827

TheLickIn13Keys opened this issue Sep 16, 2023 · 0 comments

Comments

@TheLickIn13Keys
Copy link

I was attempting to set up huxley in a local testing environment when I came across an error, which I assume is regarding the logging system. I followed every step in the initial setup documentation but very well may have missed something. Would appreciate any help as I'm trying to get huxley set up for my local HS MUN conference. Thanks!

Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
  File "/usr/lib/python3.10/logging/config.py", line 390, in resolve
    found = getattr(found, frag)
AttributeError: partially initialized module 'huxley' has no attribute 'logging' (most likely due to a circular import)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/logging/config.py", line 565, in configure
    handler = self.configure_handler(handlers[name])
  File "/usr/lib/python3.10/logging/config.py", line 723, in configure_handler
    klass = self.resolve(cname)
  File "/usr/lib/python3.10/logging/config.py", line 393, in resolve
    found = getattr(found, frag)
AttributeError: partially initialized module 'huxley' has no attribute 'logging' (most likely due to a circular import)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.10/logging/config.py", line 565, in configure
    handler = self.configure_handler(handlers[name])
  File "/usr/lib/python3.10/logging/config.py", line 723, in configure_handler
    klass = self.resolve(cname)
  File "/usr/lib/python3.10/logging/config.py", line 386, in resolve
    found = self.importer(used)
  File "/home/bardia/Projects/huxley/huxley/__init__.py", line 4, in <module>
    from .celery import app as celery_app
  File "/home/bardia/Projects/huxley/huxley/celery.py", line 9, in <module>
    django.setup()
  File "/home/bardia/.virtualenvs/huxley/lib/python3.10/site-packages/django/__init__.py", line 19, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/home/bardia/.virtualenvs/huxley/lib/python3.10/site-packages/django/utils/log.py", line 76, in configure_logging
    logging_config_func(logging_settings)
  File "/usr/lib/python3.10/logging/config.py", line 811, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib/python3.10/logging/config.py", line 572, in configure
    raise ValueError('Unable to configure handler '
ValueError: Unable to configure handler 'database'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/bardia/.virtualenvs/huxley/lib/python3.10/site-packages/django/utils/autoreload.py", line 54, in wrapper
    fn(*args, **kwargs)
  File "/home/bardia/.virtualenvs/huxley/lib/python3.10/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run
    autoreload.raise_last_exception()
  File "/home/bardia/.virtualenvs/huxley/lib/python3.10/site-packages/django/utils/autoreload.py", line 77, in raise_last_exception
    raise _exception[1]
  File "/home/bardia/.virtualenvs/huxley/lib/python3.10/site-packages/django/core/management/__init__.py", line 337, in execute
    autoreload.check_errors(django.setup)()
  File "/home/bardia/.virtualenvs/huxley/lib/python3.10/site-packages/django/utils/autoreload.py", line 54, in wrapper
    fn(*args, **kwargs)
  File "/home/bardia/.virtualenvs/huxley/lib/python3.10/site-packages/django/__init__.py", line 19, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/home/bardia/.virtualenvs/huxley/lib/python3.10/site-packages/django/utils/log.py", line 76, in configure_logging
    logging_config_func(logging_settings)
  File "/usr/lib/python3.10/logging/config.py", line 811, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib/python3.10/logging/config.py", line 572, in configure
    raise ValueError('Unable to configure handler '
ValueError: Unable to configure handler 'database'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant