5

I'm trying to setup Facebook Duckling on Windows 10.

When I execute: stack exec duckling-example-exe it produces the following error:

duckling-example-exe.EXE: /etc/zoneinfo/: getDirectoryContents:findFirstFile: does not exist (The system cannot find the path specified.)

I don't understand why I'm getting this error since I followed the recommendation on this GitHub thread which suggests replacing "/usr/share/zoneinfo/" in Duckling/exe/ExampleMain.hs with a link to a folder containing the zoneinfo files. You can see I replaced the path as suggested in the screenshot below:

enter image description here

I also tried adding a double slash as seen below - but it didn't help:

enter image description here

I tried with forward slash instead but this didn't help either:

enter image description here

Moreover, I don't understand where the path: /etc/zoneinfo/ is coming from, if the path is no longer present in ExampleMain.hs? Where is the compiler pulling the path from?

Thanks!

Bradford Griggs
  • 439
  • 2
  • 15

1 Answers1

3

You need to run stack exec duckling-example-exe in the directory where the stack.yaml and project.yaml files of the duckling source code is that you are trying to modify. Otherwise it will use the version of duckling from stackage without your changes.

Noughtmare
  • 9,410
  • 1
  • 12
  • 38
  • It worked! Thank you so much I've spent countless hours on this! – Bradford Griggs Feb 25 '22 at 00:33
  • Can you explain why running `stack exec duckling-example-exe` inside `C:\sr\snapshots\b65abc77\bin` doesn't work - since this is where the executable is actually found? Just trying to understand the reasoning behind this.. Thanks – Bradford Griggs Feb 25 '22 at 00:34