snipsco / snips-issues

Feel free to share your bugs with us.
14 stars 5 forks source link

Injection failure: No such file or directory (os error 2) #210

Closed jmichaluk closed 4 years ago

jmichaluk commented 4 years ago

Version and Environment Android 5.1.1, QuadCore-A64, Snips 1.3.0 (0.64.0) Assistant was trained and deployed on October 24th, 2019.

What's the issue? Unable to inject values in Android demo application with no changes made.

Expected behavior Injection to complete without issue, and the ability to use the new values in commands.

Logs

10-24 11:13:08.277 13405-13405/ai.snips.snipsdemo:snipsProcessingService D/snips-platform: hermes_inprocess: Publishing Injection/InjectionPerform {
        request: InjectionRequestMessage {
            operations: [
                (
                    Add,
                    {
                        "house_room": [
                            EntityValue {
                                value: "bunker",
                                weight: 1,
                            },
                            EntityValue {
                                value: "batcave",
                                weight: 1,
                            },
                        ],
                    },
                ),
            ],
            lexicon: {},
            cross_language: None,
            id: None,
        },
    }
10-24 11:13:08.279 13405-14057/ai.snips.snipsdemo:snipsProcessingService E/snips-platform: snips_injection_hermes: No such file or directory (os error 2)
cpoisson commented 4 years ago

Hi @jmichaluk,

This issue occurs when the files needed for the injection are missing in your assistant.

Can you check if those file exists on your android device

e.g.

lucye:/ $ ls /sdcard/snips_android_assistant-en-0.20.0/injection/g2p-model/ -l
total 1836
-rw-rw---- 1 root sdcard_rw  151510 2019-09-12 17:59 align.fst
-rw-rw---- 1 root sdcard_rw 1702716 2019-09-12 17:59 g2p.fst
-rw-rw---- 1 root sdcard_rw   14901 2019-09-12 17:59 in_syms.txt
-rw-rw---- 1 root sdcard_rw      76 2019-09-12 17:59 metadata.json
-rw-rw---- 1 root sdcard_rw    3011 2019-09-12 17:59 out_syms.txt
jmichaluk commented 4 years ago

A fresh install of the the assistant (built this morning) seems to have resolved the issue. Strange, because I had rebuilt and installed the assistant several times on Friday while trying to resolve the issue myself.

Thanks.