Menu

#5 setup.py has a non-ASCII character

open
nobody
None
6
2015-09-27
2010-06-22
No

I get this error when I try to run setup.py:

> python ./setup.py --help
File "./setup.py", line 15
SyntaxError: Non-ASCII character '\xa9' in file ./setup.py on line 16, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

I tried to work around this by simply deleting that character, but other files have the same problem.

Discussion

  • nymble

    nymble - 2010-08-24

    Thanks - will fix - restarting project. Nedds updates for latest Python and will add new algorithms.

     
  • nymble

    nymble - 2010-08-24
    • priority: 5 --> 6
     
  • GadgetSteve

    GadgetSteve - 2015-09-27

    The problem character is the copyrite sign in some encodings - changing the specific encoding of all the source files to utf-8 would resolve this as well as ticket #6.

     
  • GadgetSteve

    GadgetSteve - 2015-09-27

    Adding:
    # -*- coding: utf-8 -*-
    as the second line of setup.py resolves this specific issue - I have an attachement to ticket #6 that does this in all files of the current build.

     

Log in to post a comment.