Skip to content

TypeError: render(): incompatible function arguments #286

@zhoufeng422

Description

@zhoufeng422

Hello,
I got an error when using python mapnik with cairo, Mapnik version: 4.0.4, Cairo version: 1.7.3.

log:

TypeError: render(): incompatible function arguments. The following argument types are supported:
    1. (Map: mapnik._mapnik.Map, image: mapnik._mapnik.Image, scale_factor: float = 1.0, offset_x: int = 0, offset_y: int = 0) -> None
    2. (arg0: mapnik._mapnik.Map, arg1: PycairoSurface, arg2: float, arg3: int, arg4: int) -> None
    3. (arg0: mapnik._mapnik.Map, arg1: PycairoSurface) -> None
    4. (arg0: mapnik._mapnik.Map, arg1: PycairoContext, arg2: float, arg3: int, arg4: int) -> None
    5. (arg0: mapnik._mapnik.Map, arg1: PycairoContext) -> None

Invoked with: <mapnik._mapnik.Map object at 0x7f3fd5d14930>, <cairo.Context object at 0x7f3fce9d0c90>, 1.25, 0, 0

Is there something I missed when compiling? What should I do, please advise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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