facebook / facebook/duckling

Running Duckling on Windows

Abierto
#349 11 comentarios 11 reacciones 0 asignados Ver en GitHub
documentation
Lenguaje dominante
Haskell
Estrellas
4.3k
Forks
740
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hello guys,

I'm having a hard time getting Duckling to run properly on Windows and I hope you can point me in the right direction.

Starting from the master branch, I've done some minor modifications, based on answers I encountered in other issues about windows 10 in this repo:

1. Replace `regex-pcre` with `regex-pcre-builtin` (setting up pcre on windows isn't an easy task)
2. Changed the path of the timezone folder in `ExampleMain.hs` from `/usr/share/zoneinfo` to `zoneinfo/` (and copied the folder with olson TZ to my windows machine)
3. Changed the import of `System.FilePath` in `TimeZone.hs` for `System.FilePath.Posix` (otherwise, it returns timezones like `America\\Los_Angeles`)

These changes were tried on a friend's OSX laptop and the app still ran just fine, so I guess it's something windows-related.

Everything compiles perfectly. Using curl to call the service returns effectively `quack!`. However, any call to /parse will yield an `Empty reply from server`.

While debugging manually, the issue arose when the line `parsedResult = parse...` is called in `ExampleMain.hs`.

Following the instructions in the readme, I ran the example query with `Duckling.Debug`

```
*Duckling.Debug> debug (makeLocale EN $ Just US) "in two minutes" [This Time]
*** Exception: user error (Text.Regex.PCRE.String died: (2,"invalid UTF-8 string"))
```

I've tried setting LANG=C.UTF-8 when building, and when running it, to no avail. Is there anything else I could check out ?

Thanks!

(On a side note, would it be feasible to save the output of `loadTimeZoneSeries` in a single file, which could be optional for users without Olson files? Copying 1700 files of 1k is a bit overkill, since the output of that call is simply a hash map of 13kb)

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.