Open GoogleCodeExporter opened 8 years ago
forgot to include the traceback:
Boost.Python.ArgumentError: Python argument types in
IArchive.__init__(IArchive, unicode)
did not match C++ signature:
__init__(class boost::python::api::object, class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > fileName)
Original comment by 007bren...@gmail.com
on 19 Sep 2013 at 3:07
Original comment by miller.lucas
on 19 Sep 2013 at 8:15
Original comment by miller.lucas
on 19 Sep 2013 at 8:15
User should encode filename to proper filesystem bytes (string), like
`open(u'ыыыы'.encode(sys.getfilesystemencoding()))`
Or custom converter should be implemented in python bindings.
I think this page
https://wiki.python.org/moin/boost.python/EmbeddingPython#Working_with_Unicode
And something like
https://github.com/sopvop/ptex-tools/blob/master/src/ptex_utils/py_ptx_utils.cpp
#L5 for python2 (python3 has PyUnicode_FSConverter) should be useful for
implementing this.
Original comment by sop...@gmail.com
on 27 Aug 2014 at 8:00
Original issue reported on code.google.com by
007bren...@gmail.com
on 19 Sep 2013 at 3:06