Getting issue in autojsoncxx.py python file – Python 2.7.17

  c++, generate, json, python
$ [email protected] autojsoncxx % python autojsoncxx.py --input=persondef.json --output=person.hpp
    Traceback (most recent call last):
      File "autojsoncxx.py", line 93, in <module>
        NOESCAPE_CHARACTERS = bytes(string.digits + string.ascii_letters + ' ', encoding='utf8')
    TypeError: str() takes at most 1 argument (2 given)

I am trying to use autojsoncxx. Was able to follow the steps to run the following:

cake .
make
make test

successfully… however, I am getting the above error.

[email protected] autojsoncxx % python --version
Python 2.7.17

Code is located:

git clone https://github.com/netheril96/autojsoncxx.git –recursive

Source: Windows Questions C++

LEAVE A COMMENT