Giter Club home page Giter Club logo

autolocalization's Issues

运行报错

AutoGenStrings.py
-------> sourceFilePath: /Users/laycept/Desktop/IOS-doctor/ZQProject/Base.lproj/*.storyboard filePath: /Users/laycept/Desktop/IOS-doctor/ZQProject
init with Main.storyboard

    • genstrings Main.storyboard successfully
    • dealing with /Users/laycept/Desktop/IOS-doctor/ZQProject/zh-Hans.lproj/Main.strings
      /Users/laycept/Desktop/IOS-doctor/ZQProject/TempfileOfStoryboardNew.strings
      /Users/laycept/Desktop/IOS-doctor/ZQProject/zh-Hans.lproj/Main.strings
      utf-16/UCS-2,big endian
      Traceback (most recent call last):
      File "/Users/laycept/Desktop/IOS-doctor/ZQProject/RunScript/AutoGenStrings.py", line 242, in
      main()
      File "/Users/laycept/Desktop/IOS-doctor/ZQProject/RunScript/AutoGenStrings.py", line 224, in main
      generateLocalizableFiles(upperFilePath, sourceFilePathName)
      File "/Users/laycept/Desktop/IOS-doctor/ZQProject/RunScript/AutoGenStrings.py", line 178, in generateLocalizableFiles
      compareWithFilePath(tempFile_Path,targetPath)
      File "/Users/laycept/Desktop/IOS-doctor/ZQProject/RunScript/AutoGenStrings.py", line 92, in compareWithFilePath
      anotationString = getAnotationOfString(newString_txt,linestr)
      File "/Users/laycept/Desktop/IOS-doctor/ZQProject/RunScript/AutoGenStrings.py", line 72, in getAnotationOfString
      anotationMatch = re.search(anotationRegex,string_txt)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 146, in search
      return _compile(pattern, flags).search(string)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 251, in _compile
      raise error, v # invalid expression
      sre_constants.error: multiple repeat
      Command /bin/sh failed with exit code 1

环境是Python2.7 运行报错sre_constants.error: multiple repeat,请帮忙看下,谢谢

-------> sourceFilePath: /Users/singer/Documents/work/project/code/xxxxx/xxxxx/xxxxx/Classes/Home/Base.lproj/*.storyboard filePath: /Users/singer/Documents/work/project/code/xxxxx/xxxxx/xxxxx/Classes/Home
init with Home.storyboard

    • genstrings Home.storyboard successfully
    • dealing with /Users/singer/Documents/work/project/code/xxxxx/xxxxx/xxxxx/Classes/Home/zh-Hans.lproj/Home.strings
      /Users/singer/Documents/work/project/code/xxxxx/xxxxx/xxxxx/Classes/Home/TempfileOfStoryboardNew.strings
      /Users/singer/Documents/work/project/code/xxxxx/xxxxx/xxxxx/Classes/Home/zh-Hans.lproj/Home.strings
      utf-16/UCS-2,big endian
      Traceback (most recent call last):
      File "AutoGenStrings.py", line 242, in
      main()
      File "AutoGenStrings.py", line 224, in main
      generateLocalizableFiles(upperFilePath, sourceFilePathName)
      File "AutoGenStrings.py", line 178, in generateLocalizableFiles
      compareWithFilePath(tempFile_Path,targetPath)
      File "AutoGenStrings.py", line 92, in compareWithFilePath
      anotationString = getAnotationOfString(newString_txt,linestr)
      File "AutoGenStrings.py", line 72, in getAnotationOfString
      anotationMatch = re.search(anotationRegex,string_txt)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 146, in search
      return _compile(pattern, flags).search(string)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 251, in _compile
      raise error, v # invalid expression
      sre_constants.error: multiple repeat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.