import filter raises ImportError in 2.0.0
See original GitHub issueFrom a fresh install with python3.4:
>>> from elasticsearch_dsl import filter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/tmp/test_py_dsl/lib/python3.4/site-packages/elasticsearch_dsl/filter.py", line 1, in <module>
from .utils import DslBase, BoolMixin, _make_dsl_class
ImportError: cannot import name 'BoolMixin'
In filter.py the Bool class use a mixin which is not present in the code anymore.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
ImportError: cannot import name 'FieldDoesNotExist' from ...
When I looked into the django-filter source file, there was a wrong import of FieldDoesNotExist . When I upgrade django-filter to version 2.4.0 ......
Read more >PIL.Image - Pillow (PIL Fork) 9.3.0 documentation
from . import ImageFilter self.load() if isinstance(filter, Callable): filter = filter() if not hasattr(filter, "filter"): raise TypeError( "filter argument ...
Read more >selenium-wire - PyPI
Fix bug where attempting to filter out non-existent headers would raise an error. Handle possibility of zero byte captured request/response files. 1.0.12 (2020- ......
Read more >Resolve "ImportError: No module named" in AWS Glue
When I try to import extra modules or packages using the AWS Glue Python shell, I get an "ImportError: No module named" response....
Read more >sg_jira.jira_session — sg-jira-bridge master documentation
User, "user_id"): raise ImportError( "The jira version installed is too old. Make sure it is updated to 2.0.0.sg.2+. " 'You can do this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
when you currently try to use filter it basically sees it as a query field so it looks like it works, but then does not because it places inside query>bool (which ES versions that support filter will reject).
(putting that in there for the next noob like me that will wonder why that’s happening exactly)
Thanks, the filter is deprecated.