question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AWS CRT binary not present in any of the following locations

See original GitHub issue

Confirm by changing [ ] to [x] below to ensure that it’s a bug:

Describe the bug

Hi, I’m trying to use the AWS IoT SDK on Raspberry Pi Zero W but facing a problem when doing npm install aws-crt.

After installation, when starting the project, I’m getting the following error:

AWS CRT binary not present in any of the following locations:
        /home/pi/app/app/node_modules/aws-crt/dist/bin/native/aws-crt-nodejs
        /home/pi/app/app/node_modules/aws-crt/dist/bin/linux-arm/aws-crt-nodejs

SDK version number

    "aws-crt": "^1.3.4",
    "aws-iot-device-sdk-v2": "^1.3.3",

Platform/OS/Hardware/Device

Raspberry Pi Zero W

To Reproduce (observed behavior) Steps to reproduce the behavior (please share code)

Expected behavior

I would expect the project to install the dependency as usual. Are there some additional steps I should take to get the SDK working on Raspberry Pi Zero W?

Best Regards, Markus

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:28 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
yonatangrosscommented, Jul 24, 2021

I have the same problem with Raspberry Pi 3B+:

/home/pi/aws-iot-device-sdk-js-v2/node_modules/aws-crt/dist/native/binding.js:60
    throw new Error("AWS CRT binary not present in any of the following locations:\n\t" + search_paths.join('\n\t'));
    ^

Error: AWS CRT binary not present in any of the following locations:
        /home/pi/aws-iot-device-sdk-js-v2/node_modules/aws-crt/dist/bin/native/aws-crt-nodejs
        /home/pi/aws-iot-device-sdk-js-v2/node_modules/aws-crt/dist/bin/linux-arm/aws-crt-nodejs
    at Object.<anonymous> (/home/pi/aws-iot-device-sdk-js-v2/node_modules/aws-crt/dist/native/binding.js:60:11)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/home/pi/aws-iot-device-sdk-js-v2/node_modules/aws-crt/dist/native/crt.js:22:35)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)

I can’t run the pub_sub example…

I followed exact example as described in AWS IoT

1reaction
jmklixcommented, Jan 13, 2021

@Rmannn we do not currently support Alpine Linux. There is an open feature request and I encourage you to upvote so we can prioritize based on community feedback.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS CRT binary not present in any of the following locations ...
I received an answer in aws-iot-device-sdk-js-v2 repository from jmklix that solved my problem: Currently, the maintainers of the package ...
Read more >
aws-crt - npm
NodeJS/browser bindings to the aws-c-* libraries. Latest version: 1.15.5, last published: 16 days ago. Start using aws-crt in your project ...
Read more >
AWS Common Runtime (CRT) libraries - AWS SDKs and Tools
The AWS Common Runtime (CRT) libraries are a base library of the SDKs. The CRT is a modular family of independent packages, written...
Read more >
Connection timed out while connecting to AWS DocumentDB ...
[Solved]-Connection timed out while connecting to AWS DocumentDB outside the ... problem - AWS CRT binary not present in any of the following...
Read more >
Quickstart — Boto3 Docs 1.26.37 documentation - Amazon AWS
When the AWS CRT is included, Boto3 uses it to incorporate features not otherwise available in the AWS SDK for Python. You'll find...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found