kidoman / embd

Embedded Programming Framework in Go
http://embd.kidoman.io
MIT License
1.28k stars 156 forks source link

Invalid host #88

Open fallais opened 6 years ago

fallais commented 6 years ago

Hello,

I have this error : host: invalid host \"Raspberry Pi\" What can I do please ? I use your library in a Golang program that is running in a Docker container in a Raspberry 3.

From what I see in the code, this part should be OK because Raspberry Pi does exist in the list of available hosts, right ? But it is not..

       describer, ok := describers[host]
    if !ok {
        return nil, fmt.Errorf("host: invalid host %q", host)
    }

Thanks a lot.

tommaso1 commented 6 years ago

+1

Carrotman42 commented 6 years ago

An example piece of code and instructions to reproduce would be very useful in helping you both.

marian-craciunescu commented 6 years ago

I'm having the same issue after the fork.The imports paths when forking are still github/kidoman/embd and you will have an empty describers map.

vacovsky commented 6 years ago

Same issue here. +1

philippegabert commented 6 years ago

+1

dirkdamerau commented 6 years ago

+1

dougthebug commented 6 years ago

Same here. I downgraded to an earlier kernel to get around this, qmsk/e2 on rpi2. I just posted there my solution, but I’d rather try to wrap my head around how this works so an update doesn’t lead to my stuff breaking. 😭

philippegabert commented 6 years ago

I think you guys should add this to the import list... It solved the issue for me

_ "github.com/kidoman/embd/host/rpi"

(With the underscore)