自從開始使用Android手機後, 很久沒有更新過自己的Blog, 都忙著使用app與朋友互相傳送訊息, 工作上現在使用Python 與 Sikuli IDE寫測試程式, Sikuli IDE的影像辨識有時會發生錯誤, 但是在GUI上的操作, 很容易上手直覺化.
這個網誌中的熱門文章
error message : configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: "%)']/following::android.widget.EditText"
In general analysis, the last sentence is the key point: When reading the configuration file config.ini, there are % caused by Solution one: Most likely configparser is reading the literal "%" sign in the string. The '%' symbol is used for string interpolation (substitution). If you want to use a literal "%", you can escape it with another "%". For example, use "100%%" to mean "100%" in configuration variables read by configparser. Solution two: Change from cf= configparser.ConfigParser() to : cf = configparser.RawConfigParser()
OSError: [Errno 22] Invalid argument:
1 . Error message : File "tarfile.py", line 2155, in makefile with bltn_open(targetpath, "wb") as target: OSError: [Errno 22] Invalid argument: This looks like a windows problem as colons in filenames are reserved characters in Windows. We don't like the idea of renaming the actual file for the sake of supporting in Windows. We will look into alternatives and track this as an enhancement separately. 2. Edit tarfile.py : You should add a line in 2155 # targetpath_s = targetpath.replace(':','-')
留言