Skip to content

struct.error #15

Description

@Luigini

Hi,
I'm newbie in Python Language and I need some help, please:

Executing "python sight.py .../blocks/blk00976.dat", this error appears me in Block nº 33 into file blk00976.dat and program stops:

####################Block counter No. 33####################
Traceback (most recent call last):
File "sight.py", line 42, in
main()
File "sight.py", line 37, in main
parse(blockchain,blkNo)
File "sight.py", line 14, in parse
block = Block(blockchain)
File "/home/donvito/Escritorio/blocktools/block.py", line 47, in init
tx = Tx(blockchain)
File "/home/donvito/Escritorio/blocktools/block.py", line 102, in init
output = txOutput(blockchain)
File "/home/donvito/Escritorio/blocktools/block.py", line 160, in init
self.value = uint8(blockchain)
File "/home/donvito/Escritorio/blocktools/blocktools.py", line 14, in uint8
return struct.unpack('Q', stream.read(8))[0]
struct.error: unpack requires a string argument of length 8

Executing with blocks blk00977.dat and blk00978 , the error is:
struct.error: unpack requires a string argument of length 4

Executing from blk00979 to blk00999 , the error is:
OverflowError: Python int too large to convert to C long

And from blk01000.dat to final blkXXXXX.dat which I've downloaded it (blk01565.dat in this case), the errors are the same as mentioned above or simply: MemoryError

I'm stuck and I do not know how to continue. I wish you can help me fix the problem soon

Regards!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions