Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashing with "OverflowError: Python int too large to convert to C long" #37

Open
paulbdavis opened this issue Aug 30, 2021 · 2 comments

Comments

@paulbdavis
Copy link

Output:

Traceback (most recent call last):
  File "usr/bin/pywallet", line 2260, in parse_wallet
    d['lockTime'] = vds.read_uint64()
  File "usr/bin/pywallet", line 2150, in read_uint64
    def read_uint64(self): return self._read_num('<Q')
  File "usr/bin/pywallet", line 2187, in _read_num
    (i,) = struct.unpack_from(format, self.input, self.read_cursor)
OverflowError: Python int too large to convert to C long
ERROR parsing wallet.dat, type tx
key data: tx
key data in hex: [redacted]
value data in hex: [redacted]

This is being run in a docker containter created with the following docker file:

FROM ubuntu:18.04

RUN apt-get update && apt-get install -y build-essential python-dev python-twisted python-bsddb3 python-ecdsa

ADD https://raw.githubusercontent.com/jackjack-jj/pywallet/master/pywallet.py /usr/bin/pywallet
RUN chmod +x /usr/bin/pywallet

ENTRYPOINT ["/usr/bin/pywallet"]

run with:

docker build -t pywallet .
docker run -it --rm -v $PWD/wallets:/wallets pywallet -w /wallets/wallet.dat
@jackjack-jj
Copy link
Owner

I never encountered this bug
Is this a new wallet? Was it created with bitcoin-core?

@021-projects
Copy link

021-projects commented May 11, 2024

+1
The wallet is old, created using bitcoin-cli

Seems corrupted due to bitcoin core crash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants