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: exception: access violation reading 0x00000010 #7893

Closed
GDHang opened this issue Aug 28, 2023 · 8 comments · Fixed by #7894
Closed

OSError: exception: access violation reading 0x00000010 #7893

GDHang opened this issue Aug 28, 2023 · 8 comments · Fixed by #7894
Labels

Comments

@GDHang
Copy link

GDHang commented Aug 28, 2023

python32 3.10,my project import xlwings,execute pyinstaller successfully,but start exe failed

pyinstaller -version:5.13.1
xlwings -version:0.30.11

Traceback (most recent call last):
File "Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_win32comgenpy.py", line 46, in
File "Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_win32comgenpy.py", line 31, in pyi_rthook
File "PyInstaller\fake-modules_pyi_rth_utils_init
.py", line 43, in secure_mkdtemp
File "PyInstaller\fake-modules_pyi_rth_utils_win32.py", line 234, in secure_mkdir
OSError: exception: access violation reading 0x00000010
[15328] Failed to execute script 'pyi_rth_win32comgenpy' due to unhandled exception!

@GDHang GDHang added the triage Please triage and relabel this issue label Aug 28, 2023
@rokm rokm added bug and removed triage Please triage and relabel this issue labels Aug 28, 2023
@rokm
Copy link
Member

rokm commented Aug 28, 2023

Ah, yes, I forgot to add argtypes for CreateDirectoryW in pyi_rth_utils\_win32.py (and for some other functions used in error handling codepaths).

@GDHang
Copy link
Author

GDHang commented Aug 28, 2023

Ah, yes, I forgot to add argtypes for CreateDirectoryW in pyi_rth_utils\_win32.py (and for some other functions used in error handling codepaths).

Thanks for answering my problem!

@ils94
Copy link

ils94 commented Aug 28, 2023

Ah, yes, I forgot to add argtypes for CreateDirectoryW in pyi_rth_utils\_win32.py (and for some other functions used in error handling codepaths).

I'm having the same problem, but I don't know how to apply the fixes you apparently did.

@ewcr
Copy link

ewcr commented Aug 29, 2023

Please help, how can I resolve the problem in _win32.py file?

uibmz pushed a commit to opsi-org/opsiclientd that referenced this issue Aug 29, 2023
@ils94
Copy link

ils94 commented Aug 29, 2023

Ah, yes, I forgot to add argtypes for CreateDirectoryW in pyi_rth_utils\_win32.py (and for some other functions used in error handling codepaths).

I'm having the same problem, but I don't know how to apply the fixes you apparently did.

I fixed it by installing pyinstaller 5.6.2 lol

All modules, even the ones I was certain to build .exe without issue was giving out this error, so I had to downgrade.

@ewcr
Copy link

ewcr commented Aug 29, 2023

It's a pity, no way, there's nothing else to do but downgrade
thanks.

@bwoodsend
Copy link
Member

PyInstaller v5.13.2 should be out in an hour or so.

@bwoodsend
Copy link
Member

There we go. That should be normality restored.

@bwoodsend bwoodsend closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants