Open Skehmatics opened 1 year ago
Using a debugger, I can see that python310.dll makes a call to LoadLibraryExW
using the lpFileName \\?\UNC\smbshare\example\lib\_ctypes.pyd
which notably fails with the same error message as is present in the ImportError. An earlier call to LoadLibraryExW
for the python3 dll did succeed, but it used a path like \\smbshare\example\python3
instead.
Likely related to https://gitlab.com/kornelski/dunce/-/issues/2 if that indeed is the issue
Steps to reproduce:
Create a simple pyoxidizer.bzl config with filesystem-relative imports enabled
def make_install(exe): files = FileManifest() files.add_python_resource("example", exe) return files
register_target("exe", make_exe) register_target("install", make_install, depends=["exe"], default=True)
resolve_targets()
Traceback (most recent call last): File "", line 1, in
File "ctypes", line 8, in
ImportError: DLL load failed while importing _ctypes: The parameter is incorrect.