Python 2.6 compatibility with elasticsearch lib?

Hi,

Just wanted to check on the state of py26 compatibility for the
elasticsearch python library. I only ask because I just got bit by the
latest version of pyes after upgrading my dev lab to ES 0.90.10 and pyes
0.90. FWIW, pyes appears to have used an incompatible encode call, though
it works for py27. Any comment will not be taken as a statement of
support; rather, a friendly timesaver while trying resolve my current
dilemma... :slight_smile:

Thanks,
John

File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/managers.py"
, line 412, in put_mapping
path = self.conn._make_path(indices, doc_type, "_mapping")
File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/es.py"
, line 434, in _make_path
return make_path(','.join(indices), ','.join(doc_types), *components)
File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/utils/init.py"
, line 37, in make_path
path_components = [quote(component) for component in path_components ifcomponent
]
File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/utils/init.py"
, line 17, in quote
value = value.encode('utf8', errors='ignore') if isinstance(value, six.
string_types) else str(value)
TypeError: encode() takes no keyword arguments

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/499d4092-2073-433c-8f77-bc715fcdd690%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hi John,

elasticsearch-py supports python 2.6, I don't develop for it but I run
the tests under 2.6 and fix any bugs that occur. If you find any bugs,
I will be happy to fix them.

Thanks

On Mon, Jan 27, 2014 at 6:12 AM, John Stanford jxstanford@gmail.com wrote:

Hi,

Just wanted to check on the state of py26 compatibility for the
elasticsearch python library. I only ask because I just got bit by the
latest version of pyes after upgrading my dev lab to ES 0.90.10 and pyes
0.90. FWIW, pyes appears to have used an incompatible encode call, though
it works for py27. Any comment will not be taken as a statement of support;
rather, a friendly timesaver while trying resolve my current dilemma... :slight_smile:

Thanks,
John

File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/managers.py",
line 412, in put_mapping
path = self.conn._make_path(indices, doc_type, "_mapping")
File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/es.py",
line 434, in _make_path
return make_path(','.join(indices), ','.join(doc_types), *components)
File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/utils/init.py",
line 37, in make_path
path_components = [quote(component) for component in path_components if
component]
File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/utils/init.py",
line 17, in quote
value = value.encode('utf8', errors='ignore') if isinstance(value,
six.string_types) else str(value)
TypeError: encode() takes no keyword arguments

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/499d4092-2073-433c-8f77-bc715fcdd690%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CABfdDioKLkeXoknA%3DXFZbn85kf1P%3D-3L0nVJ9ekGUoXbXYWLpg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

We have already fixed this bug in master branch of pyes on GitHub. If you need I’ll release a new version on pypi.

Best regards,
Alberto

On 27 Jan 2014, at 12:24, Honza Král honza.kral@elasticsearch.com wrote:

Hi John,

elasticsearch-py supports python 2.6, I don't develop for it but I run
the tests under 2.6 and fix any bugs that occur. If you find any bugs,
I will be happy to fix them.

Thanks

On Mon, Jan 27, 2014 at 6:12 AM, John Stanford jxstanford@gmail.com wrote:

Hi,

Just wanted to check on the state of py26 compatibility for the
elasticsearch python library. I only ask because I just got bit by the
latest version of pyes after upgrading my dev lab to ES 0.90.10 and pyes
0.90. FWIW, pyes appears to have used an incompatible encode call, though
it works for py27. Any comment will not be taken as a statement of support;
rather, a friendly timesaver while trying resolve my current dilemma... :slight_smile:

Thanks,
John

File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/managers.py",
line 412, in put_mapping
path = self.conn._make_path(indices, doc_type, "_mapping")
File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/es.py",
line 434, in _make_path
return make_path(','.join(indices), ','.join(doc_types), *components)
File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/utils/init.py",
line 37, in make_path
path_components = [quote(component) for component in path_components if
component]
File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/utils/init.py",
line 17, in quote
value = value.encode('utf8', errors='ignore') if isinstance(value,
six.string_types) else str(value)
TypeError: encode() takes no keyword arguments

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/499d4092-2073-433c-8f77-bc715fcdd690%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CABfdDioKLkeXoknA%3DXFZbn85kf1P%3D-3L0nVJ9ekGUoXbXYWLpg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2C7F6EDE-48D0-4F7D-9C37-5855CA95EA92%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks for the info, that is good to know.

John

jxstanford@gmail.com
@jxstanford

On Jan 27, 2014, at 3:24 AM, Honza Král honza.kral@elasticsearch.com wrote:

Hi John,

elasticsearch-py supports python 2.6, I don't develop for it but I run
the tests under 2.6 and fix any bugs that occur. If you find any bugs,
I will be happy to fix them.

Thanks

On Mon, Jan 27, 2014 at 6:12 AM, John Stanford jxstanford@gmail.com wrote:

Hi,

Just wanted to check on the state of py26 compatibility for the
elasticsearch python library. I only ask because I just got bit by the
latest version of pyes after upgrading my dev lab to ES 0.90.10 and pyes
0.90. FWIW, pyes appears to have used an incompatible encode call, though
it works for py27. Any comment will not be taken as a statement of support;
rather, a friendly timesaver while trying resolve my current dilemma... :slight_smile:

Thanks,
John

File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/managers.py",
line 412, in put_mapping
path = self.conn._make_path(indices, doc_type, "_mapping")
File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/es.py",
line 434, in _make_path
return make_path(','.join(indices), ','.join(doc_types), *components)
File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/utils/init.py",
line 37, in make_path
path_components = [quote(component) for component in path_components if
component]
File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/utils/init.py",
line 17, in quote
value = value.encode('utf8', errors='ignore') if isinstance(value,
six.string_types) else str(value)
TypeError: encode() takes no keyword arguments

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/499d4092-2073-433c-8f77-bc715fcdd690%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elasticsearch/KxlPA_GKlOM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CABfdDioKLkeXoknA%3DXFZbn85kf1P%3D-3L0nVJ9ekGUoXbXYWLpg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks Alberto, if you could cut a release, that would be great!

John

jxstanford@gmail.com
@jxstanford

On Jan 27, 2014, at 4:52 AM, Alberto Paro alberto.paro@gmail.com wrote:

We have already fixed this bug in master branch of pyes on GitHub. If you need I’ll release a new version on pypi.

Best regards,
Alberto

On 27 Jan 2014, at 12:24, Honza Král honza.kral@elasticsearch.com wrote:

Hi John,

elasticsearch-py supports python 2.6, I don't develop for it but I run
the tests under 2.6 and fix any bugs that occur. If you find any bugs,
I will be happy to fix them.

Thanks

On Mon, Jan 27, 2014 at 6:12 AM, John Stanford jxstanford@gmail.com wrote:

Hi,

Just wanted to check on the state of py26 compatibility for the
elasticsearch python library. I only ask because I just got bit by the
latest version of pyes after upgrading my dev lab to ES 0.90.10 and pyes
0.90. FWIW, pyes appears to have used an incompatible encode call, though
it works for py27. Any comment will not be taken as a statement of support;
rather, a friendly timesaver while trying resolve my current dilemma... :slight_smile:

Thanks,
John

File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/managers.py",
line 412, in put_mapping
path = self.conn._make_path(indices, doc_type, "_mapping")
File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/es.py",
line 434, in _make_path
return make_path(','.join(indices), ','.join(doc_types), *components)
File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/utils/init.py",
line 37, in make_path
path_components = [quote(component) for component in path_components if
component]
File
"/Users/stanford/devel/solinea/goldstone/.tox/py26/lib/python2.6/site-packages/pyes/utils/init.py",
line 17, in quote
value = value.encode('utf8', errors='ignore') if isinstance(value,
six.string_types) else str(value)
TypeError: encode() takes no keyword arguments

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/499d4092-2073-433c-8f77-bc715fcdd690%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CABfdDioKLkeXoknA%3DXFZbn85kf1P%3D-3L0nVJ9ekGUoXbXYWLpg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elasticsearch/KxlPA_GKlOM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2C7F6EDE-48D0-4F7D-9C37-5855CA95EA92%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.