It's strange really. It seems like anything int 64 in python (greater than
4billion) fails to convert and throws this message; however, for numbers
that can be represented by int 32 can convert fine. Btw, this is for a
field that is defined as UInt64 in pytables and only fails if I do
Table.append(row). If I do insertion based upon table.row, then it works
fine.
I will look at this issue more later tonight, and will report my findings.
Thanks,
Jacob
On Thu, Jun 28, 2012 at 5:37 PM, Anthony Scopatz <scop...@gmail.com> wrote:
> Hello Again Jacob,
>
> Hmm are they of Python type long? Also, what exactly is the number that
> is failing?
>
> Be Well
> Anthony
>
> On Thu, Jun 28, 2012 at 4:18 PM, Jacob Bennett
> <jacob.bennet...@gmail.com>wrote:
>
>> 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| benne...@mit.edu
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Pytables-users mailing list
>> Pytables-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/pytables-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Pytables-users mailing list
> Pytables-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pytables-users
>
>
--
Jacob Bennett
Massachusetts Institute of Technology
Department of Electrical Engineering and Computer Science
Class of 2014| benne...@mit.edu
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users