2017-04-09 1 views
1

print_control_identifiers()오류 동안 0.6.2

`>>> app['TRACE\u2122 3D Plus'].print_control_identifiers() 
Control Identifiers: 
Traceback (most recent call last): 
File "<stdin>", line 1, in <module> 
File "C:\Users\irgfff\AppData\Local\Programs\Python\Python35-32\lib\site- packa 
ges\pywinauto\application.py", line 636, in print_control_identifiers 
print_identifiers([this_ctrl, ]) 
File "C:\Users\irgfff\AppData\Local\Programs\Python\Python35-32\lib\site- packa 
ges\pywinauto\application.py", line 630, in print_identifiers 
print(output) 
File "C:\Users\irgfff\AppData\Local\Programs\Python\Python35-32 \lib\encodings\ 
cp437.py", line 19, in encode 
return codecs.charmap_encode(input,self.errors,encoding_map)[0] 
UnicodeEncodeError: 'charmap' codec can't encode character '\u2122' in position 
17: character maps to <undefined> 
>>>` 

내 구성이 생각

`C:\Users\irgfff>pip freeze 
comtypes==1.1.3 
pypiwin32==219 
pywinauto==0.6.2 
six==1.10.0` 

답변

0

우선입니다 실행하는 동안 나는 다음과 같은 오류를 얻을 수 그것은 pywinauto 문제지만, 아직 확실하지 100 % ... 스크립트의 첫 부분에 다음 주석을 삽입하십시오 (매우 첫 줄에 중요합니다) :

# encoding: utf-16 
# the rest of the script 

어쨌든이 기호는 테스트 가능성 및 자동화에 좋지 않음을 소속 된 소프트웨어 엔지니어에게 알려주십시오. :)