python3.4使用flask-wtf0.12报错


import的时候就报错,错误代码如下,是不是不支持python3.4


 File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible
  File "D:\SDK\python34\lib\site-packages\flask\exthook.py", line 62, in load_module
    __import__(realname)
  File "D:\SDK\python34\lib\site-packages\flask_wtf\__init__.py", line 15, in <module>
    from .form import Form
  File "D:\SDK\python34\lib\site-packages\flask_wtf\form.py", line 15, in <module>
    from .i18n import translations
  File "D:\SDK\python34\lib\site-packages\flask_wtf\i18n.py", line 12, in <module>
    from flask_babel import get_locale
  File "D:\SDK\python34\lib\site-packages\flask_babel\__init__.py", line 21, in <module>
    from babel import dates, numbers, support, Locale
  File "D:\SDK\python34\lib\site-packages\babel\dates.py", line 28, in <module>
    from babel.util import UTC, LOCALTZ
  File "D:\SDK\python34\lib\site-packages\babel\util.py", line 278, in <module>
    from babel import localtime
  File "D:\SDK\python34\lib\site-packages\babel\localtime\__init__.py", line 21, in <module>
    from babel.localtime._win32 import _get_localzone
  File "D:\SDK\python34\lib\site-packages\babel\localtime\_win32.py", line 18, in <module>
    tz_names = get_global('windows_zone_mapping')
  File "D:\SDK\python34\lib\site-packages\babel\core.py", line 58, in get_global
    _global_data = pickle.load(fileobj)
TypeError: an integer is required (got type str)

python3.x

深山老爷初江姬 9 years, 3 months ago

昨天刚测试了,支持3.4的
TypeError: an integer is required (got type str)
如果不支持应该会报notfound之类的错。

abiosis answered 9 years, 3 months ago

Your Answer