Code Monkey home page Code Monkey logo

Comments (3)

da-miller avatar da-miller commented on August 16, 2024

Hi Dave,
Creating the package on OSX could be the cause of the issue, psutil has a platform-dependent component, since system metrics are sourced differently on OSX (ie. no /proc)

So we can further investigate, can you give me a few more details about your setup:

  • Raspberry Pi OS and Version
  • OSX Version
  • GreenGrass Core Version

As alternative to the Greengrass sample in this repo, you may want to consider a new feature that AWS Iot Greengrass recently launched called Greengrass Connectors. Greengrass provides a pre-built Device Defender Connector which provides the same functionality as the Greengrass Device Defender lambda sample in this repository, but with a much more streamlined deployment experience. With the Connector, you can configure and deploy your Device Defender lambda directly through the Greengrass Management Console without having to create ZIP files and perform some of the manual steps described in the README.

from aws-iot-device-defender-agent-sdk-python.

dave-malone avatar dave-malone commented on August 16, 2024

Thanks for the quick response, @da-miller. I will definitely try the Greengrass Connector as well. In the meantime, here's what I'm working with:

Raspberry Pi Model 3 B+
Raspbian Jesse
Linux raspberrypi 4.14.50-v7+ #1122 SMP Tue Jun 19 12:26:26 BST 2018 armv7l GNU/Linux
Greengrass Core version 1.7
OSX Sierra 10.12.6

from aws-iot-device-defender-agent-sdk-python.

da-miller avatar da-miller commented on August 16, 2024

@dave-malone I have reproduced the error you were getting in your lamba, and the cause is as you expected, psutil installed on a mac is not portable to a raspberry pi (or linux). The most straight-forward way to work arount this would be perform the Create Your Lambda Package steps on the platform you'd like to run the lambda on. psutil makes use of a platform-specific binary extension, which gets compiled when you install the package. I'll update the README documentation to indicate this.

from aws-iot-device-defender-agent-sdk-python.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.