Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

400
Visualizações
No module named wtforms.compat

While we are trying to execute with python 3.6.8 version getting below module error

from wtforms.compat import string_types, text_type
ModuleNotFoundError: No module named 'wtforms.compat'

when i tried installing or upgrading wtforms still it shows the same error

Can any one pls suggest

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Noticed this error today while running our Airflow 1.10.12 builds:

from wtforms.compat import text_type
ModuleNotFoundError: No module named 'wtforms.compat'

Apparently, the issue has to do with the latest version of wtforms released yesterday (3.0.0). We managed to get around it by pinning it to the previous version: wtforms==2.3.3.

Editing just to add more information: compat.py was completely removed once support for Python < 3.6 was dropped (see PR). If you are running Python >= 3.6, you can also work with the latest wtforms by simply using str instead of text_type and string_types, since those were just aliases:

if sys.version_info[0] >= 3:
    text_type = str
    string_types = (str,)
    izip = zip

And the imports should not be needed anymore.

If running Python < 3.6, you may need to stick with wtforms<=2.3.3.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda