You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to use the "Load Families" pyRevit add-in for Revit 2022. The families are located on onedrive and to use the tool I am using keyboard shortcut "AFF."
The answer to this question does not seem to have been asked or answered in the forum or issues from what I can tell.
⌨ Error/Debug Message
IronPython Traceback:
Traceback (most recent call last):
File "C:\Users\username\AppData\Roaming\pyRevit-Master\extensions\pyRevitTools.extension\pyRevit.tab\Project.panel\ptools.stack\Family.pulldown\Load Families.pushbutton\script.py", line 26, in<module>
File "C:\Users\username\AppData\Roaming\pyRevit-Master\site-packages\pathlib.py", line 613, in _from_parts
File "C:\Users\username\AppData\Roaming\pyRevit-Master\extensions\pyRevitTools.extension\pyRevit.tab\Project.panel\ptools.stack\Family.pulldown\Load Families.pushbutton\lib\file_utils.py", line 52, in search
File "C:\Users\username\AppData\Roaming\pyRevit-Master\site-packages\pathlib.py", line 936, in __new__
File "C:\Users\username\AppData\Roaming\pyRevit-Master\site-packages\pathlib.py", line 606, in _parse_args
File "C:\Users\username\AppData\Roaming\pyRevit-Master\site-packages\pathlib.py", line 75, in parse_parts
File "C:\Users\username\AppData\Roaming\pyRevit-Master\site-packages\pathlib.py", line 57, in _py2_fsencode
UnicodeEncodeError: ('unknown', u'\u2013', 41, 42, 'Unable to translate Unicode character \\u2013 at index 41 to specified code page.')
Script Executor Traceback:
System.Text.EncoderFallbackException: Unable to translate Unicode character \u2013 at index 41 to specified code page.
at System.Text.EncoderExceptionFallbackBuffer.Fallback(Char charUnknown, Int32 index)
at IronPython.Runtime.PythonAsciiEncoding.GetByteCount(Char[] chars, Int32 index, Int32 count)
at System.Text.Encoding.GetBytes(String s)
at IronPython.Runtime.Operations.StringOps.DoEncode(CodeContext context, String s, String errors, String encoding, Encoding e)
at IronPython.Runtime.Operations.StringOps.RawEncode(CodeContext context, String s, Object encodingType, String errors)
at Microsoft.Scripting.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)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 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.Run3[T0,T1,T2,TRet](T0 arg0, T1 arg1, T2 arg2)at IronPython.Runtime.Method.MethodBinding`1.SelfTarget(CallSite site, CodeContext context, Object target, T0 arg0)
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.Run3[T0,T1,T2,TRet](T0 arg0, T1 arg1, T2 arg2)
at IronPython.Runtime.Method.MethodBinding`1.SelfTarget(CallSite site, CodeContext context, Object target, T0 arg0)at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)at Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame)at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)at Microsoft.Scripting.Interpreter.LightLambda.Run6[T0,T1,T2,T3,T4,T5,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)at Microsoft.Scripting.Interpreter.DynamicInstruction`6.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
at Microsoft.Scripting.Interpreter.DynamicInstruction`5.Run(InterpretedFrame frame)at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)at Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
at IronPython.Runtime.Types.PythonType.NewSite`1.Call(CodeContext context, Object typeOrInstance, T0 arg0)at IronPython.Runtime.Types.PythonType.FastTypeSite`1.CallTarget(CallSite site, CodeContext context, Object type, T0 arg0)
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.Run3[T0,T1,T2,TRet](T0 arg0, T1 arg1, T2 arg2)
at IronPython.Runtime.Method.MethodBinding`1.SelfTarget(CallSite site, CodeContext context, Object target, T0 arg0)at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)at Microsoft.Scripting.Interpreter.DynamicInstruction`4.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 PyRevitLabs.PyRevit.Runtime.IronPythonEngine.Execute(ScriptRuntime& runtime)
Hi @TimingBasket , python 2 has troubles with utf8 chatacters in the paths.
I your case, the code \u2013 refers to the EM dash char.
If you can, use normal dashes in your file names
Thank you @sanzoghenzo , it seems there is only on EM dash char. in the file path but it is on my workplaces sharepoint. If I change the name replacing the problem char. will that affect anyone else or just be reflected on my workstation?
Thank you @sanzoghenzo , it seems there is only on EM dash char. in the file path but it is on my workplaces sharepoint. If I change the name replacing the problem char. will that affect anyone else or just be reflected on my workstation?
There is a good chance it will affect everyone @TimingBasket
✈ Pre-Flight checks
🐞 Describe the bug
I am attempting to use the "Load Families" pyRevit add-in for Revit 2022. The families are located on onedrive and to use the tool I am using keyboard shortcut "AFF."
The answer to this question does not seem to have been asked or answered in the forum or issues from what I can tell.
⌨ Error/Debug Message
♻️ To Reproduce
1.) Revit ribbon → 2.) pyRevit → 3.) Project → 4.) Family → 5.) Load Families → 6.) Select folder containing families (.rfa) → 7.) Error window popup
Steps 2, 3, & 4:
Step 6:
Step 7:
⏲️ Expected behavior
1.) Revit ribbon → 2.) pyRevit → 3.) Project → 4.) Family → 5.) Load Families → 6.) Select folder containing families (.rfa) → 7.) Family Selection Window
Steps 2, 3, & 4:
Step 6:
Step 7:
🖥️ Hardware and Software Setup (please complete the following information)
Additional context
No response
The text was updated successfully, but these errors were encountered: