Windows and Python

I installed Gramps on a freshly re-formatted & restored to factory Windows Pro 10 laptop. The restore creates a 0kb python.exe and python3.exe shortcut in the command path in the AppData/Local/Microsoft/WindowsApps folder. These shortcuts take you to Python downloads on the Microsoft store

How are Gramps modules executed from Python source if there is not a full version of Python installed with the AIO? Or, more likely, where is the Python interpreter installed with the AIO? I Realize that there are small gramps.exe, grampsd.exe and and grampsd.exe launchers installed. Do they set a command path to a minimal Python interpreter?

We don’t really have to download and install the full Python 3.12 suite to just run the make.py to build an add-on “Project” compatible with the Addon Manager, do we?

How install python modules into addon on Windows?

You might find the following an interesting read

  • Windows python3 executable one of the comments mentions “…on Windows, python.exe simply invokes functions in python3X.dll…”

If you check the Gramps AIO install directory C:\Program Files\GrampsAIO64-5.2.0 you can see the file libpython3.11.dll

2 Likes

Yes! That is a very interesting read. (Particularly because it touches on Python issues with macOS too and suggests why @dsblank used Jupyter in his classes.) Thank you!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.