From 8789a5058e6b0e89fe6280b5aa2ac5dc75b0a739 Mon Sep 17 00:00:00 2001 From: Jules van Rie Date: Sat, 18 May 2024 14:16:46 +0200 Subject: [PATCH 1/2] Troubleshooting pyenv not found Added this troubleshooting step, because during the setup it regularly occurs that pyenv is not found. Often this can be resolved by manually sourcing `.zprofile`. Reason is that some time ago pyenv was moved from `.zshrc` to `.zprofile`. `.zprofile` only gets loaded at startup, while `.zshrc` is loaded in any new terminal window, or after `exec zsh`. Alternative would be a full restart of the computer. --- _partials/osx_python.md | 22 +++++++++++++++++++++- _partials/ubuntu_python.md | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/_partials/osx_python.md b/_partials/osx_python.md index ab29ab8..0d77bd5 100644 --- a/_partials/osx_python.md +++ b/_partials/osx_python.md @@ -55,7 +55,27 @@ pyenv install This command might take a while, this is perfectly normal. Don't hesitate to help other students seated next to you!
- 馃洜 Troubleshooting + 馃洜 Troubleshooting `pyenv` not found + +If you encounter an error `Command 'pyenv' not found`: execute the following line: + +```bash +source ~/.zprofile +``` + +Then try to install Python again: + +```bash +pyenv install +``` + +If `pyenv` is still not found, contact a teacher. + +
+ + +
+ 馃洜 Troubleshooting `zlib` If you encounter an error installing Python with `pyenv` about `zlib`: diff --git a/_partials/ubuntu_python.md b/_partials/ubuntu_python.md index 18610b5..4e48e04 100644 --- a/_partials/ubuntu_python.md +++ b/_partials/ubuntu_python.md @@ -28,6 +28,27 @@ pyenv install This command might take a while, this is perfectly normal. Don't hesitate to help other students seated next to you! +
+ 馃洜 Troubleshooting `pyenv` not found + +If you encounter an error `Command 'pyenv' not found`: execute the following line: + +```bash +source ~/.zprofile +``` + +Then try to install Python again: + +```bash +pyenv install +``` + +If `pyenv` is still not found, contact a teacher. + +
+
+ + OK once this command is complete, we are going to tell the system to use this version of Python **by default**. This is done with: ```bash From de5d733e02a98b6a4c67b760f8136d4bd3ac57bd Mon Sep 17 00:00:00 2001 From: github-actions Date: Sat, 18 May 2024 14:23:46 +0000 Subject: [PATCH 2/2] setup guides generated --- LINUX.es.md | 2 ++ LINUX.md | 23 +++++++++++++++++++++++ VM.es.md | 2 ++ VM.md | 23 +++++++++++++++++++++++ WINDOWS.es.md | 2 ++ WINDOWS.md | 23 +++++++++++++++++++++++ macOS.es.md | 2 ++ macOS.md | 24 +++++++++++++++++++++++- 8 files changed, 100 insertions(+), 1 deletion(-) diff --git a/LINUX.es.md b/LINUX.es.md index 2d5df6d..acd399e 100644 --- a/LINUX.es.md +++ b/LINUX.es.md @@ -46,6 +46,8 @@ Ya puedes cerrar la aplicaci贸n Zoom. ![Foto GitHub](https://github.com/lewagon/setup/blob/master/images/github_picture.png) +:point_right: **[Habilita la Autenticaci贸n de Dos Factores (2FA)](https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication#configuring-two-factor-authentication-using-text-messages)**. GitHub te enviar谩 mensajes de texto con un c贸digo cuando intentes iniciar sesi贸n. Esto es importante para la seguridad y tambi茅n pronto ser谩 necesario para contribuir c贸digo en GitHub. + ## Visual Studio Code diff --git a/LINUX.md b/LINUX.md index 8b5f83d..142b280 100644 --- a/LINUX.md +++ b/LINUX.md @@ -46,6 +46,8 @@ Have you signed up to GitHub? If not, [do it right away](https://github.com/join ![GitHub picture](https://github.com/lewagon/setup/blob/master/images/github_picture.png) +:point_right: **[Enable Two-Factor Authentication (2FA)](https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication#configuring-two-factor-authentication-using-text-messages)**. GitHub will send you text messages with a code when you try to log in. This is important for security and also will soon be required in order to contribute code on GitHub. + ## Visual Studio Code @@ -534,6 +536,27 @@ pyenv install 3.10.6 This command might take a while, this is perfectly normal. Don't hesitate to help other students seated next to you! +
+ 馃洜 Troubleshooting `pyenv` not found + +If you encounter an error `Command 'pyenv' not found`: execute the following line: + +```bash +source ~/.zprofile +``` + +Then try to install Python again: + +```bash +pyenv install 3.10.6 +``` + +If `pyenv` is still not found, contact a teacher. + +
+
+ + OK once this command is complete, we are going to tell the system to use this version of Python **by default**. This is done with: ```bash diff --git a/VM.es.md b/VM.es.md index fbd42de..eed6568 100644 --- a/VM.es.md +++ b/VM.es.md @@ -57,6 +57,8 @@ Lo recomendamos como navegador predeterminado porque es el m谩s compatible con l ![Foto GitHub](https://github.com/lewagon/setup/blob/master/images/github_picture.png) +:point_right: **[Habilita la Autenticaci贸n de Dos Factores (2FA)](https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication#configuring-two-factor-authentication-using-text-messages)**. GitHub te enviar谩 mensajes de texto con un c贸digo cuando intentes iniciar sesi贸n. Esto es importante para la seguridad y tambi茅n pronto ser谩 necesario para contribuir c贸digo en GitHub. + diff --git a/VM.md b/VM.md index 985ead0..4700a2e 100644 --- a/VM.md +++ b/VM.md @@ -57,6 +57,8 @@ Have you signed up to GitHub? If not, [do it right away](https://github.com/join ![GitHub picture](https://github.com/lewagon/setup/blob/master/images/github_picture.png) +:point_right: **[Enable Two-Factor Authentication (2FA)](https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication#configuring-two-factor-authentication-using-text-messages)**. GitHub will send you text messages with a code when you try to log in. This is important for security and also will soon be required in order to contribute code on GitHub. + ## SSH key @@ -895,6 +897,27 @@ pyenv install 3.10.6 This command might take a while, this is perfectly normal. Don't hesitate to help other students seated next to you! +
+ 馃洜 Troubleshooting `pyenv` not found + +If you encounter an error `Command 'pyenv' not found`: execute the following line: + +```bash +source ~/.zprofile +``` + +Then try to install Python again: + +```bash +pyenv install 3.10.6 +``` + +If `pyenv` is still not found, contact a teacher. + +
+
+ + OK once this command is complete, we are going to tell the system to use this version of Python **by default**. This is done with: ```bash diff --git a/WINDOWS.es.md b/WINDOWS.es.md index bc31cf0..457fb5d 100644 --- a/WINDOWS.es.md +++ b/WINDOWS.es.md @@ -46,6 +46,8 @@ Ya puedes cerrar la aplicaci贸n Zoom. ![Foto GitHub](https://github.com/lewagon/setup/blob/master/images/github_picture.png) +:point_right: **[Habilita la Autenticaci贸n de Dos Factores (2FA)](https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication#configuring-two-factor-authentication-using-text-messages)**. GitHub te enviar谩 mensajes de texto con un c贸digo cuando intentes iniciar sesi贸n. Esto es importante para la seguridad y tambi茅n pronto ser谩 necesario para contribuir c贸digo en GitHub. + ## La versi贸n de Windows diff --git a/WINDOWS.md b/WINDOWS.md index d268b4a..9cbd575 100644 --- a/WINDOWS.md +++ b/WINDOWS.md @@ -46,6 +46,8 @@ Have you signed up to GitHub? If not, [do it right away](https://github.com/join ![GitHub picture](https://github.com/lewagon/setup/blob/master/images/github_picture.png) +:point_right: **[Enable Two-Factor Authentication (2FA)](https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication#configuring-two-factor-authentication-using-text-messages)**. GitHub will send you text messages with a code when you try to log in. This is important for security and also will soon be required in order to contribute code on GitHub. + ## Windows version @@ -1085,6 +1087,27 @@ pyenv install 3.10.6 This command might take a while, this is perfectly normal. Don't hesitate to help other students seated next to you! +
+ 馃洜 Troubleshooting `pyenv` not found + +If you encounter an error `Command 'pyenv' not found`: execute the following line: + +```bash +source ~/.zprofile +``` + +Then try to install Python again: + +```bash +pyenv install 3.10.6 +``` + +If `pyenv` is still not found, contact a teacher. + +
+
+ + OK once this command is complete, we are going to tell the system to use this version of Python **by default**. This is done with: ```bash diff --git a/macOS.es.md b/macOS.es.md index 46c9931..9e905b0 100644 --- a/macOS.es.md +++ b/macOS.es.md @@ -46,6 +46,8 @@ Ya puedes cerrar la aplicaci贸n Zoom. ![Foto GitHub](https://github.com/lewagon/setup/blob/master/images/github_picture.png) +:point_right: **[Habilita la Autenticaci贸n de Dos Factores (2FA)](https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication#configuring-two-factor-authentication-using-text-messages)**. GitHub te enviar谩 mensajes de texto con un c贸digo cuando intentes iniciar sesi贸n. Esto es importante para la seguridad y tambi茅n pronto ser谩 necesario para contribuir c贸digo en GitHub. + ## Chips Apple Silicon diff --git a/macOS.md b/macOS.md index 0d7d9b4..54a1aae 100644 --- a/macOS.md +++ b/macOS.md @@ -46,6 +46,8 @@ Have you signed up to GitHub? If not, [do it right away](https://github.com/join ![GitHub picture](https://github.com/lewagon/setup/blob/master/images/github_picture.png) +:point_right: **[Enable Two-Factor Authentication (2FA)](https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication#configuring-two-factor-authentication-using-text-messages)**. GitHub will send you text messages with a code when you try to log in. This is important for security and also will soon be required in order to contribute code on GitHub. + ## Apple Silicon Chips @@ -594,7 +596,27 @@ pyenv install 3.10.6 This command might take a while, this is perfectly normal. Don't hesitate to help other students seated next to you!
- 馃洜 Troubleshooting + 馃洜 Troubleshooting `pyenv` not found + +If you encounter an error `Command 'pyenv' not found`: execute the following line: + +```bash +source ~/.zprofile +``` + +Then try to install Python again: + +```bash +pyenv install 3.10.6 +``` + +If `pyenv` is still not found, contact a teacher. + +
+ + +
+ 馃洜 Troubleshooting `zlib` If you encounter an error installing Python with `pyenv` about `zlib`: