Skip to content

Conversation

@Rqml
Copy link

@Rqml Rqml commented Apr 15, 2025

PS C:\Users\hardy> jmpy -i "C:\Users\hardy\Desktop\hms_utils"
Traceback (most recent call last):
  File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\hardy\AppData\Roaming\Python\Python310\Scripts\jmpy.exe\__main__.py", line 7, in <module>
  File "C:\Users\hardy\AppData\Roaming\Python\Python310\site-packages\jmpy\cmdline.py", line 64, in execute
    start_encrypt(input_file_path, output_file_path, ignore_files, except_main_file)
  File "C:\Users\hardy\AppData\Roaming\Python\Python310\site-packages\jmpy\encrypt_py.py", line 204, in start_encrypt
    copy_files(input_file_path, output_file_path)
  File "C:\Users\hardy\AppData\Roaming\Python\Python310\site-packages\jmpy\encrypt_py.py", line 69, in copy_files
    shutil.copytree(src_path, dst_path, ignore=callable)
  File "C:\Program Files\Python310\lib\shutil.py", line 559, in copytree
    return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
  File "C:\Program Files\Python310\lib\shutil.py", line 453, in _copytree
    ignored_names = ignore(os.fspath(src), [x.name for x in entries])
  File "C:\Users\hardy\AppData\Roaming\Python\Python310\site-packages\jmpy\encrypt_py.py", line 65, in callable
    if search(src, dst_path):
  File "C:\Users\hardy\AppData\Roaming\Python\Python310\site-packages\jmpy\encrypt_py.py", line 41, in search
    return re.search(regexs, content)
  File "C:\Program Files\Python310\lib\re.py", line 200, in search
    return _compile(pattern, flags).search(string)
  File "C:\Program Files\Python310\lib\re.py", line 303, in _compile
    p = sre_compile.compile(pattern, flags)
  File "C:\Program Files\Python310\lib\sre_compile.py", line 788, in compile
    p = sre_parse.parse(p, flags)
  File "C:\Program Files\Python310\lib\sre_parse.py", line 955, in parse
    p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
  File "C:\Program Files\Python310\lib\sre_parse.py", line 444, in _parse_sub
    itemsappend(_parse(source, state, verbose, nested + 1,
  File "C:\Program Files\Python310\lib\sre_parse.py", line 526, in _parse
    code = _escape(source, this, state)
  File "C:\Program Files\Python310\lib\sre_parse.py", line 382, in _escape
    raise source.error("incomplete escape %s" % escape, len(escape))
re.error: incomplete escape \U at position 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant