-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: ironpython 3.4 fails to load in pyrevit 5 from WIP installers #2440
Comments
Thanks for the report. |
I can reproduce this on my machine, that has the pyrevit Dev tools extension enabled. changing the end of try:
runtime.types.ScriptExecutor.ExecuteScript(
script_data,
script_runtime_cfg
)
except Exception as e:
mlogger.error(
'Error executing extension startup script: %s | %s', script_path, e
) But then no python script will run, outputting the same error as the OP. This is the full exception stack trace I got while debugging with visual studio:
The root cause is that IronPython3 renamed I believe that we should move the The question is: @jmcouffin @dosymep are we willing to do this? I personally would like to focus on CPython 3 support instead of trying to support a library that was already old when it was released 🤣 |
Agreed on the "oldness" ;p If I am not mistaken, wouldn't it imply a lot of issues/refactoring?
|
What I meant is that I would like to try to bring support to cpython 3 alongside ironpython 2.7 rather than trying to make ironpython 3.4 work as engine for pyrevit |
gotcha what would be your arguments pros/cons? |
Not sure I follow you... I already proposed to drop the IronPython 3.4.0 engine, and use only one IronPython engine at a time, in my plan proposal; CPython is something that I always wanted to make it work because of the endless possibilities given by the various python libraries out there (for which I proposed the "dependencies" section in the extension manifest and the usage of virtualenv/uv for managing them). |
Makes sense.
I agree, but I am a bit worried about it, as you mentioned you would not be involved anymore in 2025, I wonder if anyone could take over the task _ and I am sure chatGPT is not there yet ;p |
✈ Pre-Flight checks
🐞 Describe the bug
The system error: could not load type 'IronPythonruntime.list from assembly 'pyrevitlabs.Ironpython Version = 3.4.1.0
shows up when I changed the core settingst ot use ironpython 3.4
Also because of the above error, pyrevit doesnt show up on Revit 2023 as well and I had to re-install pyrevit to undo this core settings change to 3.4
⌨ Error/Debug Message
♻️ To Reproduce
Install pyrevit 5 from wip installers and change core setting to IronPython 3.4 and restart Revit 2023
You will see the error
⏲️ Expected behavior
no fail to load
🖥️ Hardware and Software Setup (please complete the following information)
Additional context
No response
The text was updated successfully, but these errors were encountered: