Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

TypeError: render(): incompatible function arguments #286

Copy link
Copy link
@zhoufeng422

Description

@zhoufeng422
Issue body actions

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.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.