MAXIMO 7.6:在自动化脚本中导入套接字时,出现“ AttributeError:类型对象're'没有属性'escape'”

时间:2019-11-01 13:25:23

标签: jython maximo

当我运行此自动化脚本时

from java.lang import System
import sys

# Required : Appending to sys.path to refer to python libraries
if sys.path.count('__pyclasspath__/Lib') == 1:
    # print '\nPath to /Lib already exists'
    pass # 'nop'`enter code here`
else:
    # print '\nExtend path to /Lib '
    sys.path.append('__pyclasspath__/Lib')

# Test statements for testing the imported libraries: os
import os
# print '\nPrint os.getcwd()' + os.getcwd() 

import re
import socket
  

我明白了:

     

AttributeError:类型对象're'在第17行没有属性'escape'

     

BMXAA7837E-发生错误,导致TEST_EXT启动点的TEST EXT脚本无法运行。     AttributeError:类型对象're'在第17行没有属性'escape'

0 个答案:

没有答案