# Possible Bug: Standard Library Path Mismatch in IronPython2.7 Package for Revit 2025

**URL:** <https://forum.dynamobim.com/t/possible-bug-standard-library-path-mismatch-in-ironpython2-7-package-for-revit-2025/110617>\
**Category:** Uncategorized\
**Tags:** python\
**Created:** [June 6, 2025, 9:08am UTC](https://forum.dynamobim.com/t/possible-bug-standard-library-path-mismatch-in-ironpython2-7-package-for-revit-2025/110617 "2025-06-06T09:08:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeiroSHU](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@SeiroSHU](https://forum.dynamobim.com/u/SeiroSHU)\
**Post date:** [June 6, 2025, 9:08am UTC](https://forum.dynamobim.com/t/possible-bug-standard-library-path-mismatch-in-ironpython2-7-package-for-revit-2025/110617/1 "2025-06-06T09:08:52Z")

</div>

Hi Dynamo Team (or everyone),

In all versions before Revit 2025, the Python node in Dynamo worked without any issues — it automatically included the IronPython standard library, so modules like `traceback` could be imported without manually editing `sys.path`.

However, in Revit 2025, I noticed that the folder name for the IronPython standard library was changed from:

IronPython.StdLib.2.7.9 to Lib

But the Python node still tries to import from the old path (`IronPython.StdLib.2.7.9`). I checked `sys.path` during runtime, and it still contains the outdated folder name, which no longer exists. As a result, importing standard modules fails unless I manually add the new `Lib` path.

I would like to confirm:

- Is this an intended change?
- If not, can this be considered a bug in the path configuration for the Python node in Revit 2025?

---

<div class="post-metadata">

**Author:** ![c.poupin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/c.poupin/32/89152_2.png) [@c.poupin](https://forum.dynamobim.com/u/c.poupin)\
**Post date:** [June 6, 2025, 5:56pm UTC](https://forum.dynamobim.com/t/possible-bug-standard-library-path-mismatch-in-ironpython2-7-package-for-revit-2025/110617/2 "2025-06-06T17:56:30Z")

</div>

Hi,

an [issue](https://github.com/DynamoDS/DSIronPython/issues/17) has been reported.  
However, I strongly advise you to migrate to Ironpython3 or PythonNet3 from Revit 2025+ (Net Core) onwards.

---

<div class="post-metadata">

**Author:** ![SeiroSHU](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@SeiroSHU](https://forum.dynamobim.com/u/SeiroSHU)\
**Post date:** [June 10, 2025, 4:57am UTC](https://forum.dynamobim.com/t/possible-bug-standard-library-path-mismatch-in-ironpython2-7-package-for-revit-2025/110617/3 "2025-06-10T04:57:54Z")

</div>

Hi,

Thank you very much for your response.

this does seem to be a bug. I’m currently using the same approach: locating the standard library directory via the application domain and manually adding it to `sys.path`.

It looks like the Dynamo team may not plan to fix this behavior anytime soon.

Also, I totally agree with your opinion — I would really like to switch to PythonNet 3.  
But in my case, since I need to support multiple Revit versions at the same time, it’s not a very practical option for now.

Anyway, I truly appreciate your detailed and helpful answer. Thanks again!

---

<div class="post-metadata">

**Author:** ![c.poupin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/c.poupin/32/89152_2.png) [@c.poupin](https://forum.dynamobim.com/u/c.poupin)\
**Post date:** [June 10, 2025, 12:50pm UTC](https://forum.dynamobim.com/t/possible-bug-standard-library-path-mismatch-in-ironpython2-7-package-for-revit-2025/110617/4 "2025-06-10T12:50:43Z")

</div>

> [@SeiroSHU](#):
>
> But in my case, since I need to support multiple Revit versions at the same time, it’s not a very practical option for now.

I understand, but It is by no means certain that IronPython 2.7 will support .NET 9 and beyond. The IronPython team is now focusing on IronPython 3.

_In my opinion, Revit 2025 and NetCore have established a new cycle, so it’s a good time to migrate with new, updated scripts (with a preference for PythonNet3)._

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [June 10, 2025, 9:41pm UTC](https://forum.dynamobim.com/t/possible-bug-standard-library-path-mismatch-in-ironpython2-7-package-for-revit-2025/110617/5 "2025-06-10T21:41:17Z")

</div>

> [@c.poupin](#):
>
> I understand, but It is by no means certain that IronPython 2.7 will support .NET 9 and beyond

I’ll come out and say it directly. IronPython2 is not supported at this time, and hasn’t been so since Dynamo 2.8 - meaning since Revit 2022’s initial release. The IronPython2 package has always been intended as a temporary measure to give us (graph, script, and package authors) time to upgrade.

The stopgap nature of the package means that eventually we will all have to update, which sounds worse than it is. You’ll learn a few things along the way and come out the other side a better code author.

This doesn’t mean you have to ‘go back and change’ what your team is running right now. But it does mean that you should have stoped writing any code in IronPython2 and do all new work in a supported engine. Yes, this means that ‘new stuff’ will not work all the way back, but CPython will run in ALL supported Revit releases, so start there and then look to IronPython3 when you must.
