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

Streaming output image to stdout doesn't work #44

Open
Luflosi opened this issue Jul 1, 2022 · 0 comments
Open

Streaming output image to stdout doesn't work #44

Luflosi opened this issue Jul 1, 2022 · 0 comments

Comments

@Luflosi
Copy link
Contributor

Luflosi commented Jul 1, 2022

Executing nik4.py --fit route --padding 30 --add-layers route,stops --vars route=/path/to/route.json --ppi 100 -a +4 /path/to/osm.xml - outputs the following traceback:

Traceback (most recent call last):
  File "/path/to/nik4.py", line 677, in <module>
    run(options)
  File "/path/to/nik4.py", line 520, in run
    im.save(outfile, fmt)
Boost.Python.ArgumentError: Python argument types in
    Image.save(Image, _io.BufferedRandom, str)
did not match C++ signature:
    save(mapnik::image_any, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, mapnik::rgba_palette)
    save(mapnik::image_any, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
    save(mapnik::image_any, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)

While nik4.py --fit route --padding 30 --add-layers route,stops --vars route=/path/to/route.json --ppi 100 -a +4 /path/to/osm.xml /path/to/out.png works fine.
Is this a problem with Nik4 or perhaps with the way it or some dependency is packaged? I could try installing it via pip on Arch Linux if you think that this may help.
I'm running the latest version 1.7.

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