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

Dev: Cannot import name 'flatatt' from 'django.forms.widgets' #420

Open
AndrewNatoli opened this issue Feb 7, 2023 · 0 comments
Open

Dev: Cannot import name 'flatatt' from 'django.forms.widgets' #420

AndrewNatoli opened this issue Feb 7, 2023 · 0 comments

Comments

@AndrewNatoli
Copy link

Hi! 👋 I'm trying to get the development environment set up (and updating the docs in #419 ) and ran into an issue with the celery container.

It looks like pip install is running in the Dockerfile so I wouldn't expect to get an error for a missing dependency... but I'm also not sure / not too familiar with Django. Raising this as an issue to see if you or anyone might have an idea for a quick solution.

intheam-celery-1  | Traceback (most recent call last):
intheam-celery-1  |   File "manage.py", line 23, in <module>
intheam-celery-1  |     execute_from_command_line(sys.argv)
intheam-celery-1  |   File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
intheam-celery-1  |     utility.execute()
intheam-celery-1  |   File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 338, in execute
intheam-celery-1  |     django.setup()
intheam-celery-1  |   File "/usr/local/lib/python3.8/site-packages/django/__init__.py", line 27, in setup
intheam-celery-1  |     apps.populate(settings.INSTALLED_APPS)
intheam-celery-1  |   File "/usr/local/lib/python3.8/site-packages/django/apps/registry.py", line 85, in populate
intheam-celery-1  |     app_config = AppConfig.create(entry)
intheam-celery-1  |   File "/usr/local/lib/python3.8/site-packages/django/apps/config.py", line 94, in create
intheam-celery-1  |     module = import_module(entry)
intheam-celery-1  |   File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
intheam-celery-1  |     return _bootstrap._gcd_import(name[level:], package, level)
intheam-celery-1  |   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
intheam-celery-1  |   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
intheam-celery-1  |   File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
intheam-celery-1  |   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
intheam-celery-1  |   File "<frozen importlib._bootstrap_external>", line 783, in exec_module
intheam-celery-1  |   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
intheam-celery-1  |   File "/usr/local/lib/python3.8/site-packages/django_filters/__init__.py", line 3, in <module>
intheam-celery-1  |     from .filterset import FilterSet
intheam-celery-1  |   File "/usr/local/lib/python3.8/site-packages/django_filters/filterset.py", line 19, in <module>
intheam-celery-1  |     from .filters import (Filter, CharFilter, BooleanFilter, BaseInFilter, BaseRangeFilter,
intheam-celery-1  |   File "/usr/local/lib/python3.8/site-packages/django_filters/filters.py", line 16, in <module>
intheam-celery-1  |     from .fields import (
intheam-celery-1  |   File "/usr/local/lib/python3.8/site-packages/django_filters/fields.py", line 14, in <module>
intheam-celery-1  |     from .widgets import RangeWidget, LookupTypeWidget, CSVWidget
intheam-celery-1  |   File "/usr/local/lib/python3.8/site-packages/django_filters/widgets.py", line 13, in <module>
intheam-celery-1  |     from django.forms.widgets import flatatt
intheam-celery-1  | ImportError: cannot import name 'flatatt' from 'django.forms.widgets' (/usr/local/lib/python3.8/site-packages/django/forms/widgets.py)

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