Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: render(): incompatible function arguments #286

Open
zhoufeng422 opened this issue Jan 16, 2025 · 0 comments
Open

TypeError: render(): incompatible function arguments #286

zhoufeng422 opened this issue Jan 16, 2025 · 0 comments

Comments

@zhoufeng422
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant