question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

import filter raises ImportError in 2.0.0

See original GitHub issue

From 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:closed
  • Created 8 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
gdestuyndercommented, Jun 9, 2016

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)

0reactions
dylanninincommented, Apr 1, 2016

Thanks, the filter is deprecated.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found