Re: [Pytables-users] pytable 30 - encoding

2013-06-05 Thread Anthony Scopatz
*To:* Jeff Reback j...@reback.net *Cc:* Discussion list for PyTables pytables-users@lists.sourceforge.net *Sent:* Tuesday, June 4, 2013 6:39 PM *Subject:* Re: [Pytables-users] pytable 30 - encoding Hi Jeff, Hmmm, Could you try doing the same thing on just an in-memory numpy array using numexpr

[Pytables-users] pytable 30 - encoding

2013-06-04 Thread Jeff Reback
anthony, where am I going wrong here? #!/usr/local/bin/python3 import tables import numpy as np import datetime, time encoding = 'UTF-8' test_file = 'test_select.h5' handle = tables.openFile(test_file, w) node = handle.createGroup(handle.root, 'test') table = handle.createTable(node, 'table',

Re: [Pytables-users] pytable 30 - encoding

2013-06-04 Thread Anthony Scopatz
Hi Jeff, Have you also updated numexpr to the most recent version? The error is coming from numexpr not compiling the expression correctly. Also, you might try making selector a str, rather than bytes: selector = (column == 'str-2') rather than selector = (column == 'str-2').encode(encoding)

Re: [Pytables-users] pytable 30 - encoding

2013-06-04 Thread Jeff Reback
for PyTables pytables-users@lists.sourceforge.net Sent: Tuesday, June 4, 2013 12:25 PM Subject: Re: [Pytables-users] pytable 30 - encoding Hi Jeff,  Have you also updated numexpr to the most recent version?  The error is coming from numexpr not compiling the expression correctly. Also, you

Re: [Pytables-users] pytable 30 - encoding

2013-06-04 Thread Jeff Reback
: [Pytables-users] pytable 30 - encoding Hi Jeff, Hmmm, Could you try doing the same thing on just an in-memory numpy array using numexpr.  If this succeeds it tells us that the problem is in PyTables, not numexpr. Be Well Anthony On Tue, Jun 4, 2013 at 11:35 AM, Jeff Reback jreb...@yahoo.com