# RedditVideoMakerBot Python Version Compatibility: Requirements and Supported Versions

> Ensure RedditVideoMakerBot compatibility. Discover required Python versions, including explicit support for Python 3.10, 3.11, and 3.12 for your video creation needs.

- Repository: [Lewis Menelaws/RedditVideoMakerBot](https://github.com/elebumm/RedditVideoMakerBot)
- Tags: api-reference
- Published: 2026-04-08

---

**RedditVideoMakerBot requires Python 3.10 or newer, with runtime support explicitly coded for Python 3.10, 3.11, and 3.12.**

Understanding RedditVideoMakerBot Python version compatibility ensures a smooth setup for this automated video generation tool. While project documentation highlights Python 3.10 as the required version, the source code contains a runtime guard that accepts multiple minor releases. This guide breaks down the version requirements across configuration files, container definitions, and the entry point logic.

## Runtime Version Check in main.py

The definitive compatibility check lives in [`main.py`](https://github.com/elebumm/RedditVideoMakerBot/blob/main/main.py) at lines 86-90, where the application inspects `sys.version_info` before executing.

```python

# main.py – version guard

if sys.version_info.major != 3 or sys.version_info.minor not in [10, 11, 12]:
    print(
        "Hey! Congratulations, you've made it so far (which is pretty rare with no Python 3.10). "
        "Unfortunately, this program only works on Python 3.10. Please install Python 3.10 and try again."
    )
    sys.exit()

```

This guard validates that the interpreter is Python 3.x with a minor version of **10, 11, or 12**. If the check fails, the program exits with a message referencing Python 3.10, even though the logic technically permits newer versions.

## Configuration Files and Docker Environment

Beyond the runtime check, multiple project files codify the Python 3.10 baseline.

The `.python-version` file specifies the target interpreter for version managers like **pyenv**:

```text
3.10

```

The **Dockerfile** pins the container image to a specific Python 3.10 patch release:

```dockerfile

# Dockerfile – base image pinning Python 3.10

FROM python:3.10.14-slim

```

Additionally, the [`README.md`](https://github.com/elebumm/RedditVideoMakerBot/blob/main/README.md) lists Python 3.10 as the primary requirement:

```markdown

## Requirements (README)

- Python 3.10
- Playwright (this should install automatically in installation)

```

## The Documentation Gap

There is a known discrepancy between the error message and the actual runtime guard. While the code in [`main.py`](https://github.com/elebumm/RedditVideoMakerBot/blob/main/main.py) accepts Python 3.10, 3.11, and 3.12, the **exit message still references only "Python 3.10"**—a remnant from earlier version constraints.

According to the source code in `elebumm/RedditVideoMakerBot`:

- **Minimum supported version:** Python 3.10
- **Actually permitted versions:** 3.10, 3.11, 3.12
- **Docker and docs alignment:** Strictly Python 3.10

## Recommended Installation Approach

For production deployments or Docker-based setups, use **Python 3.10.14** or the closest available 3.10 patch to match the `python:3.10.14-slim` base image and documented requirements. This ensures consistency with the `.python-version` specification and `README` instructions.

If running directly on a host system with Python 3.11 or 3.12 installed, the bot will launch successfully due to the permissive runtime check. However, be aware that testing and CI pipelines in the repository primarily target the 3.10.x branch, making 3.10 the safest choice for stability.

## Summary

- **RedditVideoMakerBot Python version compatibility** officially starts at Python 3.10.
- The runtime guard in [`main.py`](https://github.com/elebumm/RedditVideoMakerBot/blob/main/main.py) explicitly allows Python 3.10, 3.11, and 3.12.
- Configuration files (`.python-version`, `Dockerfile`) and documentation target Python 3.10 specifically.
- The error message displayed on version mismatch incorrectly cites only Python 3.10, despite the code accepting newer minor releases.
- Use Python 3.10 for guaranteed compatibility with deployment containers and documentation.

## Frequently Asked Questions

### Does RedditVideoMakerBot work with Python 3.11 or 3.12?

Yes. While the documentation and error messages reference Python 3.10, the runtime check in [`main.py`](https://github.com/elebumm/RedditVideoMakerBot/blob/main/main.py) explicitly includes 3.11 and 3.12 in the allowed versions list (`sys.version_info.minor in [10, 11, 12]`). However, the project maintainers officially test against and document Python 3.10.

### What Python version does the Dockerfile use?

The Dockerfile uses `python:3.10.14-slim` as the base image, pinning the environment to Python 3.10.14. This ensures containerized deployments run the exact minor and patch version specified in the project configuration.

### Why does the error message mention only Python 3.10 if 3.11 and 3.12 are supported?

The error message is legacy text from an earlier version of the codebase that strictly required Python 3.10. The runtime guard was updated to accept 3.11 and 3.12, but the print statement at lines 86-90 in [`main.py`](https://github.com/elebumm/RedditVideoMakerBot/blob/main/main.py) was not updated to reflect the expanded compatibility.

### Is Python 3.9 supported by RedditVideoMakerBot?

No. The version check in [`main.py`](https://github.com/elebumm/RedditVideoMakerBot/blob/main/main.py) requires `sys.version_info.minor` to be 10, 11, or 12. Running the bot on Python 3.9 triggers the exit condition and displays the error message requesting an upgrade to Python 3.10.