Skip to content

ImportError: cannot import 'Image' from fastmcp (moved to fastmcp.utilities.types) #3

@mickey-mikey

Description

@mickey-mikey

Description

Installation fails with:

ImportError: cannot import name 'Image' from 'fastmcp'

The Image class has moved from fastmcp to fastmcp.utilities.types in newer versions.

Current code (broken)

from fastmcp import FastMCP, Image

Fix

from fastmcp import FastMCP
from fastmcp.utilities.types import Image

Reference

Fix implemented in fork: main...iflow-mcp:street-view-mcp:iflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions