wardbradt / peregrine

Detects arbitrage opportunities across 131 cryptocurrency exchanges in 50 countries
MIT License
1.19k stars 338 forks source link

Error in asyncio #16

Closed forexhill closed 6 years ago

forexhill commented 6 years ago

Hi! Thank you for creating this. I am trying the following;

~/peregrine $ python ./examples/multiple_coins_one_exchange.py
Traceback (most recent call last):
  File "./examples/multiple_coins_one_exchange.py", line 1, in <module>
    import asyncio
  File "/usr/local/lib/python2.7/dist-packages/asyncio/__init__.py", line 9, in <module>
    from . import selectors
  File "/usr/local/lib/python2.7/dist-packages/asyncio/selectors.py", line 39
    "{!r}".format(fileobj)) from None
                               ^
SyntaxError: invalid syntax

Any idea what may be going wrong here? The asyncio lib was installed with pip install.

wardbradt commented 6 years ago

No idea, this seems to be an asyncio, not peregrine error.

twelvearrays commented 6 years ago

asyncio is only for Python 3