I have now the following error when launching Django :
Traceback (most recent call last):
File "manage.py", line 15, in <module>
execute_from_command_line(sys.argv)
File "/home/ubuntu/.virtualenvs/book_es/lib/python3.5/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
utility.execute()
File "/home/ubuntu/.virtualenvs/book_es/lib/python3.5/site-packages/django/core/management/__init__.py", line 347, in execute
django.setup()
File "/home/ubuntu/.virtualenvs/book_es/lib/python3.5/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/ubuntu/.virtualenvs/book_es/lib/python3.5/site-packages/django/apps/registry.py", line 89, in populate
app_config = AppConfig.create(entry)
File "/home/ubuntu/.virtualenvs/book_es/lib/python3.5/site-packages/django/apps/config.py", line 90, in create
module = import_module(entry)
File "/home/ubuntu/.virtualenvs/book_es/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 665, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/home/ubuntu/.virtualenvs/book_es/lib/python3.5/site-packages/django_elasticsearch_dsl/__init__.py", line 3, in <module>
from .documents import DocType # noqa
File "/home/ubuntu/.virtualenvs/book_es/lib/python3.5/site-packages/django_elasticsearch_dsl/documents.py", line 13, in <module>
from .fields import (
File "/home/ubuntu/.virtualenvs/book_es/lib/python3.5/site-packages/django_elasticsearch_dsl/fields.py", line 9, in <module>
from elasticsearch_dsl.field import (
ImportError: cannot import name 'Attachment'
The documentation indicates "Django REST Framework 3.5 and above and elasticsearch-dsl>=5.0.0,<7.0.0 (Elasticsearch 5.x).
Hello,
With the following environment
I have now the following error when launching Django :
The documentation indicates "Django REST Framework 3.5 and above and elasticsearch-dsl>=5.0.0,<7.0.0 (Elasticsearch 5.x).
Please what's wrong ?
thank you