10000 Mapnik Python bindings expect 8-bit strings, not unicode by Nakaner · Pull Request #30 · Zverik/Nik4 · GitHub
[go: up one dir, main page]

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

Mapnik Python bindings expect 8-bit strings, not unicode #30

Merged
merged 1 commit into from
Jun 28, 2018

Conversation

Nakaner
Copy link
Contributor
@Nakaner Nakaner commented Jun 25, 2018

This fixes following error:

Traceback (most recent call last):
  File "./nik4.py", line 602, in <module>
    run(options)
  File "./nik4.py", line 369, in run
    mapnik.load_map_from_string(m, style_xml, False, style_path)
Boost.Python.ArgumentError: Python argument types in
    mapnik._mapnik.load_map_from_string(Map, unicode, bool, str)
did not match C++ signature:
    load_map_from_string(mapnik::Map {lvalue}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
    load_map_from_string(mapnik::Map {lvalue}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)
    load_map_from_string(mapnik::Map {lvalue}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)

This error was introduced by commit 0125bf7.

This fixes following error:
Traceback (most recent call last):
  File "./nik4.py", line 602, in <module>
    run(options)
  File "./nik4.py", line 369, in run
    mapnik.load_map_from_string(m, style_xml, False, style_path)
        Boost.Python.ArgumentError: Python argument types in
    mapnik._mapnik.load_map_from_string(Map, unicode, bool, str)
      did not match C++ signature:
    load_map_from_string(mapnik::Map {lvalue},
      std::__cxx11::basic_string<char, std::char_traits<char>,
      std::allocator<char> >)
    load_map_from_string(mapnik::Map {lvalue},
      std::__cxx11::basic_string<char, std::char_traits<char>,
      std::allocator<char> >, bool)
    load_map_from_string(mapnik::Map {lvalue},
      std::__cxx11::basic_string<char, std::char_traits<char>,
      std::allocator<char> >, bool, std::__cxx11::basic_string<char,
      std::char_traits<char>, std::allocator<char> >)
@Nakaner Nakaner mentioned this pull request Jun 28, 2018
@Zverik Zverik merged commit 5482b1a into Zverik:master Jun 28, 2018
@Zverik
Copy link
Owner
Zverik commented Jun 28, 2018

Thanks!

@Nakaner Nakaner deleted the unicode_to_str branch February 6, 2025 17:13
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

Successfully merging this pull request may close these issues.

2 participants
0