xmind-sdk-python icon indicating copy to clipboard operation
xmind-sdk-python copied to clipboard

get AttributeError: 'str' object has no attribute 'decode' error

Open yuanmark opened this issue 9 years ago • 4 comments

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?

yuanmark avatar May 09 '16 10:05 yuanmark

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.

brumar avatar May 09 '16 19:05 brumar

bump

nikevp avatar Dec 08 '17 16:12 nikevp

bump..

SivaGabbi avatar Dec 27 '17 11:12 SivaGabbi

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.

brumar avatar Dec 27 '17 11:12 brumar