Skip to content

binascii.Error: Invalid base64-encoded string: number of data characters (17) cannot be 1 more than a multiple of #187

Description

@Ruby-Coleman

So I downloaded the module at https://github.com/BTCMarkets/api-v3-client-python and I placed main.py inside of the Lib folder, but whenever I try 'import main' in the python interpreter, I get the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\admin\AppData\Local\Programs\Python\Python38-32\lib\main.py", line 97, in <module>
    client = BTCMarkets(api_key, private_key)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python38-32\lib\main.py", line 72, in __init__
    self.privateKey = base64.b64decode(privateKey)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python38-32\lib\base64.py", line 87, in b64decode
    return binascii.a2b_base64(s)
binascii.Error: Invalid base64-encoded string: number of data characters (17) cannot be 1 more than a multiple of 4

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions