summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoaopfg <jfontesgoncalves@gmail.com>2022-07-07 23:14:23 +0200
committerjoaopfg <jfontesgoncalves@gmail.com>2022-07-07 23:14:23 +0200
commit1e98d60a1e68f94bdfe4eaedd6229f25b7554a74 (patch)
treea3dbbe5a30a4570265038da00748d06e18367c5c
parentc94e84162a996d11415ce1a7add0d5e700ff9c6f (diff)
downloadnumpy-1e98d60a1e68f94bdfe4eaedd6229f25b7554a74.tar.gz
Adding docs about the C-API incompatibility error and pointing to the docs in the error
-rw-r--r--numpy/core/code_generators/generate_numpy_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/code_generators/generate_numpy_api.py b/numpy/core/code_generators/generate_numpy_api.py
index a0887c923..8411ffb88 100644
--- a/numpy/core/code_generators/generate_numpy_api.py
+++ b/numpy/core/code_generators/generate_numpy_api.py
@@ -80,7 +80,7 @@ _import_array(void)
PyErr_Format(PyExc_RuntimeError, "module compiled against "\
"API version 0x%%x but this version of numpy is 0x%%x ."\
"Check the section C-API incompatibility at the Troubleshooting ImportError section at "\
- "https://numpy.org/devdocs/user/troubleshooting-importerror.html#troubleshooting-importerror "\
+ "https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility "\
"for indications on how to solve this problem .", \
(int) NPY_FEATURE_VERSION, (int) PyArray_GetNDArrayCFeatureVersion());
return -1;