Falcor icon indicating copy to clipboard operation
Falcor copied to clipboard

NameError: Name WindowPaths is not defined when using RenderGraphEditor

Open Alegruz opened this issue 3 years ago • 4 comments

Issue

I was following the tutorial.

But every time I try to load an image to the ImageLoader by pressing the Load File button,

image

Following dialog appears.

Steps

  • Run RenderGraphEditor
  • Add an ImageLoader pass to the graph
  • Press Load File button

or

  • Run RenderGraphEditor
  • Add an ImageLoader pass
  • Open in Mogwai without loading any image
image
  • Run RenderGraphEditor
  • Add an ImageLoader pass
  • Save the graph
  • Load the saved graph

image

Alegruz avatar Apr 18 '22 06:04 Alegruz

+1

tomandjake avatar May 21 '22 01:05 tomandjake

Problem in reflection and UI. Script is fine.

tomandjake avatar May 21 '22 03:05 tomandjake

+1 @tomandjake , any easy fix known?

Shardenn avatar Aug 20 '22 23:08 Shardenn

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)

eisen avatar Sep 30 '22 01:09 eisen

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 :)

augustvc avatar Oct 18 '22 09:10 augustvc