We are experiencing issues in trying to get Cpython to run within the pyRevit tools within Revit 2024.
Our project models are Revit 2024 so we need to stay on this version
We installed pyRevit version 5.01 and managed to customise our ribbon however, when we try to run Cpython by including #!python3 at the start of the script, pyRevit insists on running Iron python
We set up the following brief script to test the sys version
#!Python3
import sys
print(“Python Executable:”, sys.executable)
print(“Python Version:”, sys.version)
print(“Sys Path:”, sys.path)
running this through a button on the ribbon confirms that the python version is Ironpython 2.7
if we run the command
pyrevit clones engines master
this confirms amongst other things that the Cpython runtime is false
CPY3123 (netfx) | Kernel: CPython | Version: 3123 | Runtime: False | Path: “C:\Program Files\pyRevit-Master\bin\cengines\CPY3123\python312.dll” | Desc: “CPython Engine”
we have tried multiple different ways to get Runtime: True but nothing seems to work.
Is there a known issue with the pyRevit_5.0.1.25051_admin_signed (1).exe installation whereby Cpython will not run in Revit 2024.
We have not as yet tested this in Revit 2025.