Error with Flask Babel Python3 app (Windows)

Asked

Viewed 574 times

2

I’m following the article tutorial http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-iii-web-forms/page/3#comments

I got to part three and made that mistake.

I’m confused because the author has the run.py inside the virtualenv Script folder.

Since he has created the run.py at the root.

But I don’t think that’s the problem, so I need help.

Erro no flask

By following @sergiopereira’s help (delete Babel) and reinstalling by github this gives the following error. Erro da imagem

To fix this error you need Git in the Windows environment variables. http://blog.countableset.ch/2012/06/07/adding-git-to-windows-7-path/

1 answer

1


In fact the author has executed the script run py., nothing about any Script folder.

Are you using Python 3 or 2? There is one bug in Babel with Python 3.

One of the suggestions is to uninstall Babel and re-install via Github (or change your project to Python 2.7):

pip unistall babel
pip install git+https://github.com/mitsuhiko/[email protected]
  • to install via github on virtualenv does not work that way?

  • It should work. All these commands should be executed in your virtualenv. Error?

  • gave the following error: Error [WinError 2] O sistema não pode encontrar o arquivo especificado while executing command git clone -q https://github[...]. Cannot find command 'git' I’m using python 3 and windows 10.

  • Follow the error screenshot:

  • Image above, in the description of the problem.

  • 1

    I already found the bug. I hadn’t put Git in the Windows environment variables.

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.