You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was following the steps listed here, when I encountered the problem.
Things I did
git cloned the repository.
setup a virtual environment with python3.7
created the default user and databases exactly as shown via postgresql
executed step 5 and python3 create_db returned error
cannot import name 'DocType' from 'elasticsearch_dsl'
Stacktrace
Traceback (most recent call last): File "create_db.py", line 7, in <module> from app import current_app File "~/fossasia/open-event-server/app/__init__.py", line 36, in <module> from app.api.helpers.jwt import jwt_user_loader File "~/fossasia/open-event-server/app/api/__init__.py", line 1, in <module> from app.api.access_codes import AccessCodeList, AccessCodeListPost, AccessCodeDetail, AccessCodeRelationshipRequired, \ File "~/fossasia/open-event-server/app/api/access_codes.py", line 5, in <module> from app.api.bootstrap import api File "~/fossasia/open-event-server/app/api/bootstrap.py", line 3, in <module> from app.api.helpers.permission_manager import permission_manager File "~/fossasia/open-event-server/app/api/helpers/permission_manager.py", line 9, in <module> from app.models.event import Event File "~/fossasia/open-event-server/app/models/event.py", line 19, in <module> from app.models.search import sync File "~/fossasia/open-event-server/app/models/search/sync.py", line 11, in <module> from app.models.search.event import SearchableEvent File "~/fossasia/open-event-server/app/models/search/event.py", line 2, in <module> from elasticsearch_dsl import DocType, Integer, Search, Text ImportError: cannot import name 'DocType' from 'elasticsearch_dsl' (~/fossasia/open-event-server/venv/lib/python3.7/site-packages/elasticsearch_dsl/__init__.py)
**Additional details: **
OS: debian 9
Python Version: 3.7.3
Additional context
On exploring, I tried changing the version of elasticsearch_dsl in requirements to 6.1.0 and sure enough that solves the problem, should i make a PR with the fix?
The text was updated successfully, but these errors were encountered:
I was following the steps listed here, when I encountered the problem.
Things I did
Stacktrace
**Additional details: **
Additional context
On exploring, I tried changing the version of elasticsearch_dsl in requirements to 6.1.0 and sure enough that solves the problem, should i make a PR with the fix?
The text was updated successfully, but these errors were encountered: