Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IcefoxKishi opened this issue Oct 6, 2023 · 0 comments
Open

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

IcefoxKishi opened this issue Oct 6, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@IcefoxKishi
Copy link

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.

@serfend serfend added the bug Something isn't working label Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants