无法在 Windows 上安装 Facebook Duckling - Stack Exec 失败
我正在尝试在 Windows 10 上设置 Facebook Duckling。
当我执行:stack exec duckling- example-exe
它会产生以下错误:
duckling-example-exe.EXE: /etc/zoneinfo/: getDirectoryContents:findFirstFile: does not exist (The system cannot find the path specified.)
我不明白为什么会收到此错误,因为我遵循了 此 GitHub 线程上的建议 建议替换 "/usr/share /zoneinfo/"
位于 Duckling/exe/ExampleMain.hs
中,包含指向包含 zoneinfo
文件的文件夹的链接。您可以看到我按照下面的屏幕截图中的建议替换了路径:
我还尝试添加双斜杠,如下所示 - 但它没有帮助:
sstatic.net/9dfdu.png" rel="noreferrer">
我尝试使用正斜杠,但这没有帮助要么:
此外,我不明白路径:/etc/zoneinfo/
来自哪里,如果该路径不再存在于 ExampleMain.hs
中?编译器从哪里提取路径?
谢谢!
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:
I also tried adding a double slash as seen below - but it didn't help:
I tried with forward slash instead but this didn't help either:
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
需要在duckling源码的
stack.yaml
和project.yaml
文件所在目录下运行stack exec duckling-example-exe
是你正在尝试修改。否则,它将使用堆栈中的 duckling 版本,而无需进行更改。You need to run
stack exec duckling-example-exe
in the directory where thestack.yaml
andproject.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.