Skip to content

Crash on startup: fakeredis.aioredis.FakeConnection import error #73

Description

@14NGiestas

Bug Report

colab-mcp crashes immediately on startup with:

ImportError: cannot import name 'FakeConnection' from 'fakeredis.aioredis'

or alternatively:

ModuleNotFoundError: No module named 'fakeredis.aioredis'

Root Cause

The dependency chain is:

colab-mcpfastmcp==2.14.5pydocketdocket

docket/_redis.py line 257 imports:

from fakeredis.aioredis import FakeConnection, FakeServer

This import path was changed in newer versions of fakeredis:

  • Older versions: module didn't exist at fakeredis.aioredis
  • Middle versions: FakeConnection existed at fakeredis.aioredis
  • Newer versions: renamed to FakeRedisConnection at fakeredis.aioredis

No version of fakeredis satisfies the current unpinned dependency constraint while keeping the import working.

Reproduction

uvx git+https://github.com/googlecolab/colab-mcp

Environment

  • OS: Linux (NixOS, Linux Mint)
  • Python: 3.13 / 3.14
  • colab-mcp version: 1.0.1 (HEAD at b9ab389)

Suggested Fix

Either:

  1. Pin fakeredis to the exact version range that has FakeConnection at fakeredis.aioredis
  2. Update docket/pydocket to use the new FakeRedisConnection import
  3. Report upstream to the docket project

This makes the MCP server completely non-functional on any Python 3.13+ environment with a fresh install.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions