From 64ea61e171c03a275015ac117325eb8e704f86ce Mon Sep 17 00:00:00 2001 From: Serene Zan <122082852+serenezz@users.noreply.github.com> Date: Thu, 3 Apr 2025 09:30:33 -0500 Subject: [PATCH 1/2] Replace pickle5 with standard pickle for Python 3.11+ compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR replaces pickle5 with the standard pickle library because: 1. Python 3.11+ (now the default in Google Colab) does not support pickle5, causing compatibility issues. 2. The standard pickle module already provides equivalent functionality. 3. Maintains backward compatibility while fixing the import error. 4. Tested on Python 3.11/3.12—works as expected without requiring pickle5. --- notebooks/unit2/unit2.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebooks/unit2/unit2.ipynb b/notebooks/unit2/unit2.ipynb index e9ae624c..5addd6a0 100644 --- a/notebooks/unit2/unit2.ipynb +++ b/notebooks/unit2/unit2.ipynb @@ -289,7 +289,7 @@ "import os\n", "import tqdm\n", "\n", - "import pickle5 as pickle\n", + "import pickle\n", "from tqdm.notebook import tqdm" ] }, @@ -1769,4 +1769,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} From 6f3272522f7c68e699d750f6d7992988b1f2d544 Mon Sep 17 00:00:00 2001 From: Serene Zan <122082852+serenezz@users.noreply.github.com> Date: Thu, 3 Apr 2025 09:35:15 -0500 Subject: [PATCH 2/2] Replace pickle5 with standard pickle for Python 3.11+ compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR replaces pickle5 with the standard pickle library because: 1. Python 3.11+ (now the default in Google Colab) does not support pickle5, causing compatibility issues. 2. The standard pickle module already provides equivalent functionality. 3. Maintains backward compatibility while fixing the import error. 4. Tested on Python 3.11/3.12—works as expected without requiring pickle5. --- notebooks/unit2/requirements-unit2.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/notebooks/unit2/requirements-unit2.txt b/notebooks/unit2/requirements-unit2.txt index 3209a69c..c5eb4b1e 100644 --- a/notebooks/unit2/requirements-unit2.txt +++ b/notebooks/unit2/requirements-unit2.txt @@ -3,9 +3,8 @@ pygame numpy huggingface_hub -pickle5 pyyaml==6.0 imageio imageio_ffmpeg pyglet==1.5.1 -tqdm \ No newline at end of file +tqdm