Python Bundles not available in Revit 2024

I’ve pyRevit installed for Revit 2024 and 2025 and use my own extension.
As everybody know pyRevit will work in every installed Revit-version.

In Revit 2025 I see my custom extension and it loads my custom python modules.
I do not have to add any path in my Python-code.
pyRevit - Bundle Lib & bin

MyPanel.panel/
├── lib/
│   └── some_python_module.py
│
├── bin/
│   └── SomeRequired.dll
│
├── MyButton1.pushbutton/
├── MyButton2.pushbutton/
└── MyButton3.pushbutton/

I have a Dynamo-script with python-nodes. The nodes uses Python-functions of the loaded Python-module.
When I start my Dynamo-script in R25 it works 100%. (custom Python-functions are loaded/available)

When I start the same Dynamo-script in R24 it does not work. It gives: “importerror: no module named …”
So it can not find my custom Python-module and so it does not load my custom python functions.

In R25 I use the new Pythonnet3 package
In R24 I use IronPython 2.7 package

What can be the issue and whats is the solution?
The do not want to add any path in a Python-code. With pyrevit installed you have to do this.

Hey,

Can you run the Dyn script directly in both versions of dynamo?

I might state the obvious:
Pyrevit just launches an instance of dynamo in the background (headless) and runs your script.

If it requires Dyn packages and they are not available in your install, it won’t work. And more generally if you Dyn script is not compatible with the version of the Dyn engine…