You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/recover-module-not-found.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,15 +43,15 @@ Browse to `.python_packages/lib/python3.6/site-packages/<package-name>` or `.pyt
43
43
44
44
Using third-party or outdated tools during deployment may cause this issue.
45
45
46
-
See [Enable Remote Build](#enable-remote-build) or [Build Native Dependencies](#build-native-dependencies) for mitigation.
46
+
See [Enable remote build](#enable-remote-build) or [Build native dependencies](#build-native-dependencies) for mitigation.
47
47
48
48
### The package isn't resolved with proper Linux wheel
49
49
50
50
Go to `.python_packages/lib/python3.6/site-packages/<package-name>-<version>-dist-info` or `.python_packages/lib/site-packages/<package-name>-<version>-dist-info`. Use your favorite text editor to open the **wheel** file and check the **Tag:** section. If the value of the tag doesn't contain **linux**, this could be the issue.
51
51
52
52
Python functions run only on Linux in Azure: Functions runtime v2.x runs on Debian Stretch and the v3.x runtime on Debian Buster. The artifact is expected to contain the correct Linux binaries. Using `--build local` flag in Core Tools, third-party, or outdated tools may cause older binaries to be used.
53
53
54
-
See [Enable Remote Build](#enable-remote-build) or [Build Native Dependencies](#build-native-dependencies) for mitigation.
54
+
See [Enable remote build](#enable-remote-build) or [Build native dependencies](#build-native-dependencies) for mitigation.
55
55
56
56
### The package is incompatible with the Python interpreter version
57
57
@@ -63,7 +63,7 @@ You can check the Python version of your function app from the [Azure portal](ht
63
63
64
64
After the explorer loads, search for **LinuxFxVersion**, which shows the Python version.
65
65
66
-
See [Update Your Package To The Latest Version](#update-your-package-to-the-latest-version) or [Replace the package with equivalents](#replace-the-package-with-equivalents) for mitigation.
66
+
See [Update your package to the latest version](#update-your-package-to-the-latest-version) or [Replace the package with equivalents](#replace-the-package-with-equivalents) for mitigation.
67
67
68
68
### The package conflicts with other packages
69
69
@@ -75,15 +75,15 @@ you must uninstall azure-storage first.</pre>
75
75
76
76
You can find the documentation for your package version in `https://pypi.org/project/<package-name>/<package-version>`.
77
77
78
-
See [Update Your Package To The Latest Version](#update-your-package-to-the-latest-version) or [Replace the package with equivalents](#replace-the-package-with-equivalents) for mitigation.
78
+
See [Update your package to the latest version](#update-your-package-to-the-latest-version) or [Replace the package with equivalents](#replace-the-package-with-equivalents) for mitigation.
79
79
80
80
### The package only supports Windows or macOS platforms
81
81
82
82
Open the `requirements.txt` with a text editor and check the package in `https://pypi.org/project/<package-name>`. Some packages only run on Windows or macOS platforms. For example, pywin32 only runs on Windows.
83
83
84
84
The `Module Not Found` error may not occur when you're using Windows or macOS for local development. However, the package fails to import on Azure Functions, which uses Linux at runtime. This is likely to be caused by using `pip freeze` to export virtual environment into requirements.txt from your Windows or macOS machine during project initialization.
85
85
86
-
See [Replace the package with equivalents](#replace-the-package-with-equivalents) or [Handcraft Requirements.txt](#handcraft-requirementstxt) for mitigation.
86
+
See [Replace the package with equivalents](#replace-the-package-with-equivalents) or [Handcraft requirements.txt](#handcraft-requirementstxt) for mitigation.
0 commit comments