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

error with python 3.5 #1

Open
KarlosW opened this issue Sep 5, 2016 · 4 comments
Open

error with python 3.5 #1

KarlosW opened this issue Sep 5, 2016 · 4 comments

Comments

@KarlosW
Copy link

KarlosW commented Sep 5, 2016

Traceback (most recent call last):
File "async.py", line 26, in
app.run()
File "poloniex-api/poloniex/app.py", line 81, in run
self.init_api(self.loop, session)
File "poloniex-api/poloniex/app.py", line 68, in init_api
stop_decorator(self.main, self.push)()
File "/usr/lib64/python3.5/site-packages/asyncio-3.4.3-py3.5.egg/asyncio/tasks.py", line 567, in gather
fut = async(arg, loop=loop)
File "/usr/lib64/python3.5/site-packages/asyncio-3.4.3-py3.5.egg/asyncio/tasks.py", line 516, in async
raise TypeError('A Future or coroutine is required')
TypeError: A Future or coroutine is required
sys:1: RuntimeWarning: coroutine 'AsyncApp.init_api..stop_decorator.' was never awaited
sys:1: RuntimeWarning: coroutine 'WAMPClient.start' was never awaited

@andrewshvv
Copy link
Member

@KarlosW, Could you please attach the code which cause this error? Thanks.

@KarlosW
Copy link
Author

KarlosW commented Sep 5, 2016

It's the async.py from the examples.

@Vadus
Copy link

Vadus commented Jun 5, 2017

it's still the same behavior with python 3.5

@x-dennis
Copy link

x-dennis commented Jun 21, 2017

@AndrewSamokhvalov You need to remove the (outdated) 'asyncio' library from the list of dependencies at least for the latest Python versions. Otherwise the integrated asyncio library is shadowed by the outdated one which is not compatible with your code (at least not when executed in Python 3.5 or above).

@KarlosW @Vadus Quick fix: pip3 uninstall asyncio

andrewshvv pushed a commit that referenced this issue Sep 27, 2017
Remove base checks for valid currency pairs
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

4 participants