serfend / pydumpck

a multi-threads tool for decompile exe,elf,pyz,pyc packed by python which is base on pycdc and uncompyle6.
https://pypi.org/project/pydumpck/
289 stars 34 forks source link

OSError: [Errno 22] Invalid argument when using pydumpck #47

Open IcefoxKishi opened 9 months ago

IcefoxKishi commented 9 months ago
C:\Users\thndf\Downloads\cawjc\Shogibar.exe_extracted>pydumpck C:/Users/thndf/Downloads/cawjc/Shogibar.exe_extracted/ShogiBar.pyc
plugins loaded with ['pycdc']
[*] target file input:C:/Users/thndf/Downloads/cawjc/Shogibar.exe_extracted/ShogiBar.pyc
to:output_4244298
[*] start dump target file.
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\thndf\AppData\Local\Programs\Python\Python311\Scripts\pydumpck.exe\__main__.py", line 7, in <module>
  File "C:\Users\thndf\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydumpck\pyinstaller_dump.py", line 93, in run
    return dmp.main(**vars(args))
           ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\thndf\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydumpck\py_common_dump\__init__.py", line 101, in main
    result = self.action_dispatch[dispatch_to](target_file)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\thndf\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydumpck\py_common_dump\__init__.py", line 50, in handle_pyc_file
    shutil.copy(target_file, new_file)
  File "C:\Users\thndf\AppData\Local\Programs\Python\Python311\Lib\shutil.py", line 419, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "C:\Users\thndf\AppData\Local\Programs\Python\Python311\Lib\shutil.py", line 258, in copyfile
    with open(dst, 'wb') as fdst:
         ^^^^^^^^^^^^^^^
OSError: [Errno 22] Invalid argument: 'output_4244298\\C:/Users/thndf/Downloads/cawjc/Shogibar.exe_extracted/ShogiBar.pyc'

Any idea why this error occurs? It seems to be some kind of problem with the path.