r/madeinpython • • Nov 19 '20

I made a cross-platform terminal file browser (link in the comments)

Post image
19 Upvotes

5 comments sorted by

3

u/shapiroj18 Nov 19 '20 edited Nov 19 '20

When I try to run the bash script, I get the following error:

SyntaxError: Non-ASCII character '\xe2' in file /Users/name/Desktop/open_source/hop/hop.py on line 27, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

2

u/shapiroj18 Nov 19 '20

Fixed it! Just add to the unix script python3 instead of python

1

u/houseofleft Nov 20 '20

Nice one! Yeah as you found it still has a couple assumptions that I'm trying to iron out (like assuming 'python' is accessible to path which might not always be the case!)

1

u/houseofleft Nov 21 '20

if you were still interested in the installation details around the project, I've since fixed it to be pip installable which should mean it's a lot less likely for bash script problems like this to come up!