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!

2
  • In which directory are you running stack exec duckling-example-exe?
    – Noughtmare
    Feb 24, 2022 at 9:54
  • @Noughtmare "C:\sr\snapshots\b65abc77\bin" (that's where the file duckling-example-exe resides) Feb 24, 2022 at 18:10

1 Answer 1

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.

2
  • It worked! Thank you so much I've spent countless hours on this! Feb 25, 2022 at 0: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 Feb 25, 2022 at 0:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.