Having trouble using the Pillow module within pyrevit. If I make a regular script (not in pyrevit), I can import and run it fine. But if I try to copy that package to my extention/lib folder and run it through revit it errors:
IronPython Traceback:
File "....\4.8.7\PyDev\Mega Dev.extension\lib\PIL\Image.py", line 65
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
^
SyntaxError: invalid syntax
Script Executor Traceback:
Microsoft.Scripting.SyntaxErrorException: invalid syntax
at IronPython.Runtime.ThrowingErrorSink.Add(SourceUnit sourceUnit, String message, SourceSpan span, Int32 errorCode, Severity severity)
at IronPython.Compiler.Parser.ReportSyntaxError(Int32 start, Int32 end, String message, Int32 errorCode)
at IronPython.Compiler.Parser.ReportSyntaxError(String message)
at IronPython.Compiler.Parser.AddTrailers(Expression ret, Boolean allowGeneratorExpression)
Has anyone had success importing Pillow?