NameError: Name WindowPaths is not defined when using RenderGraphEditor
Issue
I was following the tutorial.
But every time I try to load an image to the ImageLoader by pressing the Load File button,
Following dialog appears.
Steps
- Run
RenderGraphEditor - Add an
ImageLoaderpass to the graph - Press Load File button
or
- Run
RenderGraphEditor - Add an
ImageLoaderpass - Open in Mogwai without loading any image
- Run
RenderGraphEditor - Add an
ImageLoaderpass - Save the graph
- Load the saved graph

+1
Problem in reflection and UI. Script is fine.
+1 @tomandjake , any easy fix known?
In case anyone else (like me) runs into this issue, this is how I fixed it:
In Source/Falcor/Utils/Scripting/Scripting.cpp, change line 60 to:
Scripting::runScript("from falcor import *\nfrom pathlib import WindowsPath");
In Source/RenderPasses/ImageLoader/ImageLoader.cpp, change line 87 to:
if (!mImagePath.empty() && mImagePath.compare(".") != 0)
Because you misspelled WindowsPath I couldn't find this with google. So here goes: NameError: name 'WindowsPath' is not defined Thanks eisen for the fix :)