raphdg / netifaces

I'm not the author of netifaces, I just added the project on github and I added a spec file to build the RPM package for the basic Amazon Linux AMI 2012.03
35 stars 10 forks source link

Using netifaces with Alexa on Amazon Lamda #4

Closed bill-orange closed 7 years ago

bill-orange commented 7 years ago

Give me a moment to get to my question in context.

I am building a skill for Alexa to control my Onkyo Stereo orally. There is already good python code for this project on Github that can be adapted to an Echo skill. The existing code uses netifaces to 'discover' Onkyo receivers on the target network.

I can not get the netifaces module up and running on Amazon Lambda server. The Lambda site does not appear to use .pyd files. No problem, I should not have built netifaces on a Win10 machine and tried to use it on Amazon's Linux server. I built a .so file on my Raspberry Pi 3. Sadly, the PI is 32 bit and the Lambda server is apparently 64 bit since it rejected the 32 bit .so file with an error message to that effect.

Finally the question.

So, can I build a 64 bit .so file with what I have got , a Raspberry Pi and a Win10 machine? If not can some one build me a 64 bit .so file for linux?

bill-orange commented 7 years ago

Eventually, I decided to use a spare hard drive and load up the current release of Ubuntu 64 bit into my 'test' machine. I built the 64-but .so file using it. The newly minted .so file worked fine on the Amazon Lambda site!

So, it was tricky, but problem resolved.