File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,12 @@ internal static void Initialize(Version version, BorrowedReference pyType)
22
22
thisAssembly . GetType ( nativeTypeOffsetClassName , throwOnError : false )
23
23
?? thisAssembly . GetType ( className , throwOnError : false ) ;
24
24
if ( typeOffsetsClass is null )
25
- throw new NotSupportedException ( $ "Python ABI v{ version } is not supported") ;
25
+ {
26
+ var types = thisAssembly . GetTypes ( ) . Select ( type => type . Name ) . Where ( name => name . StartsWith ( "TypeOffset" ) ) ;
27
+ string message = $ "Searching for { className } , found { string . Join ( "," , types ) } . " +
28
+ "If you are building Python.NET from source, make sure you have run 'python setup.py develop' to fill in configured.props" ;
29
+ throw new NotSupportedException ( $ "Python ABI v{ version } is not supported: { message } ") ;
30
+ }
26
31
var typeOffsets = ( ITypeOffsets ) Activator . CreateInstance ( typeOffsetsClass ) ;
27
32
TypeOffset . Use ( typeOffsets ) ;
28
33
You can’t perform that action at this time.
0 commit comments