New issue 2746: Flask not working on windows

Luigi Bardelli:

   newbie here :| After developing some code on Linux I am trying moving it to 
windows, and I get an error with Flask. 
I am using windows10 64bit, pypy3-v5.10.1-win32 , with pip installed via , and a standard pip install flask.
On the same machine, the same code works fine on python 3.6.4 32bit.

I have reduced the file to the minimal sample in attachment. The error I get is:


Traceback (most recent call last):
  File "", line 1, in <module>
    from flask import Flask
<my path>\pypy3-v5.10.1-win32\site-packages\flask\", line 19, in 
    from jinja2 import Markup, escape
<my path>\pypy3-v5.10.1-win32\site-packages\jinja2\", line 33, in 
    from jinja2.environment import Environment, Template
<my path>\pypy3-v5.10.1-win32\site-packages\jinja2\", line 22, in 
    from jinja2.lexer import get_lexer, TokenStream
<my path>\pypy3-v5.10.1-win32\site-packages\jinja2\", line 46, in 
    name_re = re.compile(r'[\w{0}]+'.format(_identifier.pattern))
<my path>\pypy3-v5.10.1-win32\lib-python\3\", line 224, in compile
    return _compile(pattern, flags)
<my path>\pypy3-v5.10.1-win32\lib-python\3\", line 293, in _compile
    p = sre_compile.compile(pattern, flags)
<my path>\pypy3-v5.10.1-win32\lib-python\3\", line 540, in compile
    p = sre_parse.parse(p, flags)
<my path>\pypy3-v5.10.1-win32\lib-python\3\", line 829, in parse
    p = _parse_sub(source, pattern, 0)
<my path>\pypy3-v5.10.1-win32\lib-python\3\", line 437, in 
    itemsappend(_parse(source, state))
<my path>\pypy3-v5.10.1-win32\lib-python\3\", line 575, in _parse
    raise source.error(msg, len(this) + 1 + len(that))
sre_constants.error: bad character range \udf76-\ud800 at position 459


Do you have any idea? Thanks!

pypy-issue mailing list

Reply via email to