Open Perlence opened 2 years ago
Seems like python_dll_path() works correctly.
>>> python_dll_path()
'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\\python310.dll'
It does, but I had to use admin access to open that directory.
But you can access the file directly.
ls -l 'C:/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0/python3.dll'
I'm not exactly sure but it looks like if you want LOAD_WITH_ALTERED_SEARCH_PATH
you should add the DLLs folder as well.
It's readable BTW
ls -l 'C:/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0/DLLs/'*.dll
5
means access denied, but it's readable so the only thing I can think of is that it's not considered executable, but not sure if there's a specific thing for that in Windows.
The script errors out with
Cannot load Python DLL: 5
.The user running the script is not an admin.