question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SyntaxError: Non-ASCII character

See original GitHub issue

Hello,

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:open
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
verbrauchercommented, Oct 26, 2018

@123qweas pls try to exceute it as follwing: python3.6 japonicus-run -g --strat MACD --repeat 100 -w

1reaction
AJ-gohancommented, Oct 27, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

SyntaxError: Non-ASCII character '\xa3' in file when function ...
The problem is that your code is trying to use the ASCII encoding, but the pound symbol is not an ASCII character. Try...
Read more >
Python Error SyntaxError Non-ASCII character xe2 in file C ...
I'm trying to execute a code and I get the following error SyntaxError: Non-ASCII character '\xe2' in file C:/path/ on line 3, ...
Read more >
Non-ASCII character …, but no encoding declared
SyntaxError: Non-ASCII character '\xeb' in file /home/twpower/MailReminder/reminder.py on line 12, but no encoding declared; ...
Read more >
Python 2: SyntaxError: Non-ASCII character '\xe2' in file
Hello, The error means python has found a character in your code that it doesn't recognise. A bit of googling suggests it could...
Read more >
AWSCLI SyntaxError: Non-ASCII character '\xc3' error
I am working on a Ruby on Rails project where AWSCLI is used. Recently, When I push my code to Staging, it tries...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found