Bitcoin Forum
August 03, 2024, 11:38:49 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: pywallet isn't dumping my wallet -- help!  (Read 2052 times)
bitmarket.io (OP)
Legendary
*
Offline Offline

Activity: 1204
Merit: 1001



View Profile WWW
April 04, 2016, 02:39:09 PM
 #1

I'm using pywallet (https://github.com/jackjack-jj/pywallet) to dump my wallet information but it doesn't seem to be working. Instead it returns the following error:

Code:
...
Wallet data not recognized: {'__type__': 'purpose', '__value__': '\x07receive', '__key__': '\x07purpose"176zFTbh9iFggxRxaJk92QcKRThaKPjPZi'}
Wallet data not recognized: {'__type__': 'purpose', '__value__': '\x07receive', '__key__': '\x07purpose"189CPLGCGfbKJV7EwYiRYrg5mzkgX5hqS2'}
Wallet data not recognized: {'__type__': 'purpose', '__value__': '\x07receive', '__key__': '\x07purpose"1MjPDB4BLfYUZL2dLKweKZ9FDfYAFoWHQ2'}
Wallet data not recognized: {'__type__': 'purpose', '__value__': '\x07receive', '__key__': '\x07purpose"1PyYNFoS68oPk5HX3D9RyDf5mBJfgX9ep6'}
Wallet data not recognized: {'__type__': 'destdata', '__value__': 'P\x01\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\xff{\x18U\x01\x00\x00\x00"176zFTbh9iFggxRxaJk92QcKRThaKPjPZi\rBitcoin Forum\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', '__key__': '\x08destdata"176zFTbh9iFggxRxaJk92QcKRThaKPjPZi\x03rr2'}
Traceback (most recent call last):
  File "./pywallet.py", line 2111, in parse_wallet
    d.update(parse_BlockLocator(vds))
TypeError: 'NoneType' object is not iterable
ERROR parsing wallet.dat, type bestblock
key data: bestblock
key data in hex: 0962657374626c6f636b
value data in hex: c0d4010000

I'm running OSX 10.11.4 (El Capitan) and followed the instructions to get pywallet running on my machine, but the script doesn't seem to be working.  Any advice?
bitmarket.io (OP)
Legendary
*
Offline Offline

Activity: 1204
Merit: 1001



View Profile WWW
April 04, 2016, 07:31:20 PM
 #2

Probem solved. Not sure what happened but I did the same thing on another mac machine and it worked fine!
icanscript
Hero Member
*****
Offline Offline

Activity: 686
Merit: 502



View Profile
June 21, 2016, 01:04:20 AM
 #3

Just started getting same error. all dependencies installed using pip (new install of windows 10 this time)

Python-2.7.11

Code:
line 2111, in parse_wallet
    d.update(parse_BlockLocator(vds))
TypeError: 'NoneType' object is not iterable
ERROR parsing wallet.dat, type bestblock

parse_BlockLocator function is

Code:
def parse_BlockLocator(vds):
d = { 'hashes' : [] }
nHashes = vds.read_compact_size()
for i in xrange(nHashes):
d['hashes'].append(vds.read_bytes(32))
return d

not great with python so any help with be appreciated.
icanscript
Hero Member
*****
Offline Offline

Activity: 686
Merit: 502



View Profile
June 21, 2016, 02:10:04 AM
 #4

I think this might be something to do with new blocks in 0.12.x, Maybe pywallet needs updating or such.

my old static folder BitcoinCore0.10 has not been updated since and that works fine.


shinohai
Full Member
***
Offline Offline

Activity: 267
Merit: 109



View Profile
June 21, 2016, 10:01:55 AM
 #5

Just started getting same error. all dependencies installed using pip (new install of windows 10 this time)

Python-2.7.11

Code:
line 2111, in parse_wallet
    d.update(parse_BlockLocator(vds))
TypeError: 'NoneType' object is not iterable
ERROR parsing wallet.dat, type bestblock

parse_BlockLocator function is

Code:
def parse_BlockLocator(vds):
d = { 'hashes' : [] }
nHashes = vds.read_compact_size()
for i in xrange(nHashes):
d['hashes'].append(vds.read_bytes(32))
return d

not great with python so any help with be appreciated.


I found the problem. Tongue

jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1257


May Bitcoin be touched by his Noodly Appendage


View Profile
June 21, 2016, 01:11:07 PM
 #6

I think this might be something to do with new blocks in 0.12.x, Maybe pywallet needs updating or such.
This

I don't know the format of the new blocks, I'll try to find specs and potential fix but I can't promise it will happen soon

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!