SyntaxError: Non-ASCII character
See original GitHub issueHello,
if installed Japonicus as shown in the Wiki/Setup. The installation went fine but when I tried to run Japonicus with:
python japonicus-run -g --strat MACD --repeat 100 -w
The output:
Traceback (most recent call last): File "japonicus-run", line 4, in <module> import japonicus File "/Users/gekko-stable/gekko/japonicus-master/japonicus/__init__.py", line 3, in <module> from .japonicus import * File "/Users/gekko-stable/gekko/japonicus-master/japonicus/japonicus.py", line 24 SyntaxError: Non-ASCII character '\xe2' in file /Users/gekko-stable/gekko/japonicus-master/japonicus/japonicus.py on line 25, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
I have Gekko (v0.6.7) as a server running (node web/server.js)and have history data downloaded. I’ve took the same steps on two systems with the same error. (MacBook Pro and a Hackintosh) I also reinstalled Gekko and Japonicus - same error. The weblink in the error did not help me either.
Does anyone have an idea how to fix this?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
@123qweas pls try to exceute it as follwing:
python3.6 japonicus-run -g --strat MACD --repeat 100 -w
another thing to remember, if you install your modules with python3, you can’t access them with python3.6 so keep the version in mind when installing the modules and running the code