Skip to content
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]: [Pyrevit5]: netfx error on versions earlier than 2025 #2383

Closed
5 tasks done
tay0thman opened this issue Aug 30, 2024 · 1 comment
Closed
5 tasks done

[Bug]: [Pyrevit5]: netfx error on versions earlier than 2025 #2383

tay0thman opened this issue Aug 30, 2024 · 1 comment
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class]

Comments

@tay0thman
Copy link

✈ 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

running 5.0.0.24242, introduce the error below on netfx versions (2023,2024) still works fine on 2025

image

installing an older build pyRevit_5.0.0.24235 seems to work fine, so likely the bug was introduced in the last couple of days and it is likely related to netfx.

⌨ Error/Debug Message

[Window Title]
PyRevitLoader - Error Loading pyRevit

[Main Instruction]
IronPython Traceback:
Traceback (most recent call last):
  File "C:\Program Files\pyRevit-Master\bin\netfx\engines\pyRevitLoader.py", line 33, in <module>
  File "C:\Program Files\pyRevit-Master\pyrevitlib\pyrevit\loader\sessionmgr.py", line 267, in load_session
  File "C:\Program Files\pyRevit-Master\pyrevitlib\pyrevit\loader\sessioninfo.py", line 70, in setup_runtime_vars
  File "C:\Program Files\pyRevit-Master\pyrevitlib\pyrevit\loader\sessioninfo.py", line 158, in set_loaded_pyrevit_referenced_modules
TypeError: sequence item 10: expected string, NoneType found

Script Executor Traceback:
IronPython.Runtime.Exceptions.TypeErrorException: sequence item 10: expected string, NoneType found
   at IronPython.Runtime.Operations.StringOps.AppendJoin(Object value, Int32 index, StringBuilder sb)
   at IronPython.Runtime.Operations.StringOps.join(String self, List sequence)
   at CallSite.Target(Closure , CallSite , CodeContext , Object , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.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.Ast.CallExpression.Invoke1Instruction.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
   at IronPython.Compiler.Ast.CallExpression.Invoke0Instruction.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
   at Microsoft.Scripting.Interpreter.DynamicInstruction`3.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 Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope)
   at PyRevitLoader.ScriptExecutor.ExecuteScript(String sourcePath, IEnumerable`1 sysPaths, String logFilePath, IDictionary`2 variables)

[Close]

♻️ To Reproduce

  1. install the latest build of pyrevit pyRevit_5.0.0.24242
  2. Start Revit 2023 or 2024
  3. Pyrevit Error will show up

⏲️ Expected behavior

should run without errors

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

Windows 11 + Revit 2023, 2024, 2025

Additional context

No response

@tay0thman tay0thman added the Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] label Aug 30, 2024
@sanzoghenzo
Copy link
Contributor

Duplicate of #2375

@sanzoghenzo sanzoghenzo marked this as a duplicate of #2375 Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class]
Projects
None yet
Development

No branches or pull requests

2 participants