leon icon indicating copy to clipboard operation
leon copied to clipboard

Add a tutorial to install on a Raspberry Pi

Open borisrorsvort opened this issue 6 years ago β€’ 23 comments

Documentation Is:

  • [ ] Missing
  • [x] Needed
  • [ ] Confusing
  • [ ] Not Sure?

Explanation

I guess the ideal setup would be to install it on a raspberry pi or similar board, make it listen in the current room, and plug it to your favorite speakers.

Proposal

It might be nice to add some tutorial about small boards install.

borisrorsvort avatar Feb 22 '19 10:02 borisrorsvort

Hello @borisrorsvort,

Thanks for suggesting, and yes, I plan to create such contents later on.

However, if you want to get your hands dirty by doing it, then you are more than welcome πŸ˜‰

louistiti avatar Feb 22 '19 11:02 louistiti

@louistiti, can I hijack this one?? πŸ˜…πŸ˜…

asabya avatar Mar 01 '19 03:03 asabya

Hello @Sab94,

Yes with pleasure! Let us know once you have something.

louistiti avatar Mar 01 '19 05:03 louistiti

Hello,

I tried to do it on my own but unfortunatly I got this error : image If you get the way to fix it by loading another library it could interrested me ;-) I'm on a Pi 2 B.

Thibaud-A avatar Mar 02 '19 21:03 Thibaud-A

I've started on some notes here... https://gist.github.com/mbwhite/2de7326d4680591101a27a53315a11b8

At present though I want to learn more about how Leon is working on vanilla ubuntu before heading back to the PI.

mbwhite avatar Apr 26 '19 20:04 mbwhite

I have an older Raspberry Pi to test this on, and I could test it once I get back from traveling at the moment. I had a newer Pi 3, like @mbwhite's but I broke an I/O component while testing the GPIO pins.

nogarcia avatar May 04 '19 15:05 nogarcia

Nice! Looking forward to see that then. I'll also need to jump into that topic later on.

Enjoy your trip! πŸ˜„

louistiti avatar May 04 '19 15:05 louistiti

I'm planning to write a blog about installing Leon on Ubuntu 18.04 if that helps anyone

kominoshja avatar May 04 '19 15:05 kominoshja

@kominoshja, as I always run into one error and another, It'd be much appreciated. Thanks!

nogarcia avatar May 04 '19 16:05 nogarcia

@kominoshja awesome, let us know once you are done with it, I'll add the blog post link to the How-To section of the docs.

@Shrubhog oh really, do not hesitate to open issues then πŸ˜‰

louistiti avatar May 04 '19 16:05 louistiti

I have started building and installing Leon's dependencies. My notes can be found here. I have also diagnosed the issue with the Pi 3 and might fix it and test Leon there as well.

nogarcia avatar May 05 '19 20:05 nogarcia

I will clone the latest branch first.

nogarcia avatar May 05 '19 21:05 nogarcia

It seems my Pi does not have enough space to support it right now. I'll try deleting some other files later.

nogarcia avatar May 05 '19 22:05 nogarcia

Hello @Shrubhog,

Alright, thanks for keeping us updated and for handling it!

louistiti avatar May 05 '19 23:05 louistiti

@borisrorsvort @louistiti is this issue still open?

shashwataggarwal avatar Nov 10 '19 19:11 shashwataggarwal

Yes it is. I'm taking my time on my current project but will come back to work on Leon later on for sure πŸ˜‰

louistiti avatar Nov 10 '19 23:11 louistiti

I see that it is not assigned to anyone . can I work on this.

Tejaswgupta avatar Feb 16 '20 09:02 Tejaswgupta

Sure you can work on it. I'll need to also take a look at it once I'll be back.

louistiti avatar Feb 16 '20 09:02 louistiti

Hi did anyone managed to get it working on RPI? I did sudo install all the dependencies without issues. I am trying to install it on the Jetson NX, I have have some mysterious errors during the SUDO NPM INSTALL:

... CXX(target) Release/obj.target/gpr/deps/grpc/src/core/lib/gpr/wrap_memcpy.o CXX(target) Release/obj.target/gpr/deps/grpc/src/core/lib/gprpp/fork.o CXX(target) Release/obj.target/gpr/deps/grpc/src/core/lib/gprpp/thd_posix.o CXX(target) Release/obj.target/gpr/deps/grpc/src/core/lib/gprpp/thd_windows.o CXX(target) Release/obj.target/gpr/deps/grpc/src/core/lib/profiling/basic_timers.o CXX(target) Release/obj.target/gpr/deps/grpc/src/core/lib/profiling/stap_timers.o AR(target) Release/obj.target/libgpr.a COPY Release/libgpr.a CXX(target) Release/obj.target/grpc_node/ext/byte_buffer.o In file included from ../../nan/nan_new.h:189:0, from ../../nan/nan.h:223, from ../ext/byte_buffer.cc:21: ../../nan/nan_implementation_12_inl.h: In static member function β€˜static Nan::imp::FactoryBasev8::StringObject::return_t Nan::imp::Factoryv8::StringObject::New(v8::Localv8::String)’: ../../nan/nan_implementation_12_inl.h:356:37: error: no matching function for call to β€˜v8::StringObject::New(v8::Localv8::String&)’ return v8::StringObject::New(value).Asv8::StringObject(); ^ In file included from /home/tetsfr/.cache/node-gyp/12.17.0/include/node/node.h:67:0, from ../../nan/nan.h:53, from ../ext/byte_buffer.cc:21: /home/tetsfr/.cache/node-gyp/12.17.0/include/node/v8.h:5531:23: note: candidate: static v8::Localv8::Value v8::StringObject::New(v8::Isolate*, v8::Localv8::String) static Local<Value> New(Isolate* isolate, Local<String> value); ^~~ /home/tetsfr/.cache/node-gyp/12.17.0/include/node/v8.h:5531:23: note: candidate expects 2 arguments, 1 provided In file included from ../../nan/nan_new.h:189:0, from ../../nan/nan.h:223, from ../ext/byte_buffer.cc:21: ../../nan/nan_implementation_12_inl.h:356:58: error: expected primary-expression before β€˜>’ token return v8::StringObject::New(value).Asv8::StringObject(); ^ ../../nan/nan_implementation_12_inl.h:356:60: error: expected primary-expression before β€˜)’ token return v8::StringObject::New(value).Asv8::StringObject(); ^ grpc_node.target.mk:186: recipe for target 'Release/obj.target/grpc_node/ext/byte_buffer.o' failed make: *** [Release/obj.target/grpc_node/ext/byte_buffer.o] Error 1 make: Leaving directory '/media/tetsfr/SSD/leon/node_modules/grpc/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 4.9.140-tegra ...

Not sure where this one comes from? the compilation did start ok and ran fine for like 5 mins and then crashed. seems to be related to some string function compile error on Arm8 (Jetson NX cpu), not 100% sure though.

thanks for your help on this.

Tetsujinfr avatar Oct 06 '20 14:10 Tetsujinfr

Hi @Tetsujinfr, I don't know if you're still interest, but I manage to install Leon on a raspberry pi 3B+ by following standard instruction. I try to do it for 3 mouths and with nodejs version 14, it work !! Apparently some modification have been done a few days ago may be it thanks that ;)

Guillaume-Syc avatar Mar 22 '21 01:03 Guillaume-Syc

Hi @Tetsujinfr, I don't know if you're still interest, but I manage to install Leon on a raspberry pi 3B+ by following standard instruction. I try to do it for 3 mouths and with nodejs version 14, it work !! Apparently some modification have been done a few days ago may be it thanks that ;)

That is a good news! Thanks for letting us know.

louistiti avatar Mar 22 '21 01:03 louistiti

Hi, this month we have been working on compiling all Python stuff related upfront. Meaning, Leon does not need Python at runtime anymore.

Please try the three following commands and let's see how it goes and paste the report URL:

# Install the beta version of the Leon CLI
npm install --global @leon-ai/cli@beta

# Create a Leon instance based on the develop GitHub branch
leon create birth --develop

# Create a report
leon check

louistiti avatar Oct 23 '22 16:10 louistiti