giuse88 / duka

duka - Dukascopy historical data downloader
http://giuse88.github.io/duka
MIT License
302 stars 135 forks source link

please tell me which python should i select for duka? #15

Closed nervending closed 7 years ago

nervending commented 7 years ago

use 3.4.2 error log: File "/root/.pyenv/versions/3.4.2/lib/python3.4/site-packages/duka/core/fetch.py", line 16 async def get(url): ^ SyntaxError: invalid syntax

use 3.5.2 error log: File "/root/.pyenv/versions/3.5.2/lib/python3.5/lzma.py", line 26, in from _lzma import * ImportError: No module named '_lzma'

nervending commented 7 years ago

i got it, should use 3.5 maybe some system config error i use pyenv install python, and switch to 3.5.0 report same error : ImportError: No module named '_lzma'

nervending commented 7 years ago

i need install liblzma-dev, but after install, it's not ok.

nervending commented 7 years ago

and reinstall python 3.5.x, that all ok.

giuse88 commented 7 years ago

Sorry for the delay in answering, I was travelling yesterday. Duka uses the ansync syntax and requires a python 3.5 interpreter. Glad you sorted out.