Comments (4)
I am having trouble replicating this. I can get an exception, but not import error, what I get is:
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/Users/honza/.pyenv/versions/2.7.6/lib/python2.7/code.py", line 216, in interact
sys.ps2
AttributeError: 'module' object has no attribute 'ps2'
When I run this without the --plain
suing ipython it works fine. My guess is that it freaks out about the raise #XXX statement in .execute()
. And indeed when I try it with the mapping
branch which doesn't have that (and instead properly raises a known exception - KeyError
) it works fine.
Could you please verify this is the case?
Thanks!
from elasticsearch-dsl-py.
With no information I assume it is fixed with the new code merged from the branch mapping
. Feel free to reopen this if that's not the case.
Thanks!
from elasticsearch-dsl-py.
fix it, add these codes into manage.py
.
import sys
sys.ps1 = '>>> '
sys.ps2 = '... '
from elasticsearch-dsl-py.
or remove monkey.patch_all
from elasticsearch-dsl-py.
Related Issues (20)
- How to add a mapping on the Document class HOT 1
- Missing TopMetrics aggregation
- Document use cases where mappings already exist (re Persistence) HOT 1
- Using/configuring pipelines for indices
- Support more advanced IndexTemplate use cases (ex. flexible routing)
- Deprecation warnings in elasticsearch 8.12.0 with current version 8.12.0 of this library HOT 9
- Unexpected outcome when combining queries HOT 2
- Issues with updating nested objects in Elasticsearch DSL within Django Rest Framework?
- Updating nested issue
- Trio support
- kNN as a query support
- ImportError: cannot import name 'AggsProxy' from 'elasticsearch_dsl.search' HOT 3
- Inconsistent handling of empty lists in Document partial updates. HOT 2
- Better support for sparse vectors and ELSER HOT 1
- Add support for defining ingest pipelines
- Enable Direct Access to `ConstantKeyword` from `elasticsearch_dsl `Module HOT 1
- Fix version specifier syntax in dependency string HOT 6
- cannot import name 'ApiError' from 'elasticsearch.exceptions' HOT 4
- mapper [embedding_field] cannot be changed from type [dense_vector] to [float] HOT 4
- v8.15.0 breaks things related to type hints? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-dsl-py.