05.01.2012 12:45, Joachim Durchholz пишет:
> Am 05.01.2012 04:38, schrieb smichr:
>> UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position
>> 2029: cha
>> racter maps to<undefined>
>>
>> Any idea what might be going wrong?
> 
> It is trying to read a file in CP1252 encoding and gets a character with
> code 0x8d, which is not a valid code for CP1252.
> 
> Which is funny because it explicitly requests encoding='utf-8' on    
> line 331. Something along the way must be falling back to the standard
> system encoding; CP1252 is typical for Western Windows installations.
> 
> Can you identify the file that fails? It should be either
> gibbs_phenomenon or the one right after it (on my machine, that would be
> doc/src/gotchas.txt).
> You'll probably need to trace where the encoding gets passed to and
> whether it's actually applied to the doctest string.
> 

The file with variouse Unicode chars is "doc/src/aboutus.txt".

The only Python3 failures are, because of those lines in the
sympy/utilities/runtests.py:

    # Relativize the path
        if sys.version_info[0] < 3:
            text, filename = pdoctest._load_testfile(filename, package,
module_relative)
        else:
            encoding = None
            text, filename = pdoctest._load_testfile(filename, package,
module_relative, encoding)


Comment this line: "encoding = None"

I created PR https://github.com/sympy/sympy/pull/935 for it.

Please test it in your machine.


-- 
Alexey U.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to