Skip to content

AttributeError: type object 'Environment' has no attribute 'Development' #11

@marmata

Description

@marmata

Hi! Just stumbled upon your script, which seems very useful to me as an user of Moneydance in EU, which doesn't have support for European banks yet. So I need to use qfx!
I created an account in Plaid, obtained the secrets, then run the scripts and I got this error:

Please provide your client API Secret: 
Traceback (most recent call last):
  File "c:\Users\Marco\Documents\src\plaid2qfx\plaid2qfx.py", line 795, in <module>
    main()
  File "c:\Users\Marco\Documents\src\plaid2qfx\plaid2qfx.py", line 136, in main
    link_name = link_account()
  File "c:\Users\Marco\Documents\src\plaid2qfx\plaid2qfx.py", line 277, in link_account
    response = get_client().link_token_create(request)
  File "c:\Users\Marco\Documents\src\plaid2qfx\plaid2qfx.py", line 99, in get_client
    host=plaid.Environment.Development, # Available environments are 'Production', 'Development', and 'Sandbox'
AttributeError: type object 'Environment' has no attribute 'Development'

Did I get anything wrong? Or API has changed in the meantime?
Thanks!

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