Python Forum
Failed attempts to load Microsoft Appstore Python DLLs
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Failed attempts to load Microsoft Appstore Python DLLs
#1
Greetings community,

I am trying to load Python dynamic libraries to interface Python from an application that I am trying to develop. The Python version I am trying to load is the one available in the Microsoft AppStore. Now when I use the “LoadLibraryExW” (which is a WIN32 API: https://learn.microsoft.com/en-us/window...libraryexw) function to load the path. It throws an error having error code 5 implicating that access is denied. It could work if I forcefully take ownership (which is initially with “TrustedInstaller”) and alter the permissions of the file to allow full control to the current user or permit administrator access, but this does not seem to be an authentic or secure workaround for the same.

This is the path to the DLL I am trying to load.

C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\python39.dll



In order to allow interfacing I also tried building CPython from the public repository (https://github.com/python/cpython) but I could notice that directory structure of CPython code built on Windows is different from the one seen for Microsoft Appstore installation. I want to understand how the Appstore version of Python is built and how is it different from the process adopted by the official website’s Python. So, is there a different way to build Python for Windows AppStore? If yes, can you please point me to the webpage which has instructions.


Thanks and best regards,
Piyush Dubey
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Microsoft text phone verifying account cito 2 996 Jul-21-2022, 12:16 PM
Last Post: cito
  mysql.connector.errors.ProgrammingError: Failed processing format-parameters; Python ilknurg 3 5,637 Jan-18-2022, 06:25 PM
Last Post: ilknurg
  error : "Microsoft Visual C++ 14.0 is required. " Even its installed Barak 4 4,024 Oct-13-2021, 10:39 PM
Last Post: Underscore
  keyboard module doesn't work in the microsoft version terminal of python. username 1 2,822 Feb-25-2021, 05:19 PM
Last Post: Larz60+
  DLL load failed flaviu2 5 4,113 Oct-01-2020, 02:05 PM
Last Post: snippsat
  Creating Excel files compatible with microsoft access vkallavi 0 1,594 Sep-17-2020, 06:57 PM
Last Post: vkallavi
  How to load log.txt directly into python codes? sparkt 6 2,987 Aug-21-2020, 03:51 PM
Last Post: sparkt
  ImportError:DLL Load Failed after importing scipy.sparse.linalg sea_jam 0 2,360 Jul-31-2020, 01:54 AM
Last Post: sea_jam
  Authentication error when accessing Microsoft SharePoint klllmmm 3 10,354 Jun-10-2020, 07:46 AM
Last Post: nuffink
  Load table from Oracle to MYSQL using python himupant94 0 1,653 May-12-2020, 04:50 PM
Last Post: himupant94

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020