extremecoders-re / pyinstxtractor

PyInstaller Extractor
GNU General Public License v3.0
2.93k stars 612 forks source link

OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'pyd-runtime-tmpdir C:' #44

Closed nevarDeath closed 2 years ago

nevarDeath commented 2 years ago

Error is in the title. I have python 3.8.0 installed. pyinstxtractor says the python version of my file is 38. It also says pyinstaller version is 2.1+ I've also independently verified this exe was packaged by pyinstaller. I'm running the following command in an admin command shell in Win10:

python pyinstxtractor.py program.exe

Here is the traceback info: image

Is it possible this is due to something the developer of the packaged script did in their file(s) or is this something on my end/pyinstxtractor?

extremecoders-re commented 2 years ago

Please check with the latest commit.

nevarDeath commented 2 years ago

Thank you! I did use the script from your newest commit, but it now encounters the same problem at different line numbers. I'm running this on a windows 10 VM, so still running in the exact same environment described in the original post. Here's the traceback with the newest commit:

Traceback (most recent call last):
  File "pyinstxtractor.py", line 423, in <module>
    main()
  File "pyinstxtractor.py", line 412, in main
    arch.extractFiles()
  File "pyinstxtractor.py", line 282, in extractFiles
    os.makedirs(basePath)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\os.py", line 211, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\os.py", line 211, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\os.py", line 211, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\os.py", line 221, in makedirs
    mkdir(name, mode)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'pyi-runtime-tmpdir C:'

EDIT: New image, but githib showed the same as the image in my OP. Posted copy/paste of traceback from latest commit.

extremecoders-re commented 2 years ago

Have reordered the if statements. Please check once again with the attached file.

pyinstxtractor.py

nevarDeath commented 2 years ago

That resolved it, thank you so much! image

extremecoders-re commented 2 years ago

Thanks for testing! 👍