From: Jacob B. <jac...@gm...> - 2012-06-28 21:18:35
|
Hello PyTables Users, I have a concern with a very strange error that references that my python ints cannot be converted to C longs when trying to run Table.append(rows). My python integers are definitely not big, at most they would probably be around 3 billion in size, which shouldn't be any problem for conversion to C long. This is the error that I am receiving... Exception in thread bookthread: Traceback (most recent call last): File "C:\Python27\lib\threading.py", line 551, in __bootstrap_inner self.run() File "C:\Users\jacob.bennett\development\MarketDataReader\PyTablesInterface\Acceptor.py", line 21, in run BookDataWrapper.acceptDict() File "C:\Users\jacob.bennett\development\MarketDataReader\PyTablesInterface\BookDataWrapper.py", line 49, in acceptDict tableD.append(dataArray) File "C:\Python27\lib\site-packages\tables\table.py", line 2076, in append "rows parameter cannot be converted into a recarray object compliant with table '%s'. The error was: <%s>" % (str(self), exc) ValueError: rows parameter cannot be converted into a recarray object compliant with table '/t301491615959191971 (Table(0,), shuffle, blosc(3)) 'Instrument''. The error was: <Python int too large to convert to C long> Thanks, Jacob -- Jacob Bennett Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Class of 2014| ben...@mi... |