close
今天心血來潮就灌了一個很久沒用的簡報工具..... Impressive
這軟體拿來簡報,功能還蠻強的說...只是我真的很久沒用他了XD,這幾天才又想起他,所以打算裝來試試看XD,不過今天灌完以後結果遇到一些有點囧的問題....
Welcome to Impressive version 0.10.2 /usr/bin/impressive:94: DeprecationWarning: the md5 module is deprecated; use hashlib instead import random, getopt, os, types, re, codecs, tempfile, glob, StringIO, md5, re Detected screen size: 1280x800 pixels OpenGL renderer: GeForce 8400M GS/PCI/SSE2 Using GL_ARB_texture_non_power_of_two. Traceback (most recent call last): File "/usr/bin/impressive", line 4015, in <module> run_main() File "/usr/bin/impressive", line 3576, in run_main main() File "/usr/bin/impressive", line 3567, in main UpdateCaption(Pcurrent) File "/usr/bin/impressive", line 2337, in UpdateCaption pygame.display.set_caption(caption, __title__) TypeError: argument 1 must be string without null bytes, not str |
不過我也不是省油的燈,所以上網找了解決方法!
https://bugs.launchpad.net/ubuntu/+source/impressive/+bug/490246/comments/5
1 *** ./impressive.patched 2010-01-10 02:51:44.000000000 +0100 2 --- /usr/bin/impressive 2008-12-11 20:54:51.000000000 +0100 3 *************** 4 *** 371,379 **** 5 def decode_literal(m): - 6 try: 7 ! tmp = int(m.group(0)[2:-1]) 8 ! if (tmp == 0): 9 ! return '' 10 ! else: 11 ! return chr(tmp) - 12 except ValueError: |- 13 return '?' 14 --- 371,375 ---- 15 def decode_literal(m): - 16 try: 17 ! return chr(int(m.group(0)[2:-1])) - 18 except ValueError: |- 19 return '?' |
打完Patch一切解決.......
全站熱搜