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

Python3.54rc1 报错 #13

Open
jingwangnet opened this issue May 19, 2018 · 2 comments
Open

Python3.54rc1 报错 #13

jingwangnet opened this issue May 19, 2018 · 2 comments

Comments

@jingwangnet
Copy link

jingwang@jingwang-pc:~$ sudo img2html -s 25 -c '' -t 'jing.wang' -i ~/Pictures/Wallpapers/174fea21dd2d2f0d99a8d9c5de412757.jpg  -o test.html
Traceback (most recent call last):
  File "/usr/local/bin/img2html", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/dist-packages/img2html/__init__.py", line 35, in main
    font_family=args.font,
  File "/usr/local/lib/python3.5/dist-packages/img2html/converter.py", line 73, in __init__
    char = char.decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'
@jingwangnet
Copy link
Author

pip 安装的 img2html-0.0.7

@DawN1ng
Copy link

DawN1ng commented Jun 26, 2018

decode那一行和它的判断条件一起删掉,next()方法都改为__next__(),xrange()方法都改为range()

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

No branches or pull requests

2 participants