Skip to content

Traduccion faq/windows.po #588

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

Closed
wants to merge 7 commits into from
Closed

Conversation

mayuti
Copy link
Contributor

@mayuti mayuti commented Jul 18, 2020

Closes #579

@cmaureir
Copy link
Collaborator

Solo queda lo de powrap, pero te dejé un comentario en el otro PR sobre como hacer el setup de un ambiente virtual y asi te olvidas de todos los problemas.

@mayuti
Copy link
Contributor Author

mayuti commented Jul 18, 2020

Hola @cmaureir. Les paso lo que me advirtió el sistema y lo que realicé, luego parecería que todo funcionó correctamente.

cmayuti@debian-works:~$ python3 -m venv env
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

apt-get install python3-venv

You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/home/cmayuti/env/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

cmayuti@debian-works:$ sudo apt-get install python3-venv
[sudo] password for cmayuti:
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Se instalarán los siguientes paquetes adicionales:
python3.7-venv
Se instalarán los siguientes paquetes NUEVOS:
python3-venv python3.7-venv
0 actualizados, 2 nuevos se instalarán, 0 para eliminar y 1 no actualizados.
Se necesita descargar 7.344 B de archivos.
Se utilizarán 44,0 kB de espacio de disco adicional después de esta operación.
¿Desea continuar? [S/n] s
Des:1 http://deb.debian.org/debian buster/main amd64 python3.7-venv amd64 3.7.3-2+deb10u1 [6.164 B]
Des:2 http://deb.debian.org/debian buster/main amd64 python3-venv amd64 3.7.3-1 [1.180 B]
Descargados 7.344 B en 0s (15,8 kB/s)
Seleccionando el paquete python3.7-venv previamente no seleccionado.
(Leyendo la base de datos ... 285684 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar .../python3.7-venv_3.7.3-2+deb10u1_amd64.deb ...
Desempaquetando python3.7-venv (3.7.3-2+deb10u1) ...
Seleccionando el paquete python3-venv previamente no seleccionado.
Preparando para desempaquetar .../python3-venv_3.7.3-1_amd64.deb ...
Desempaquetando python3-venv (3.7.3-1) ...
Configurando python3.7-venv (3.7.3-2+deb10u1) ...
Configurando python3-venv (3.7.3-1) ...
Procesando disparadores para man-db (2.8.5-2) ...
cmayuti@debian-works:
$ python3 -m venv env
cmayuti@debian-works:$ source env/bin/activate
(env) cmayuti@debian-works:
$ pip install powrap
Collecting powrap
Using cached https://files.pythonhosted.org/packages/c7/54/4a56ed1524789a0bcce1c6a937aa7a69876a27abb91ab8835f71b6bc6519/powrap-0.3.2-py3-none-any.whl
Collecting tqdm (from powrap)
Downloading https://files.pythonhosted.org/packages/af/88/7b0ea5fa8192d1733dea459a9e3059afc87819cb4072c43263f2ec7ab768/tqdm-4.48.0-py2.py3-none-any.whl (67kB)
100% |████████████████████████████████| 71kB 868kB/s
Installing collected packages: tqdm, powrap
Successfully installed powrap-0.3.2 tqdm-4.48.0
(env) cmayuti@debian-works:$ which powrap
/home/cmayuti/env/bin/powrap
(env) cmayuti@debian-works:
$ which python
/home/cmayuti/env/bin/python

Ahí está subido el archivo en proceso de verificación travis con las modificaciones.

@@ -6,50 +6,69 @@
# Check https://github.com/PyCampES/python-docs-es/blob/3.8/TRANSLATORS to
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

se te pasó este archivo :S

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hola @cmaureir. Estan hecho los dos archivos con powrap, este es library/readline.po -> #586 que me da el error acá, no se porque si pasó la prueba correctamente, para cada uno que corregí con powrap cambié de rama y los subí.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lo que pasa es que hiciste esto:

  • de 3.8 creo rama 1 (readline)
  • push y ahora creo rama 2 (windows)

En el segundo paso deberias haber vuelto a 3.8,
porque si te das cuenta en los commits, lo que paso es que ahora en "rama 2" todos los commits de "rama 1" son dependencia. Lo que tienes que hacer es deshacer esos cambios.

Una solución un poco "fea" pero que funciona, es que en tu rama traduccion-faq/windows.po hagas un git revert del los commits relacionados a readline:

git checkout traduccion-faq/windows.po # irte a la rama
git pull origin traduccion-faq/windows.po  # actualizar por si hiciste algun cambio acá
git revert ba75ce884130abc13fbb2d112c4b0d2b56fe62d9
git revert 919b6315f17cdf9db314c0041092e4028d464515

esos hashes (numeros raros), son los dos commits que tienes acá https://github.com/python/python-docs-es/pull/588/commits relacionados a readline.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

y un push al final git push origin traduccion-faq/windows.po que olvide dejar ahi.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cmaureir , te dejo el proceso que hice si voy bien para no meter la pata porque me da algunos mensajes de error.

(Virtual_Python3) cmayuti@debian-works:/python-docs-es$ git checkout traduccion-faq/windows.po
Ya en 'traduccion-faq/windows.po'
(Virtual_Python3) cmayuti@debian-works:
/python-docs-es$ git pull origin traduccion-faq/windows.po
Desde github.com:mayuti/python-docs-es

  • branch traduccion-faq/windows.po -> FETCH_HEAD
    Ya está actualizado.
    (Virtual_Python3) cmayuti@debian-works:/python-docs-es$ git revert ba75ce8
    error: no se pudo revertir ba75ce8... Traducido archivo library/readline.po
    ayuda: tras resolver los conflictos, marca las rutas corregidas
    ayuda: con 'git add ' o 'git rm '
    ayuda: y haz un commit del resultado con 'git commit'
    (Virtual_Python3) cmayuti@debian-works:
    /python-docs-es$ git revert 919b631
    error: No es posible revertir porque tienes archivos sin fusionar.
    ayuda: Corrígelos en el árbol de trabajo y entonces usa 'git add/rm ',
    ayuda: como sea apropiado, para marcar la resolución y realizar un commit.
    fatal: falló al revertir
    (Virtual_Python3) cmayuti@debian-works:~/python-docs-es$ git status
    En la rama traduccion-faq/windows.po
    Estás revirtiendo el commit ba75ce8.
    (corrige los conflictos y ejecuta "git revert --continue")
    (usa "git revert --abort" para cancelar la operación de revertir)

Rutas no fusionadas:
(usa "git reset HEAD ..." para sacar del área de stage)
(usa "git add ..." para marcar una resolución)

ambos modificados:     library/readline.po

sin cambios agregados al commit (usa "git add" y/o "git commit -a")
(Virtual_Python3) cmayuti@debian-works:/python-docs-es$ git add .
(Virtual_Python3) cmayuti@debian-works:
/python-docs-es$ git status
En la rama traduccion-faq/windows.po
Estás revirtiendo el commit ba75ce8.
(todos los conflictos corregidos: ejecuta "git revert --continue")
(usa "git revert --abort" para cancelar la operación de revertir)

Cambios a ser confirmados:
(usa "git reset HEAD ..." para sacar del área de stage)

modificado:     library/readline.po

(Virtual_Python3) cmayuti@debian-works:~/python-docs-es$ git pull origin traduccion-faq/windows.po
Desde github.com:mayuti/python-docs-es

  • branch traduccion-faq/windows.po -> FETCH_HEAD
    Ya está actualizado.
    (Virtual_Python3) cmayuti@debian-works:~/python-docs-es$ git revert ba75ce8
    error: tus cambios locales serán sobreescritos por revertir.
    ayuda: realiza un commit con tus cambios o aplica un stash para proceder.
    fatal: falló al revertir

Aguardo tus comentarios para seguir...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tienes conflictos en los archivos, eso es todo, si haces git status veras que deberian tener algo como "UU".
Si tienes mucho problema, copia tu archivo windows.po, cierra este PR y crea otro, asi no te rompes la cabeza ;)

@mayuti
Copy link
Contributor Author

mayuti commented Jul 21, 2020

Cierro este pull y hago los pasos que me pasaste para uno nuevo.

@mayuti mayuti closed this Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Translate faq/windows.po
2 participants