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

Microsoft.VC90.CRT.manifest could not be extracted! #1866

Closed
AndCycle opened this issue Mar 9, 2016 · 2 comments
Closed

Microsoft.VC90.CRT.manifest could not be extracted! #1866

AndCycle opened this issue Mar 9, 2016 · 2 comments

Comments

@AndCycle
Copy link
Contributor

AndCycle commented Mar 9, 2016

Windows 10 [Version 10.0.10586]

Python 2.7.11
PyInstaller 3.1.1

cmd use to create exe
pyinstaller --noupx --onefile --version-file=tmp\build_dist_ver.txt --debug --name=start_gui_console start_gui.py

I hit an issue which cause by chinese username,

if I create a windows user with chinese name,
which will make a directory based on it,

as the screenshot shows
chinese username directory

when execute a PyInstaller bundle exe under that user with chinese username,
it will kick out an error box
error screenshot

says

Microsoft.VC90.CRT.manifest could not be extracted!

which I have no clue about how to solve it,
some google do have one blog post mention about it

Python脚本打包成exe程序总结

this post is just a simple instruction about how to pack python into exe,
he mention the issue,
unfortunately there is no solution about this.

info when execute as debug enable

PyInstaller Bootloader 3.x
LOADER: executable is G:\start_gui_console.exe
LOADER: homepath is G:
LOADER: _MEIPASS2 is NULL
LOADER: archivename is G:\start_gui_console.exe
LOADER: Extracting binaries
Microsoft.VC90.CRT.manifest could not be extracted!
LOADER: temppath is C:\Users\中文使~1\AppData\Local\Temp_MEI49402
LOADER: Error extracting binaries

probably related to #1799

@AndCycle
Copy link
Contributor Author

AndCycle commented Mar 9, 2016

C:\Users\中文使用者名稱\Downloads>start_gui_console.exe
PyInstaller Bootloader 3.x
LOADER: executable is C:\Users\銝剜?雿輻??蝔崤Downloads\start_gui_console.exe
LOADER: homepath is C:\Users\銝剜?雿輻??蝔崤Downloads
LOADER: _MEIPASS2 is NULL
LOADER: archivename is C:\Users\銝剜?雿輻??蝔崤Downloads\start_gui_console.exe
LOADER: Extracting binaries
Microsoft.VC90.CRT.manifest could not be extracted!
LOADER: temppath is C:\Users\中文使~1\AppData\Local\Temp_MEI74602
LOADER: Error extracting binaries

ok, a reference debug output,

as you can see only temppath is output in console with correct encoding,
so the _tempnam is actually output a multibyte encoding string,

int pyi_get_temp_path(char *buffer) in pyi_utils.c needs some correction about this

@AndCycle
Copy link
Contributor Author

I just fixed this, will make a pull request soon

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants