···10101111Before running the script, ensure you have the following:
12121313-- Python 3.6 or later installed.
1313+- Python 3.6 or later installed. If using Ubuntu, run `sudo apt update && sudo apt install -y python3 python3-pip python3-dev`
1414- The required Python packages (automatically installed if missing):
1515 - `python-dotenv`
1616 - `atproto`
···2727 cd bluesky-avatar-updater
2828 ```
29293030-2. **Create a virtual environment and install dependencies:**
3030+2. **Ensure the required package is installed (if necessary):**
3131+3232+ Before creating the virtual environment, make sure that the `python3-venv` package is installed (this is necessary on Debian/Ubuntu systems to create virtual environments).
3333+3434+ ```bash
3535+ sudo apt install python3.10-venv # Adjust the version if necessary (e.g., python3.9-venv)
3636+ ```
3737+3838+3. **Create a virtual environment and install dependencies:**
3939+4040+ Now, create a new virtual environment and activate it. This isolates the package dependencies for your project.
31413242 ```bash
3343 python3 -m venv .venv
3444 source .venv/bin/activate # On Windows use: .venv\Scripts\activate
4545+ ```
4646+4747+4. **Install dependencies within the virtual environment:**
4848+4949+ With the virtual environment activated, install the required packages listed in the `requirements.txt` file:
5050+5151+ ```bash
3552 pip install -r requirements.txt
3653 ```
37543838-3. **Configure environment variables:**
5555+5. **Configure environment variables:**
3956 - Place your `.env` file in the `../assets` directory relative to the script.
4057 - The `.env` file should contain the following entries:
4158···4663 DID=your_did
4764 ```
48654949-4. **Prepare the JSON file:**
6666+6. **Prepare the JSON file:**
5067 - Ensure that a `cids.json` file is located in the `../assets` directory. This file should map each hour (in two-digit format) to a corresponding blob CID. Example:
51685269 ```json