joshfraser / robinhood-to-csv

Python script to export Robinhood trades to a CSV file
MIT License
259 stars 109 forks source link

csv-export.py Syntax Error #18

Closed priyankkalgaonkar closed 6 years ago

priyankkalgaonkar commented 6 years ago

Ran pip install -r requirements.txt in cmd (Microsoft Windows [Version 10.0.16299.309]) Then when I try to run python csv-export.py command, I get this error:

C:\robinhood-to-csv-master>python csv-export.py
  File "csv-export.py", line 36
    print("Robinhood username:", end=' ')
                                    ^
SyntaxError: invalid syntax

Running Python 2.7.12:

Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64 bit (AMD64)] on win32

priyankkalgaonkar commented 6 years ago

Found a solution. Must add from __future__ import print_function module in Line 1 of the script file.

I'll close this issue.