Graeme22 / tastyworks-cli

Easy to use command line interface for Tastyworks!
MIT License
15 stars 2 forks source link

Error `TypeError: wait() got an unexpected keyword argument 'loop'` #27

Closed def-mycroft closed 2 years ago

def-mycroft commented 2 years ago

When running twcli option chain SPY I receive TypeError: wait() got an unexpected keyword argument 'loop'.

Here is the full traceback.

Here is the output of pip freeze in my environment. Python version 3.10.4.

I am able to use twcli plot without error.

def-mycroft commented 2 years ago

not sure what else to provide.

Graeme22 commented 2 years ago

Ah I know what it is, looks like the problem is Python 3.10 removed one of the keyword arguments, so I wasn't having problems because I'm still using an older Python!

Looks like using this aiocometd fork will fix both this issue and the annoying error logging that is showing up!

I'll leave this open until I get the chance to implement that.

Graeme22 commented 2 years ago

Hey @def-mycroft, could you see if #28 fixes the issue?

def-mycroft commented 2 years ago

hi @Graeme22 , I'm up and running now!! thanks for the fix :)