giuse88 / duka

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

SyntaxError: Invalid Syntax received when running from windows shell #34

Open xiaxio opened 5 years ago

xiaxio commented 5 years ago

Hi @giuse88

I installed duka module, but when I run it from Terminal within PyCharm, and also from Windows PowerShell, I get the following error:

" PS C:\users...\miniconda2\scripts> .\duka -h Traceback (most recent call last): File "c:\users...\miniconda2\lib\runpy.py", line 174, in _run_module_as_main "main", fname, loader, pkg_name) File "c:\users...\miniconda2\lib\runpy.py", line 72, in _run_code exec code in run_globals File "C:\users...\miniconda2\scripts\duka.exe__main.py", line 5, in File "c:\users...\miniconda2\lib\site-packages\duka\main.py", line 6, in from duka.app import app File "c:\users...\miniconda2\lib\site-packages\duka\app\init__.py", line 1, in from .app import app File "c:\users...\miniconda2\lib\site-packages\duka\app\app.py", line 41 format_left_time(estimation)), end='') ^ SyntaxError: invalid syntax "

On the screen, the arrow (^) points to the equal sign in end=''.

By the way, the syntax of .\duka is following instructions from Windows to run a .exe file within the directory

Do you have any suggestion?

Thanks!