API Newbie

Just attempting to start up with the YNAB API and am running into some errors. I ran 

pip install ynab-client

That went fine. But ran into an error at 

import ynab_client

I'm getting the following error and am not entirely sure what to do

import ynab_client
Traceback (most recent call last):
  File "C:\Users\brlw\AppData\Local\Continuum\anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3296, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-18-cda13d6cc8e5>", line 1, in <module>
    import ynab_client
  File "C:\Program Files\JetBrains\PyCharm Community Edition with Anaconda plugin 2019.1.3\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "C:\Users\brlw\AppData\Local\Continuum\anaconda3\lib\site-packages\ynab_client\__init__.py", line 19, in <module>
    from ynab_client.api.accounts_api import AccountsApi
  File "C:\Program Files\JetBrains\PyCharm Community Edition with Anaconda plugin 2019.1.3\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "C:\Users\brlw\AppData\Local\Continuum\anaconda3\lib\site-packages\ynab_client\api\__init__.py", line 6, in <module>
    from ynab_client.api.accounts_api import AccountsApi
  File "C:\Program Files\JetBrains\PyCharm Community Edition with Anaconda plugin 2019.1.3\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "C:\Users\brlw\AppData\Local\Continuum\anaconda3\lib\site-packages\ynab_client\api\accounts_api.py", line 133
    async=params.get('async'),
        ^
SyntaxError: invalid syntax

Running Python 3.7.3 on PyCharm. Thanks in advance!

3replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
Like Follow
  • 2 wk agoLast active
  • 3Replies
  • 71Views
  • 3 Following