xmind-sdk-python
xmind-sdk-python copied to clipboard
get AttributeError: 'str' object has no attribute 'decode' error
When I downloaded and followed the install procedrue, it was ok.
When I put the first 3 lines of example.py imports, it was ok. When I put the "w = xmind.load("test.xmind")", I got: ... File "C:\Python34\lib\site-packages\xmind-0.1a0-py3.4.egg\xmind\core__init__.py", line 204, in init AttributeError: 'str' object has no attribute 'decode'" error.
I went to .\xmind-sdk-python-master\xmind\core__init__.py and change line 204: self.TAG_NAME.decode("utf-8") to self.TAG_NAME and re-install xmind-sdk but still get the same error message.
What should I do?
I just read this http://stackoverflow.com/questions/28583565/str-object-has-no-attribute-decode-python-3-error. If I understood well, with python 3 every string is by default UTF-8. Can you try with python 2.7 ? That being said, it's indeed weird that you get the same error even after droping the "decode" part.
bump
bump..
Instead of bumping, guys, could you try to be helpful and answer my question ? Worth to be noted : As you may suspect, this repository has gone staled. Check the few active forks. If I remember well, there is a python 3 fork.