diff --git a/src/runtime/native/ABI.cs b/src/runtime/native/ABI.cs
index 76337c797..e95b259c5 100644
--- a/src/runtime/native/ABI.cs
+++ b/src/runtime/native/ABI.cs
@@ -22,7 +22,12 @@ internal static void Initialize(Version version, BorrowedReference pyType)
thisAssembly.GetType(nativeTypeOffsetClassName, throwOnError: false)
?? thisAssembly.GetType(className, throwOnError: false);
if (typeOffsetsClass is null)
- throw new NotSupportedException($"Python ABI v{version} is not supported");
+ {
+ var types = thisAssembly.GetTypes().Select(type => type.Name).Where(name => name.StartsWith("TypeOffset"));
+ string message = $"Searching for {className}, found {string.Join(",", types)}. " +
+ "If you are building Python.NET from source, make sure you have run 'python setup.py configure' to fill in configured.props";
+ throw new NotSupportedException($"Python ABI v{version} is not supported: {message}");
+ }
var typeOffsets = (ITypeOffsets)Activator.CreateInstance(typeOffsetsClass);
TypeOffset.Use(typeOffsets);
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy