Error map

Runtime.ImportModuleError Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'x'

AWS · layer 6, Platform & cloud

Open the full error page →

Centre: this error. First ring: errors it is linked with (12). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

Runtime.ImportModuleError — Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'x' (AWS)Runtime.Imp…ClassNotFoundException — java.lang.ClassNotFoundException / NoClassDefFoundError (Java)ClassNotFoundExcept…MODULE_NOT_FOUND — Error: Cannot find module 'x' (MODULE_NOT_FOUND) (Node.js)MODULE_NOT_FOUNDModuleNotFoundError — ModuleNotFoundError: No module named 'x' (Python)ModuleNotFoundErrorNo module named distutils — ModuleNotFoundError: No module named 'distutils' (Python)No module named dis…ERESOLVE — npm ERR! code ERESOLVE — unable to resolve dependency tree (npm)ERESOLVEEBADENGINE — npm WARN EBADENGINE Unsupported engine / The engine "node" is incompatible with this module (Node.js)EBADENGINEComposer conflict — Your requirements could not be resolved to an installable set of packages. (PHP)Composer conflictRequestEntityTooLargeException — Lambda: Request must be smaller than 6291456 bytes for the InvokeFunction operation (RequestEntityTooLargeException) (AWS)RequestEntityTooLar…Malformed Lambda proxy response — API Gateway {"message": "Internal server error"} 502 — Malformed Lambda proxy response (AWS)Malformed Lambda pr…Could not resolve — Gradle: Could not resolve all files for configuration / Could not resolve dependency (Android)Could not resolveImportError — ImportError: cannot import name 'x' from 'y' (Python)ImportErrorMaven resolve — [ERROR] Failed to execute goal on project x: Could not resolve dependencies for project (Java)Maven resolveClass not found — PHP Fatal error: Uncaught Error: Class "X" not found (PHP)Class not foundNullPointerException — java.lang.NullPointerException (Java)NullPointerExceptionFileNotFoundException assembly — Could not load file or assembly 'X, Version=…' or one of its dependencies (.NET)FileNotFoundExcepti…ENOENT — Error: ENOENT: no such file or directory (Node.js)ENOENTTypeError: not a function — TypeError: x is not a function (JavaScript)TypeError: not a fu…ERR_REQUIRE_ESM — Error [ERR_REQUIRE_ESM]: require() of ES Module not supported (Node.js)ERR_REQUIRE_ESMNameError — NameError: name 'x' is not defined (Python)NameErrorVCRUNTIME140.dll — VCRUNTIME140.dll was not found / MSVCP140.dll is missing (Windows)VCRUNTIME140.dllgyp ERR! — gyp ERR! build error / node-gyp rebuild failed (npm)gyp ERR!Duplicate class — Duplicate class X found in modules A and B (Android)Duplicate classpip no matching distribution — ERROR: Could not find a version that satisfies the requirement x (from versions: none) (Python)pip no matching dis…numpy alias removed — AttributeError: module 'numpy' has no attribute 'float' (Python)numpy alias removedEACCES — npm ERR! code EACCES — permission denied (npm)EACCESE404 — npm ERR! code E404 — 404 Not Found: package@version is not in this registry (npm)E404EINTEGRITY — npm ERR! code EINTEGRITY — sha512 integrity checksum failed (npm)EINTEGRITYERR_PACKAGE_PATH_NOT_EXPORTED — Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './x' is not defined by "exports" (Node.js)ERR_PACKAGE_PATH_NO…DEP0005 — DeprecationWarning: Buffer() is deprecated due to security and usability issues (DEP0005) (Node.js)DEP0005DEP0040 — DeprecationWarning: The `punycode` module is deprecated (DEP0040) (Node.js)DEP0040CocoaPods compatible versions — CocoaPods could not find compatible versions for pod (iOS)CocoaPods compatibl…Composer memory — Composer: PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (PHP)Composer memoryheld broken packages — Unmet dependencies / E: Unable to correct problems, you have held broken packages (Linux)held broken packages413 — HTTP 413 Content Too Large (Request Entity Too Large) (HTTP)413EMFILE — Too many open files (EMFILE) (Linux)EMFILETask timed out — AWS Lambda: Task timed out after X seconds (AWS)Task timed out500 — HTTP 500 Internal Server Error (HTTP)500502 — HTTP 502 Bad Gateway (HTTP)502Runtime.HandlerNotFound — Runtime.HandlerNotFound: index.handler is undefined or not exported (AWS)Runtime.HandlerNotF…INSTALL_FAILED_UPDATE_INCOMPATIBLE — Android: INSTALL_FAILED_UPDATE_INCOMPATIBLE (Android)INSTALL_FAILED_UPDA…Manifest merger failed — Manifest merger failed: android:exported needs to be explicitly specified (Android)Manifest merger fai…Unsupported class file major version — Gradle: Unsupported class file major version / Android Gradle plugin requires Java 17 to run (Android)Unsupported class f…AttributeError — AttributeError: 'X' object has no attribute 'y' (Python)AttributeError0x8007007E — 0x8007007E: The specified module could not be found (Windows)0x8007007EDependency requires compileSdk — Dependency 'androidx.x:1.y' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs (Android)Dependency requires…NoSuchMethodError — java.lang.NoSuchMethodError (Java)NoSuchMethodErrorrelease version not supported — [ERROR] Fatal error compiling: error: release version 17 not supported (Java)release version not…NU1101 — error NU1101: Unable to find package X. No packages exist with this id in source(s): nuget.org (.NET)NU1101

Directly related (12)

ClassNotFoundExceptionJava

java.lang.ClassNotFoundException / NoClassDefFoundError

The JVM couldn’t find a class on the classpath at runtime.

MODULE_NOT_FOUNDNode.js

Error: Cannot find module 'x' (MODULE_NOT_FOUND)

Node can’t resolve the module path — the package isn’t installed, or a relative path/extension is wrong.

ModuleNotFoundErrorPython

ModuleNotFoundError: No module named 'x'

Python can’t find the module you import — it isn’t installed in the interpreter/virtualenv that’s running, or the import path is…

No module named distutilsPython

ModuleNotFoundError: No module named 'distutils'

Python 3.12 removed distutils; old packages or tools that import it fail.

ERESOLVEnpm

npm ERR! code ERESOLVE — unable to resolve dependency tree

npm 7+ found conflicting peer dependency requirements and refuses to install a broken tree.

EBADENGINENode.js

npm WARN EBADENGINE Unsupported engine / The engine "node" is incompatible with this module

A package requires a different Node.js version than the one you’re running.

Composer conflictPHP

Your requirements could not be resolved to an installable set of packages.

Composer can’t find package versions that satisfy every constraint (PHP version, extensions, other packages).

RequestEntityTooLargeExceptionAWS

Lambda: Request must be smaller than 6291456 bytes for the InvokeFunction operation (RequestEntityTooLargeException)

The event payload (or response) is over Lambda’s 6 MB synchronous limit (256 KB for async invocations).

Malformed Lambda proxy responseAWS

API Gateway {"message": "Internal server error"} 502 — Malformed Lambda proxy response

The Lambda behind an API Gateway proxy integration returned something that isn’t the required {statusCode, headers, body} shape,…

Could not resolveAndroid

Gradle: Could not resolve all files for configuration / Could not resolve dependency

Gradle couldn’t download a dependency — wrong coordinates/version, missing repository, offline mode, or network/proxy issues.

ImportErrorPython

ImportError: cannot import name 'x' from 'y'

The module was found, but the name you’re importing from it doesn’t exist — usually a version change or a circular import.

Maven resolveJava

[ERROR] Failed to execute goal on project x: Could not resolve dependencies for project

Maven couldn’t download or find one or more dependencies.

Two steps away (36)

Class not foundPHP

PHP Fatal error: Uncaught Error: Class "X" not found

PHP couldn’t load the class — autoloading failed, the namespace is wrong, or the dependency isn’t installed.

NullPointerExceptionJava

java.lang.NullPointerException

Code called a method or accessed a field on a reference that is `null`.

FileNotFoundException assembly.NET

Could not load file or assembly 'X, Version=…' or one of its dependencies

The runtime couldn’t find or load a referenced DLL — missing from the output, wrong version, or wrong platform (x86/x64).

ENOENTNode.js

Error: ENOENT: no such file or directory

A file or directory the program tried to open doesn’t exist at that path.

TypeError: not a functionJavaScript

TypeError: x is not a function

You called something as a function, but its value is not a function (it’s undefined, a string, an object…).

ERR_REQUIRE_ESMNode.js

Error [ERR_REQUIRE_ESM]: require() of ES Module not supported

CommonJS code used `require()` on a package that is ES-module-only (node-fetch 3, chalk 5, nanoid 4, got 12…).

NameErrorPython

NameError: name 'x' is not defined

Python doesn’t know the name — it was never assigned/imported in this scope, or it’s misspelled.

VCRUNTIME140.dllWindows

VCRUNTIME140.dll was not found / MSVCP140.dll is missing

The program needs the Microsoft Visual C++ 2015–2022 Redistributable, which isn’t installed (or is damaged).

gyp ERR!npm

gyp ERR! build error / node-gyp rebuild failed

A dependency with native C/C++ code couldn’t compile — missing build tools, Python, or an unsupported Node version.

Duplicate classAndroid

Duplicate class X found in modules A and B

Two dependencies ship the same class — typically old Android Support libraries mixed with AndroidX, or Kotlin stdlib-jdk7/jdk8 ve…

pip no matching distributionPython

ERROR: Could not find a version that satisfies the requirement x (from versions: none)

pip found no installable version of the package for your Python version, OS or index.

numpy alias removedPython

AttributeError: module 'numpy' has no attribute 'float'

Code uses np.float/np.int/np.bool/np.object, which were removed in NumPy 1.24.

EACCESnpm

npm ERR! code EACCES — permission denied

npm can’t write to a directory — usually global installs into a root-owned folder.

E404npm

npm ERR! code E404 — 404 Not Found: package@version is not in this registry

npm asked the registry for a package (or version) that doesn’t exist there — a typo, a private/scoped package without auth, or th…

EINTEGRITYnpm

npm ERR! code EINTEGRITY — sha512 integrity checksum failed

A downloaded package’s hash doesn’t match the integrity value in package-lock.json — a corrupted cache, a changed tarball, or a l…

ERR_PACKAGE_PATH_NOT_EXPORTEDNode.js

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './x' is not defined by "exports"

You imported a deep path inside a package that its package.json "exports" field doesn’t expose.

DEP0005Node.js

DeprecationWarning: Buffer() is deprecated due to security and usability issues (DEP0005)

Code (yours or a dependency) uses the deprecated new Buffer() constructor.

DEP0040Node.js

DeprecationWarning: The `punycode` module is deprecated (DEP0040)

A dependency imports Node’s built-in punycode module, deprecated since Node 21.

CocoaPods compatible versionsiOS

CocoaPods could not find compatible versions for pod

pod install can’t satisfy the version constraints — outdated spec repo, a higher deployment target required, or two pods needing…

Composer memoryPHP

Composer: PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted

Composer ran out of memory while resolving or installing dependencies.

held broken packagesLinux

Unmet dependencies / E: Unable to correct problems, you have held broken packages

apt can’t find a set of package versions that satisfies all dependencies — usually mixed repositories or a package from another r…

413HTTP

HTTP 413 Content Too Large (Request Entity Too Large)

The request body is bigger than the server is willing to accept — usually a file upload over the configured limit.

EMFILELinux

Too many open files (EMFILE)

The process hit its file-descriptor limit — sockets, files and pipes all count.

Task timed outAWS

AWS Lambda: Task timed out after X seconds

The function ran longer than its configured timeout (default 3 seconds) and Lambda stopped it.

500HTTP

HTTP 500 Internal Server Error

The server hit an unexpected condition — usually an unhandled exception or misconfiguration in the application.

502HTTP

HTTP 502 Bad Gateway

A proxy or gateway (Nginx, load balancer, CDN) got an invalid response — or no response — from the upstream server behind it.

Runtime.HandlerNotFoundAWS

Runtime.HandlerNotFound: index.handler is undefined or not exported

Lambda loaded the file but couldn’t find the function named in the handler setting.

INSTALL_FAILED_UPDATE_INCOMPATIBLEAndroid

Android: INSTALL_FAILED_UPDATE_INCOMPATIBLE

An app with the same package name but a different signing key is already installed on the device.

Manifest merger failedAndroid

Manifest merger failed: android:exported needs to be explicitly specified

Targeting Android 12 (API 31)+ requires `android:exported` on every activity, service or receiver that has an intent-filter.

Unsupported class file major versionAndroid

Gradle: Unsupported class file major version / Android Gradle plugin requires Java 17 to run

The JDK running Gradle doesn’t match what the Gradle version or Android Gradle Plugin (AGP) supports.

AttributeErrorPython

AttributeError: 'X' object has no attribute 'y'

You accessed an attribute or method that doesn’t exist on that object type.

0x8007007EWindows

0x8007007E: The specified module could not be found

A DLL that a program, driver or COM component needs isn’t on disk or on the DLL search path.

Dependency requires compileSdkAndroid

Dependency 'androidx.x:1.y' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs

A library needs a higher compileSdk than your module uses (checkAarMetadata task).

NoSuchMethodErrorJava

java.lang.NoSuchMethodError

Code compiled against one version of a library is running with another version where the method doesn’t exist.

release version not supportedJava

[ERROR] Fatal error compiling: error: release version 17 not supported

The JDK running Maven is older than the Java version the project compiles for.

NU1101.NET

error NU1101: Unable to find package X. No packages exist with this id in source(s): nuget.org

NuGet restore can’t find the package in any configured source — typo, private feed not configured/authenticated, or nuget.org mis…