Skip to content

[Bug]: Loading Dynamo Scripts not working - Personal Toolbar Issues #3076

Description

@kslifter

✈ Pre-Flight checks

  • I don't have SentinelOne antivirus installed (see above for the solution)
  • I have searched in the issues (open and closed) but couldn't find a similar issue
  • I have searched in the pyRevit Forum for similar issues
  • I already followed the installation troubleshooting guide thoroughly
  • I am using the latest pyRevit Version

🐞 Describe the bug

I am having issues running the tools on my toolbar.

  1. Dynamo Script - Error message
  2. Dynamo Script - Error message
  3. Website - Error message

Image for number 2

Image

⌨ Error/Debug Message

1. 
IronPython Traceback:
Traceback (most recent call last):
 File "C:\Users\ihartsook\OneDrive - Hutton\Desktop\OFFICE STUFF\REVIT\Pyrevit\Pyrevit Toolbar\Hutton.extension\IansTools.tab\Code.Panel\Occupancy.stack\OccuRunAll.pushbutton\LS_Copy Occupant Load Factors_script.dyn", line 1, in <module>
NameError: name 'false' is not defined

Script Executor Traceback:
IronPython.Runtime.UnboundNameException: name 'false' is not defined
 at IronPython.Runtime.Operations.PythonOps.GetVariable(CodeContext context, String name, Boolean isGlobal, Boolean lightThrow)
 at IronPython.Compiler.LookupGlobalInstruction.Run(InterpretedFrame frame)
 at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
 at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
 at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
 at IronPython.Compiler.PythonScriptCode.Run(Scope scope)
 at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
 at Microsoft.Scripting.Hosting.CompiledCode.Execute(ScriptScope scope)
 at PyRevitLabs.PyRevit.Runtime.IronPythonEngine.Execute(ScriptRuntime& runtime)

2. (Image See above)

3. 
IronPython Traceback:
unexpected token ':' (line 1) 
invalid syntax (line 1) 
unexpected token ':' (line 2) 
unexpected token 'the' (line 2) 
unexpected token 'for' (line 2) 
invalid syntax (line 2) 
unexpected token ':' (line 3) 
unexpected token 'Hartsook' (line 3) 
unexpected token ':' (line 4)

♻️ To Reproduce

Click on the tool

⏲️ Expected behavior

Get Error message

🖥️ Hardware and Software Setup (please complete the following information)

C:\Users\ihartsook>pyrevit env
==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
==> Attachments
Unknown | Product: "2026 First Customer Ship" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2026\pyRevit.addin"
Unknown | Product: "2025 First Customer Ship" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2025\pyRevit.addin"
Unknown | Product: "2024.3.4" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2024\pyRevit.addin"
==> Installed Extensions
==> Default Extension Search Path
C:\Users\ihartsook\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
==> Extension Sources - Default
https://github.com/pyrevitlabs/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
2026 First Customer Ship | Version: 26.0.4.409 | Build: 20250227_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2026\"
2025 First Customer Ship | Version: 25.0.2.419 | Build: 20240307_1300(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2025\"
2024.3.4 | Version: 24.3.40.26 | Build: 20250918_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2024\"
==> Running Revit Instances
Error: Object reference not set to an instance of an object.
Run with "--debug" option to see debug messages

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions