-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problème avec pybabel #73
Comments
et ca aussi : |
Oui j'avais réussi à modifier les fichiers de langue pour remplacer "Parc national de la Vanoise" notamment. Mais désormais quand je suis la procédure (https://github.com/PnX-SI/GeoPaysages/blob/master/docs/installation.rst#internationalisation-de-lapplication), j'ai aussi une erreur : geopaysages@GeoPaysages:~$ cd geopaysages/
geopaysages@GeoPaysages:~/geopaysages$ . venv/bin/activate
(venv) geopaysages@GeoPaysages:~/geopaysages$ cd backend/i18n/
(venv) geopaysages@GeoPaysages:~/geopaysages/backend/i18n$ . pybabel compile -d i18n
-bash: import : commande introuvable
-bash: import : commande introuvable
from: can't read /var/mail/babel.messages.frontend
-bash: /home/geopaysages/geopaysages/venv/bin/pybabel: ligne 10: erreur de syntaxe près du symbole inattendu « ( »
-bash: /home/geopaysages/geopaysages/venv/bin/pybabel: ligne 10: ` sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy s.argv[0])'
(venv) geopaysages@GeoPaysages:~/geopaysages/backend/i18n$ Peut-être car le chemin n'est pas le bon chemin car la doc indique Je suis encore en v1.0.0-rc.3.7. |
Je pense qu'on a mal documenté la commande
On corrigera la doc selon l'option choisie. |
OK ! En effet comme ça ça fonctionne et il ne faut pas mettre le . au début de la commande aussi à priori : geopaysages@GeoPaysages:~$ cd geopaysages/
geopaysages@GeoPaysages:~/geopaysages$ . venv/bin/activate
(venv) geopaysages@GeoPaysages:~/geopaysages$ cd backend/
(venv) geopaysages@GeoPaysages:~/geopaysages/backend$ pybabel compile -d i18n
compiling catalog i18n/fr/LC_MESSAGES/messages.po to i18n/fr/LC_MESSAGES/messages.mo |
Quand je lance la commande . pybabel compile -d i18n, je rencontre un problème dans le pybabel : ci-dessous le message :
-bash: import : commande introuvable
-bash: import : commande introuvable
from: can't read /var/mail/babel.messages.frontend
-bash: /home/adminsitopp/geopaysages/venv/bin/pybabel: ligne 10: erreur de syntaxe près du symbole inattendu « ( »
-bash: /home/adminsitopp/geopaysages/venv/bin/pybabel: ligne 10: ` sys.argv[0] = re.sub(r'(-script.pyw?|.exe)?$', '', sy s.argv[0])'
The text was updated successfully, but these errors were encountered: