Build Information
Failed to build Swift2Python, reference main (0e0b84), with Swift 6.1 for macOS (SPM) on 16 Jul 2026 18:27:10 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/zbenwhite/Swift2Python.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/zbenwhite/Swift2Python
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 0e0b844 small adjustments to codex-written documentation
Cloned https://github.com/zbenwhite/Swift2Python.git
Revision (git rev-parse @):
0e0b84484c2499243c96eff62e9cf5ce0769f560
SUCCESS checkout https://github.com/zbenwhite/Swift2Python.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/zbenwhite/Swift2Python.git
https://github.com/zbenwhite/Swift2Python.git
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.4",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-collections",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-collections.git"
}
],
"manifest_display_name" : "Swift2Python",
"name" : "Swift2Python",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "15.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "Swift2Python",
"targets" : [
"Swift2Python"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"6"
],
"targets" : [
{
"c99name" : "Swift2PythonTests",
"module_type" : "SwiftTarget",
"name" : "Swift2PythonTests",
"path" : "Tests/Swift2PythonTests",
"sources" : [
"ArithmeticTest+Add.swift",
"ArithmeticTest+Divide.swift",
"ArithmeticTest+Modulus.swift",
"ArithmeticTest+Multiply.swift",
"ArithmeticTest+Power.swift",
"ArithmeticTest+Subtract.swift",
"ArithmeticTest+Unary.swift",
"ArithmeticTest.swift",
"AttributesTest.swift",
"BitwiseOpsTest+And.swift",
"BitwiseOpsTest+Not.swift",
"BitwiseOpsTest+Or.swift",
"BitwiseOpsTest+ShiftLeft.swift",
"BitwiseOpsTest+ShiftRight.swift",
"BitwiseOpsTest+Xor.swift",
"BitwiseOpsTest.swift",
"BytesTests.swift",
"CallableTest.swift",
"CompareOpsTest.swift",
"ConversionsTest.swift",
"DictionaryTest.swift",
"ExceptionHandlingTests.swift",
"InitializationTests.swift",
"InterpreterTests.swift",
"ItemAccessTests.swift",
"IterationTest.swift",
"ListTest.swift",
"LogicalTest.swift",
"RefCountTests.swift",
"SetTest.swift",
"TupleTest.swift"
],
"target_dependencies" : [
"Swift2Python"
],
"type" : "test"
},
{
"c99name" : "Swift2Python",
"module_type" : "SwiftTarget",
"name" : "Swift2Python",
"path" : "Sources/Swift2Python",
"product_dependencies" : [
"Logging",
"Collections"
],
"product_memberships" : [
"Swift2Python"
],
"sources" : [
"Container.swift",
"Conversions.swift",
"Operators.swift",
"PythonError.swift",
"PythonInterpreter+Bytes.swift",
"PythonInterpreter+Callable.swift",
"PythonInterpreter+Compare.swift",
"PythonInterpreter+Convert.swift",
"PythonInterpreter+Dictionary.swift",
"PythonInterpreter+Error.swift",
"PythonInterpreter+Iteration.swift",
"PythonInterpreter+List.swift",
"PythonInterpreter+Logical.swift",
"PythonInterpreter+Operator.swift",
"PythonInterpreter+PythonAPI.swift",
"PythonInterpreter+RefCount.swift",
"PythonInterpreter+Set.swift",
"PythonInterpreter+Slice.swift",
"PythonInterpreter+Tuple.swift",
"PythonInterpreter.swift",
"PythonObject.swift",
"PythonObjectIdentity.swift",
"PythonRuntime.swift",
"SafePythonObject+Arithmetic.swift",
"SafePythonObject+Bitwise.swift",
"SafePythonObject+Compare.swift",
"SafePythonObject+Container.swift",
"SafePythonObject+Convert.swift",
"SafePythonObject.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/12] Write sources
[11/12] Write swift-version-2F0A5646E1D333AE.txt
[13/42] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[14/42] Compiling InternalCollectionsUtilities _SortedCollection.swift
[15/42] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[16/42] Compiling InternalCollectionsUtilities UInt+reversed.swift
[17/43] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[18/43] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[19/43] Emitting module InternalCollectionsUtilities
[20/43] Compiling InternalCollectionsUtilities Debugging.swift
[21/43] Compiling InternalCollectionsUtilities Descriptions.swift
[22/43] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[23/43] Compiling InternalCollectionsUtilities Integer rank.swift
[24/43] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[25/43] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[26/43] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[27/43] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[28/43] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[29/43] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[30/43] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[31/43] Compiling InternalCollectionsUtilities Span+Extras.swift
[32/43] Compiling InternalCollectionsUtilities String+Padding.swift
[33/350] Compiling OrderedCollections OrderedSet+Descriptions.swift
[34/350] Compiling _RopeModule BigString+RangeReplaceableCollection.swift
[35/350] Compiling _RopeModule BigString+Sequence.swift
[36/350] Compiling _RopeModule BigString+TextOutputStream.swift
[37/350] Compiling _RopeModule BigString+Append.swift
[38/350] Compiling _RopeModule BigString+Initializers.swift
[39/350] Compiling _RopeModule BigString+Insert.swift
[40/350] Compiling _RopeModule BigString+Managing Breaks.swift
[41/353] Compiling HashTreeCollections _HashNode+Structural mapValues.swift
[42/353] Compiling HashTreeCollections _HashNode+Structural merge.swift
[43/353] Compiling HashTreeCollections _HashNode+Structural subtracting.swift
[44/353] Compiling HashTreeCollections _HashNode+Structural symmetricDifference.swift
[45/353] Compiling HashTreeCollections _HashLevel.swift
[46/353] Compiling HashTreeCollections _HashNode+Builder.swift
[47/353] Compiling HashTreeCollections _HashNode+Debugging.swift
[48/353] Compiling HashTreeCollections _HashNode+Initializers.swift
[49/353] Compiling HashTreeCollections _AncestorHashSlots.swift
[50/353] Compiling HashTreeCollections _Bitmap.swift
[51/353] Compiling HashTreeCollections _Bucket.swift
[52/353] Compiling HashTreeCollections _Hash.swift
[53/353] Compiling HashTreeCollections _HashNode+Invariants.swift
[54/353] Compiling HashTreeCollections _HashNode+Lookups.swift
[55/353] Compiling HashTreeCollections _HashNode+Primitive Insertions.swift
[56/353] Compiling HashTreeCollections _HashNode+Primitive Removals.swift
[57/353] Compiling HashTreeCollections _HashNode+Primitive Replacement.swift
[58/353] Compiling HashTreeCollections _HashNode+Storage.swift
[59/353] Compiling HashTreeCollections _HashNode+Structural compactMapValues.swift
[60/353] Compiling HashTreeCollections _HashNode+Structural filter.swift
[61/353] Compiling HashTreeCollections _HashNode+Structural intersection.swift
[62/353] Compiling HashTreeCollections _HashNode+Structural isDisjoint.swift
[63/353] Compiling HashTreeCollections _HashNode+Structural isEqualSet.swift
[64/353] Compiling HashTreeCollections _HashNode+Structural isSubset.swift
[81/360] Compiling OrderedCollections OrderedDictionary+Values.swift
[82/360] Compiling OrderedCollections OrderedDictionary.swift
[83/360] Compiling OrderedCollections OrderedSet+Codable.swift
[84/360] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[93/360] Compiling ContainersPreview Shared.swift
[94/360] Compiling ContainersPreview SpanIterator.swift
[95/360] Compiling ContainersPreview UniqueBox.swift
[96/360] Compiling _RopeModule Range+BigString.swift
[109/360] Emitting module ContainersPreview
[113/360] Compiling HeapModule Heap+Descriptions.swift
[114/360] Compiling HeapModule Heap+Invariants.swift
[115/360] Compiling HeapModule Heap.swift
[116/360] Compiling HeapModule _HeapNode.swift
[117/360] Compiling HeapModule Heap+UnsafeHandle.swift
[118/360] Emitting module HeapModule
[119/360] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[120/402] Compiling DequeModule Deque+Collection.swift
[121/402] Compiling DequeModule Deque+CustomReflectable.swift
[122/402] Compiling DequeModule Deque+Descriptions.swift
[123/402] Compiling DequeModule Deque+Equatable.swift
[124/402] Compiling DequeModule RigidDeque+Hashable.swift
[125/402] Compiling DequeModule RigidDeque+Initializers.swift
[128/408] Compiling DequeModule RigidDeque+Insertions.swift
[129/408] Compiling DequeModule RigidDeque+Prepend.swift
[130/408] Compiling DequeModule RigidDeque+Removals.swift
[131/412] Compiling DequeModule UniqueDeque+Equatable.swift
[132/412] Compiling DequeModule UniqueDeque+Experimental.swift
[133/412] Compiling DequeModule UniqueDeque+Hashable.swift
[134/412] Compiling DequeModule UniqueDeque+Initializers.swift
[137/412] Compiling DequeModule UniqueDeque.swift
[138/412] Compiling DequeModule _DequeSlot.swift
[139/412] Compiling DequeModule _UnsafeDequeHandle.swift
[140/412] Compiling DequeModule _UnsafeDequeSegments.swift
[141/412] Compiling _RopeModule BigSubstring+UnicodeScalarView.swift
[142/412] Compiling HashTreeCollections TreeDictionary+Filter.swift
[143/412] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[144/412] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[145/412] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[146/412] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[147/418] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[148/418] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[149/418] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[150/418] Compiling BitCollections BitSet._UnsafeHandle.swift
[151/418] Compiling BitCollections BitSet.swift
[152/418] Compiling BitCollections Range+Utilities.swift
[153/418] Compiling DequeModule UniqueDeque+Replacements.swift
[159/418] Compiling OrderedCollections OrderedSet.swift
[160/418] Compiling OrderedCollections _UnsafeBitset.swift
[161/418] Compiling _RopeModule Rope+Sequence.swift
[162/418] Compiling _RopeModule Rope+Append.swift
[163/418] Compiling _RopeModule Rope+Extract.swift
[164/418] Compiling _RopeModule Rope+Find.swift
[165/418] Compiling _RopeModule Rope+ForEachWhile.swift
[166/418] Compiling _RopeModule Rope+Insert.swift
[167/418] Compiling _RopeModule Rope+Join.swift
[168/418] Compiling _RopeModule Rope+MutatingForEach.swift
[169/418] Compiling _RopeModule Rope+Remove.swift
[170/418] Compiling _RopeModule Rope+RemoveSubrange.swift
[171/418] Compiling _RopeModule Rope+Split.swift
[172/418] Compiling _RopeModule Optional Utilities.swift
[173/418] Compiling _RopeModule String Utilities.swift
[174/418] Compiling _RopeModule String.Index+ABI.swift
[175/426] Compiling DequeModule UniqueDeque+Consumption.swift
[176/426] Compiling DequeModule UniqueDeque+Container.swift
[177/426] Compiling DequeModule UniqueDeque+Deprecated.swift
[178/426] Compiling DequeModule UniqueDeque+Descriptions.swift
[179/426] Compiling DequeModule Deque._UnsafeHandle.swift
[180/426] Compiling DequeModule Deque.swift
[181/426] Compiling DequeModule _DequeBuffer.swift
[182/426] Compiling DequeModule _DequeBufferHeader.swift
[183/426] Compiling DequeModule RigidDeque+Append.swift
[184/426] Compiling DequeModule UniqueDeque+Insertions.swift
[185/426] Compiling DequeModule UniqueDeque+Prepend.swift
[186/426] Compiling DequeModule UniqueDeque+Removals.swift
[199/426] Compiling DequeModule RigidDeque+Testing.swift
[200/426] Compiling DequeModule RigidDeque.swift
[201/426] Compiling DequeModule UniqueDeque+Append.swift
[206/426] Compiling DequeModule RigidDeque+Consumption.swift
[207/426] Compiling DequeModule RigidDeque+Container.swift
[208/426] Compiling DequeModule RigidDeque+Descriptions.swift
[209/426] Compiling DequeModule RigidDeque+Equatable.swift
[210/426] Compiling DequeModule RigidDeque+Experimental.swift
[211/426] Compiling DequeModule RigidDeque+Replacements.swift
[224/426] Compiling OrderedCollections OrderedSet+SubSequence.swift
[225/426] Compiling OrderedCollections OrderedSet+Testing.swift
[226/426] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[227/426] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[235/426] Emitting module BitCollections
[236/426] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[237/426] Compiling DequeModule Deque+Extras.swift
[238/426] Compiling DequeModule Deque+Hashable.swift
[239/426] Compiling DequeModule Deque+Testing.swift
[240/426] Compiling DequeModule Deque._Storage.swift
[241/426] Compiling DequeModule Deque+Codable.swift
[242/426] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[243/426] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[244/426] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[245/426] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[246/426] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[247/426] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[248/426] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[249/426] Compiling HashTreeCollections TreeSet.swift
[250/426] Compiling Logging Logger+With.swift
unable to find node: pound
unable to find node: pound
[251/426] Compiling Logging LoggingSystem.swift
[252/426] Compiling Logging Logger+Attributes.swift
[253/426] Compiling Logging Logger.swift
[254/426] Compiling Logging LogEvent.swift
[255/426] Compiling Logging LogHandler.swift
[396/427] Compiling Logging MetadataProvider.swift
[397/427] Compiling Logging Locks.swift
[398/427] Compiling Logging SwiftLogNoOpLogHandler.swift
[401/427] Emitting module Logging
unable to find node: pound
unable to find node: pound
[402/427] Emitting module _RopeModule
[425/427] Emitting module DequeModule
[426/427] Emitting module OrderedCollections
[427/427] Emitting module HashTreeCollections
[428/433] Compiling Collections OrderedCollections reexports.swift
[429/433] Compiling Collections DequeModule reexports.swift
[430/433] Compiling Collections HashTreeCollections reexports.swift
[431/433] Compiling Collections HeapModule reexports.swift
[432/433] Emitting module Collections
[433/433] Compiling Collections BitCollections reexports.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[434/461] Emitting module Swift2Python
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter.swift:31:35: error: non-sendable result type 'PythonInterpreter.PreloadedPythonSymbols' cannot be sent from nonisolated context in call to static method 'loadAllSymbols(using:_:)'
29 |
30 | logger.trace("Preload all Python C API symbols.")
31 | self.api = try await Self.loadAllSymbols(using: runtime, logger)
| `- error: non-sendable result type 'PythonInterpreter.PreloadedPythonSymbols' cannot be sent from nonisolated context in call to static method 'loadAllSymbols(using:_:)'
32 |
33 | // Defaults for some global helpers. Setting them to false works because
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+PythonAPI.swift:17:21: note: consider making struct 'PreloadedPythonSymbols' conform to the 'Sendable' protocol
15 | extension PythonInterpreter {
16 |
17 | internal struct PreloadedPythonSymbols {
| `- note: consider making struct 'PreloadedPythonSymbols' conform to the 'Sendable' protocol
18 | let Py_DecRef: (@convention(c) (UnsafeMutableRawPointer) -> Void)
19 | let Py_IncRef: (@convention(c) (UnsafeMutableRawPointer) -> Void)
[435/463] Compiling Swift2Python SafePythonObject+Convert.swift
[436/463] Compiling Swift2Python SafePythonObject.swift
[437/463] Compiling Swift2Python Container.swift
[438/463] Compiling Swift2Python Conversions.swift
[439/463] Compiling Swift2Python Operators.swift
[440/463] Compiling Swift2Python PythonInterpreter+Compare.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:38:68: error: sending 'dictPtr' risks causing data races
36 | let keyPtr = try requirePythonPointer(forObject: keyObj)
37 | let valuePtr = try requirePythonPointer(forObject: valueObj)
38 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
39 | }
40 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:68:68: error: sending 'dictPtr' risks causing data races
66 | let keyPtr = try requirePythonPointer(forObject: keyObj)
67 | let valuePtr = try requirePythonPointer(forObject: valueObj)
68 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
69 | }
70 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:99:68: error: sending 'dictPtr' risks causing data races
97 | let keyPtr = try requirePythonPointer(forObject: keyObj)
98 | let valuePtr = try requirePythonPointer(forObject: valueObj)
99 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
100 | }
101 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:128:68: error: sending 'dictPtr' risks causing data races
126 | let keyPtr = try requirePythonPointer(forObject: keyObj)
127 | let valuePtr = try requirePythonPointer(forObject: valueObj)
128 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
129 | }
130 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:147:68: error: sending 'dictPtr' risks causing data races
145 | let keyPtr = try requirePythonPointer(forObject: keyObj)
146 | let valuePtr = try requirePythonPointer(forObject: valueObj)
147 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
148 | }
149 | return newPythonObject(fromReturnedPointer: dictPtr)
[441/463] Compiling Swift2Python PythonInterpreter+Convert.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:38:68: error: sending 'dictPtr' risks causing data races
36 | let keyPtr = try requirePythonPointer(forObject: keyObj)
37 | let valuePtr = try requirePythonPointer(forObject: valueObj)
38 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
39 | }
40 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:68:68: error: sending 'dictPtr' risks causing data races
66 | let keyPtr = try requirePythonPointer(forObject: keyObj)
67 | let valuePtr = try requirePythonPointer(forObject: valueObj)
68 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
69 | }
70 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:99:68: error: sending 'dictPtr' risks causing data races
97 | let keyPtr = try requirePythonPointer(forObject: keyObj)
98 | let valuePtr = try requirePythonPointer(forObject: valueObj)
99 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
100 | }
101 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:128:68: error: sending 'dictPtr' risks causing data races
126 | let keyPtr = try requirePythonPointer(forObject: keyObj)
127 | let valuePtr = try requirePythonPointer(forObject: valueObj)
128 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
129 | }
130 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:147:68: error: sending 'dictPtr' risks causing data races
145 | let keyPtr = try requirePythonPointer(forObject: keyObj)
146 | let valuePtr = try requirePythonPointer(forObject: valueObj)
147 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
148 | }
149 | return newPythonObject(fromReturnedPointer: dictPtr)
[442/463] Compiling Swift2Python PythonInterpreter+Dictionary.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:38:68: error: sending 'dictPtr' risks causing data races
36 | let keyPtr = try requirePythonPointer(forObject: keyObj)
37 | let valuePtr = try requirePythonPointer(forObject: valueObj)
38 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
39 | }
40 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:68:68: error: sending 'dictPtr' risks causing data races
66 | let keyPtr = try requirePythonPointer(forObject: keyObj)
67 | let valuePtr = try requirePythonPointer(forObject: valueObj)
68 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
69 | }
70 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:99:68: error: sending 'dictPtr' risks causing data races
97 | let keyPtr = try requirePythonPointer(forObject: keyObj)
98 | let valuePtr = try requirePythonPointer(forObject: valueObj)
99 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
100 | }
101 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:128:68: error: sending 'dictPtr' risks causing data races
126 | let keyPtr = try requirePythonPointer(forObject: keyObj)
127 | let valuePtr = try requirePythonPointer(forObject: valueObj)
128 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
129 | }
130 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:147:68: error: sending 'dictPtr' risks causing data races
145 | let keyPtr = try requirePythonPointer(forObject: keyObj)
146 | let valuePtr = try requirePythonPointer(forObject: valueObj)
147 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
148 | }
149 | return newPythonObject(fromReturnedPointer: dictPtr)
[443/463] Compiling Swift2Python SafePythonObject+Bitwise.swift
[444/463] Compiling Swift2Python SafePythonObject+Compare.swift
[445/463] Compiling Swift2Python SafePythonObject+Container.swift
[446/463] Compiling Swift2Python PythonError.swift
[447/463] Compiling Swift2Python PythonInterpreter+Bytes.swift
[448/463] Compiling Swift2Python PythonInterpreter+Callable.swift
[449/463] Compiling Swift2Python PythonInterpreter+Logical.swift
[450/463] Compiling Swift2Python PythonInterpreter+Operator.swift
[451/463] Compiling Swift2Python PythonInterpreter+PythonAPI.swift
[452/463] Compiling Swift2Python PythonObjectIdentity.swift
[453/463] Compiling Swift2Python PythonRuntime.swift
[454/463] Compiling Swift2Python SafePythonObject+Arithmetic.swift
[455/463] Compiling Swift2Python PythonInterpreter+Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Error.swift:163:81: error: sending 'exceptionPtr' risks causing data races
161 | // earlier. PyErr_GetRaisedException on Python 3.12+ only gives the value,
162 | // so derive the type from value.__class__ in that path.
163 | let resolvedTypePtr = typePtr ?? getAttributePointer("__class__", from: exceptionPtr)
| | |- error: sending 'exceptionPtr' risks causing data races
| | `- note: 'self'-isolated 'exceptionPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
164 | defer {
165 | // Attribute lookup returns a new reference. A type pointer supplied by
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:39:47: error: sending 'listPtr' risks causing data races
36 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
37 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
38 | _ = try await withGIL {
| `- note: access can happen concurrently
39 | try setItem(valuePtr, onList: listPtr, atIndex: index, orElse: { try throwPythonError() })
| |- error: sending 'listPtr' risks causing data races
| `- note: 'self'-isolated 'listPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:175:61: error: sending 'objPtr' risks causing data races
172 | }
173 | let size = try getSizeOf(list: objPtr, onError: { try throwError() } )
174 | return try (0..<size).map { index in
| `- note: access can happen concurrently
175 | let ptr = try getItemAt(index: index, fromList: objPtr, onError: { try throwError() } )
| |- error: sending 'objPtr' risks causing data races
| `- note: 'self'-isolated 'objPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
176 | return try handleEachItem(ptr)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:175:84: error: sending 'throwError' risks causing data races
172 | }
173 | let size = try getSizeOf(list: objPtr, onError: { try throwError() } )
174 | return try (0..<size).map { index in
| `- note: access can happen concurrently
175 | let ptr = try getItemAt(index: index, fromList: objPtr, onError: { try throwError() } )
| |- error: sending 'throwError' risks causing data races
| `- note: 'self'-isolated 'throwError' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
176 | return try handleEachItem(ptr)
177 | }
[456/463] Compiling Swift2Python PythonInterpreter+Iteration.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Error.swift:163:81: error: sending 'exceptionPtr' risks causing data races
161 | // earlier. PyErr_GetRaisedException on Python 3.12+ only gives the value,
162 | // so derive the type from value.__class__ in that path.
163 | let resolvedTypePtr = typePtr ?? getAttributePointer("__class__", from: exceptionPtr)
| | |- error: sending 'exceptionPtr' risks causing data races
| | `- note: 'self'-isolated 'exceptionPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
164 | defer {
165 | // Attribute lookup returns a new reference. A type pointer supplied by
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:39:47: error: sending 'listPtr' risks causing data races
36 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
37 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
38 | _ = try await withGIL {
| `- note: access can happen concurrently
39 | try setItem(valuePtr, onList: listPtr, atIndex: index, orElse: { try throwPythonError() })
| |- error: sending 'listPtr' risks causing data races
| `- note: 'self'-isolated 'listPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:175:61: error: sending 'objPtr' risks causing data races
172 | }
173 | let size = try getSizeOf(list: objPtr, onError: { try throwError() } )
174 | return try (0..<size).map { index in
| `- note: access can happen concurrently
175 | let ptr = try getItemAt(index: index, fromList: objPtr, onError: { try throwError() } )
| |- error: sending 'objPtr' risks causing data races
| `- note: 'self'-isolated 'objPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
176 | return try handleEachItem(ptr)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:175:84: error: sending 'throwError' risks causing data races
172 | }
173 | let size = try getSizeOf(list: objPtr, onError: { try throwError() } )
174 | return try (0..<size).map { index in
| `- note: access can happen concurrently
175 | let ptr = try getItemAt(index: index, fromList: objPtr, onError: { try throwError() } )
| |- error: sending 'throwError' risks causing data races
| `- note: 'self'-isolated 'throwError' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
176 | return try handleEachItem(ptr)
177 | }
[457/463] Compiling Swift2Python PythonInterpreter+List.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Error.swift:163:81: error: sending 'exceptionPtr' risks causing data races
161 | // earlier. PyErr_GetRaisedException on Python 3.12+ only gives the value,
162 | // so derive the type from value.__class__ in that path.
163 | let resolvedTypePtr = typePtr ?? getAttributePointer("__class__", from: exceptionPtr)
| | |- error: sending 'exceptionPtr' risks causing data races
| | `- note: 'self'-isolated 'exceptionPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
164 | defer {
165 | // Attribute lookup returns a new reference. A type pointer supplied by
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:39:47: error: sending 'listPtr' risks causing data races
36 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
37 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
38 | _ = try await withGIL {
| `- note: access can happen concurrently
39 | try setItem(valuePtr, onList: listPtr, atIndex: index, orElse: { try throwPythonError() })
| |- error: sending 'listPtr' risks causing data races
| `- note: 'self'-isolated 'listPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:175:61: error: sending 'objPtr' risks causing data races
172 | }
173 | let size = try getSizeOf(list: objPtr, onError: { try throwError() } )
174 | return try (0..<size).map { index in
| `- note: access can happen concurrently
175 | let ptr = try getItemAt(index: index, fromList: objPtr, onError: { try throwError() } )
| |- error: sending 'objPtr' risks causing data races
| `- note: 'self'-isolated 'objPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
176 | return try handleEachItem(ptr)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:175:84: error: sending 'throwError' risks causing data races
172 | }
173 | let size = try getSizeOf(list: objPtr, onError: { try throwError() } )
174 | return try (0..<size).map { index in
| `- note: access can happen concurrently
175 | let ptr = try getItemAt(index: index, fromList: objPtr, onError: { try throwError() } )
| |- error: sending 'throwError' risks causing data races
| `- note: 'self'-isolated 'throwError' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
176 | return try handleEachItem(ptr)
177 | }
[458/463] Compiling Swift2Python PythonInterpreter+RefCount.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+RefCount.swift:97:31: error: sending 'record' risks causing data races
95 | if andAlsoPythonsRefCount {
96 | try await withGIL {
97 | api.Py_DecRef(record.objectPtr)
| |- error: sending 'record' risks causing data races
| `- note: 'self'-isolated 'record' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
98 | }
99 | }
100 | if andRemoveWhenZero && record.referenceCount <= 0 {
| `- note: access can happen concurrently
101 | pythonObjectRegistry.removeValue(forKey: forPythonObjectID)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:37:46: error: sending 'setPtr' risks causing data races
34 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
35 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
36 | try await withGIL {
| `- note: access can happen concurrently
37 | try addItem(valuePtr, toSet: setPtr, orElse: { try throwPythonError() })
| |- error: sending 'setPtr' risks causing data races
| `- note: 'self'-isolated 'setPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:68:46: error: sending 'frozenSetPtr' risks causing data races
65 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
66 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
67 | try await withGIL {
| `- note: access can happen concurrently
68 | try addItem(valuePtr, toSet: frozenSetPtr, orElse: { try throwPythonError() })
| |- error: sending 'frozenSetPtr' risks causing data races
| `- note: 'self'-isolated 'frozenSetPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:318:63: error: sending 'objPtr' risks causing data races
316 | // This requires the GIL.
317 | private func isAnySet(_ objPtr: UnsafeMutableRawPointer, onError throwError: () throws -> Never) throws -> Bool {
318 | try isSet(objPtr, onError: throwError) || isFrozenSet(objPtr, onError: throwError)
| | |- error: sending 'objPtr' risks causing data races
| | `- note: 'self'-isolated 'objPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
319 | }
320 |
[459/463] Compiling Swift2Python PythonInterpreter+Set.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+RefCount.swift:97:31: error: sending 'record' risks causing data races
95 | if andAlsoPythonsRefCount {
96 | try await withGIL {
97 | api.Py_DecRef(record.objectPtr)
| |- error: sending 'record' risks causing data races
| `- note: 'self'-isolated 'record' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
98 | }
99 | }
100 | if andRemoveWhenZero && record.referenceCount <= 0 {
| `- note: access can happen concurrently
101 | pythonObjectRegistry.removeValue(forKey: forPythonObjectID)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:37:46: error: sending 'setPtr' risks causing data races
34 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
35 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
36 | try await withGIL {
| `- note: access can happen concurrently
37 | try addItem(valuePtr, toSet: setPtr, orElse: { try throwPythonError() })
| |- error: sending 'setPtr' risks causing data races
| `- note: 'self'-isolated 'setPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:68:46: error: sending 'frozenSetPtr' risks causing data races
65 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
66 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
67 | try await withGIL {
| `- note: access can happen concurrently
68 | try addItem(valuePtr, toSet: frozenSetPtr, orElse: { try throwPythonError() })
| |- error: sending 'frozenSetPtr' risks causing data races
| `- note: 'self'-isolated 'frozenSetPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:318:63: error: sending 'objPtr' risks causing data races
316 | // This requires the GIL.
317 | private func isAnySet(_ objPtr: UnsafeMutableRawPointer, onError throwError: () throws -> Never) throws -> Bool {
318 | try isSet(objPtr, onError: throwError) || isFrozenSet(objPtr, onError: throwError)
| | |- error: sending 'objPtr' risks causing data races
| | `- note: 'self'-isolated 'objPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
319 | }
320 |
[460/463] Compiling Swift2Python PythonInterpreter+Slice.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+RefCount.swift:97:31: error: sending 'record' risks causing data races
95 | if andAlsoPythonsRefCount {
96 | try await withGIL {
97 | api.Py_DecRef(record.objectPtr)
| |- error: sending 'record' risks causing data races
| `- note: 'self'-isolated 'record' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
98 | }
99 | }
100 | if andRemoveWhenZero && record.referenceCount <= 0 {
| `- note: access can happen concurrently
101 | pythonObjectRegistry.removeValue(forKey: forPythonObjectID)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:37:46: error: sending 'setPtr' risks causing data races
34 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
35 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
36 | try await withGIL {
| `- note: access can happen concurrently
37 | try addItem(valuePtr, toSet: setPtr, orElse: { try throwPythonError() })
| |- error: sending 'setPtr' risks causing data races
| `- note: 'self'-isolated 'setPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:68:46: error: sending 'frozenSetPtr' risks causing data races
65 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
66 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
67 | try await withGIL {
| `- note: access can happen concurrently
68 | try addItem(valuePtr, toSet: frozenSetPtr, orElse: { try throwPythonError() })
| |- error: sending 'frozenSetPtr' risks causing data races
| `- note: 'self'-isolated 'frozenSetPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:318:63: error: sending 'objPtr' risks causing data races
316 | // This requires the GIL.
317 | private func isAnySet(_ objPtr: UnsafeMutableRawPointer, onError throwError: () throws -> Never) throws -> Bool {
318 | try isSet(objPtr, onError: throwError) || isFrozenSet(objPtr, onError: throwError)
| | |- error: sending 'objPtr' risks causing data races
| | `- note: 'self'-isolated 'objPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
319 | }
320 |
[461/463] Compiling Swift2Python PythonInterpreter+Tuple.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter.swift:31:35: error: non-sendable result type 'PythonInterpreter.PreloadedPythonSymbols' cannot be sent from nonisolated context in call to static method 'loadAllSymbols(using:_:)'
29 |
30 | logger.trace("Preload all Python C API symbols.")
31 | self.api = try await Self.loadAllSymbols(using: runtime, logger)
| `- error: non-sendable result type 'PythonInterpreter.PreloadedPythonSymbols' cannot be sent from nonisolated context in call to static method 'loadAllSymbols(using:_:)'
32 |
33 | // Defaults for some global helpers. Setting them to false works because
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+PythonAPI.swift:17:21: note: consider making struct 'PreloadedPythonSymbols' conform to the 'Sendable' protocol
15 | extension PythonInterpreter {
16 |
17 | internal struct PreloadedPythonSymbols {
| `- note: consider making struct 'PreloadedPythonSymbols' conform to the 'Sendable' protocol
18 | let Py_DecRef: (@convention(c) (UnsafeMutableRawPointer) -> Void)
19 | let Py_IncRef: (@convention(c) (UnsafeMutableRawPointer) -> Void)
[462/463] Compiling Swift2Python PythonInterpreter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter.swift:31:35: error: non-sendable result type 'PythonInterpreter.PreloadedPythonSymbols' cannot be sent from nonisolated context in call to static method 'loadAllSymbols(using:_:)'
29 |
30 | logger.trace("Preload all Python C API symbols.")
31 | self.api = try await Self.loadAllSymbols(using: runtime, logger)
| `- error: non-sendable result type 'PythonInterpreter.PreloadedPythonSymbols' cannot be sent from nonisolated context in call to static method 'loadAllSymbols(using:_:)'
32 |
33 | // Defaults for some global helpers. Setting them to false works because
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+PythonAPI.swift:17:21: note: consider making struct 'PreloadedPythonSymbols' conform to the 'Sendable' protocol
15 | extension PythonInterpreter {
16 |
17 | internal struct PreloadedPythonSymbols {
| `- note: consider making struct 'PreloadedPythonSymbols' conform to the 'Sendable' protocol
18 | let Py_DecRef: (@convention(c) (UnsafeMutableRawPointer) -> Void)
19 | let Py_IncRef: (@convention(c) (UnsafeMutableRawPointer) -> Void)
[463/463] Compiling Swift2Python PythonObject.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter.swift:31:35: error: non-sendable result type 'PythonInterpreter.PreloadedPythonSymbols' cannot be sent from nonisolated context in call to static method 'loadAllSymbols(using:_:)'
29 |
30 | logger.trace("Preload all Python C API symbols.")
31 | self.api = try await Self.loadAllSymbols(using: runtime, logger)
| `- error: non-sendable result type 'PythonInterpreter.PreloadedPythonSymbols' cannot be sent from nonisolated context in call to static method 'loadAllSymbols(using:_:)'
32 |
33 | // Defaults for some global helpers. Setting them to false works because
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+PythonAPI.swift:17:21: note: consider making struct 'PreloadedPythonSymbols' conform to the 'Sendable' protocol
15 | extension PythonInterpreter {
16 |
17 | internal struct PreloadedPythonSymbols {
| `- note: consider making struct 'PreloadedPythonSymbols' conform to the 'Sendable' protocol
18 | let Py_DecRef: (@convention(c) (UnsafeMutableRawPointer) -> Void)
19 | let Py_IncRef: (@convention(c) (UnsafeMutableRawPointer) -> Void)
Fetching https://github.com/apple/swift-collections.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (1.85s)
Fetched https://github.com/apple/swift-collections.git from cache (1.88s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (2.57s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.14.0 (0.50s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.14.0
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/31] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[3/31] Compiling InternalCollectionsUtilities _SortedCollection.swift
[4/32] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[5/32] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[6/32] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[7/32] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[8/32] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[9/32] Compiling Logging LoggingSystem.swift
[10/32] Compiling Logging Logger+With.swift
unable to find node: pound
unable to find node: pound
[11/32] Compiling Logging Logger+Attributes.swift
[12/32] Compiling Logging LogHandler.swift
[13/32] Compiling Logging Locks.swift
[14/32] Compiling Logging LogEvent.swift
[15/32] Compiling Logging Logger.swift
[16/33] Compiling InternalCollectionsUtilities Span+Extras.swift
[17/33] Compiling InternalCollectionsUtilities String+Padding.swift
[18/33] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[19/33] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[20/33] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[21/33] Compiling InternalCollectionsUtilities Integer rank.swift
[22/33] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[23/33] Compiling InternalCollectionsUtilities UInt+reversed.swift
[24/33] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[25/33] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[26/33] Compiling Logging SwiftLogNoOpLogHandler.swift
[27/33] Emitting module Logging
unable to find node: pound
unable to find node: pound
[28/33] Compiling InternalCollectionsUtilities Debugging.swift
[29/33] Compiling InternalCollectionsUtilities Descriptions.swift
[32/33] Emitting module InternalCollectionsUtilities
[33/33] Compiling Logging MetadataProvider.swift
[34/340] Compiling HashTreeCollections _HashLevel.swift
[35/340] Compiling HashTreeCollections _HashNode+Builder.swift
[36/340] Compiling HashTreeCollections _HashNode+Debugging.swift
[37/340] Compiling HashTreeCollections _HashNode+Initializers.swift
[38/343] Compiling HashTreeCollections _AncestorHashSlots.swift
[39/343] Compiling HashTreeCollections _Bitmap.swift
[40/343] Compiling HashTreeCollections _Bucket.swift
[41/343] Compiling HashTreeCollections _Hash.swift
[42/343] Emitting module ContainersPreview
[43/343] Compiling HashTreeCollections _HashNode+Invariants.swift
[44/343] Compiling HashTreeCollections _HashNode+Structural isEqualSet.swift
[45/343] Compiling HashTreeCollections _HashNode+Structural isSubset.swift
[46/343] Compiling HashTreeCollections _HashNode+Structural mapValues.swift
[47/343] Compiling HashTreeCollections _HashNode+Subtree Insertions.swift
[48/343] Compiling HashTreeCollections _HashNode+Subtree Modify.swift
[49/343] Compiling HashTreeCollections _HashNode+Lookups.swift
[50/343] Compiling HashTreeCollections _HashNode+Primitive Insertions.swift
[51/343] Compiling HashTreeCollections TreeDictionary+CustomReflectable.swift
[52/343] Compiling HashTreeCollections TreeDictionary+Debugging.swift
[53/343] Compiling HashTreeCollections TreeDictionary+Descriptions.swift
[54/343] Compiling HashTreeCollections TreeDictionary+Equatable.swift
[55/343] Compiling HashTreeCollections _HashNode+Structural merge.swift
[56/343] Compiling HashTreeCollections _HashNode+Structural subtracting.swift
[57/343] Compiling HashTreeCollections _HashNode+Structural symmetricDifference.swift
[58/343] Compiling HashTreeCollections _HashNode+Structural union.swift
[59/343] Compiling HashTreeCollections _HashNode+Primitive Removals.swift
[60/343] Compiling HashTreeCollections _HashNode+Primitive Replacement.swift
[61/343] Compiling HashTreeCollections _HashNode+Storage.swift
[62/343] Compiling HashTreeCollections _HashNode+Structural compactMapValues.swift
[63/343] Compiling HashTreeCollections _HashNode+Structural filter.swift
[64/343] Compiling HashTreeCollections _HashNode+Structural intersection.swift
[65/343] Compiling HashTreeCollections _HashNode+Structural isDisjoint.swift
[66/343] Compiling HashTreeCollections _RawHashNode.swift
[67/343] Compiling ContainersPreview Shared.swift
[68/343] Compiling ContainersPreview SpanIterator.swift
[69/343] Compiling ContainersPreview UniqueBox.swift
[78/343] Compiling HashTreeCollections _UnmanagedHashNode.swift
[79/343] Compiling HashTreeCollections _UnsafePath.swift
[80/343] Compiling HashTreeCollections TreeDictionary+Codable.swift
[81/343] Compiling HashTreeCollections TreeDictionary+Collection.swift
[98/350] Compiling HeapModule Heap.swift
[99/350] Compiling HeapModule _HeapNode.swift
[108/350] Compiling HeapModule Heap+Invariants.swift
[109/350] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[110/350] Compiling HeapModule Heap+Descriptions.swift
[111/350] Compiling HeapModule Heap+UnsafeHandle.swift
[112/350] Emitting module HeapModule
[113/392] Compiling DequeModule UniqueDeque+Deprecated.swift
[114/392] Compiling DequeModule UniqueDeque+Descriptions.swift
[115/392] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[116/392] Compiling DequeModule Deque+Extras.swift
[117/392] Compiling DequeModule Deque+Hashable.swift
[118/392] Compiling DequeModule Deque+Testing.swift
[119/398] Compiling DequeModule UniqueDeque+Equatable.swift
[120/398] Compiling DequeModule UniqueDeque+Experimental.swift
[121/398] Compiling DequeModule UniqueDeque+Hashable.swift
[122/398] Compiling DequeModule UniqueDeque+Initializers.swift
[123/402] Compiling HashTreeCollections TreeSet+Equatable.swift
[124/402] Compiling HashTreeCollections TreeSet+ExpressibleByArrayLiteral.swift
[125/402] Compiling HashTreeCollections TreeSet+Extras.swift
[126/402] Compiling HashTreeCollections TreeSet+Filter.swift
[127/402] Compiling HashTreeCollections TreeSet+Hashable.swift
[128/402] Compiling HashTreeCollections TreeSet+Sendable.swift
[129/402] Compiling HashTreeCollections TreeSet+Sequence.swift
[130/402] Compiling HashTreeCollections TreeSet+SetAlgebra Initializers.swift
[131/402] Compiling HashTreeCollections TreeSet+SetAlgebra basics.swift
[132/402] Compiling HashTreeCollections TreeSet+SetAlgebra formIntersection.swift
[133/402] Compiling _RopeModule Rope+Remove.swift
[134/402] Compiling _RopeModule Rope+RemoveSubrange.swift
[135/402] Compiling _RopeModule Rope+Split.swift
[136/402] Compiling _RopeModule Optional Utilities.swift
[137/402] Compiling _RopeModule String Utilities.swift
[138/402] Compiling _RopeModule String.Index+ABI.swift
[139/410] Compiling DequeModule RigidDeque+Replacements.swift
[140/410] Compiling DequeModule RigidDeque+Testing.swift
[141/410] Compiling DequeModule RigidDeque.swift
[142/410] Compiling DequeModule UniqueDeque+Append.swift
[143/410] Compiling DequeModule UniqueDeque+Prepend.swift
[144/410] Compiling DequeModule UniqueDeque+Removals.swift
[145/410] Compiling DequeModule UniqueDeque+Replacements.swift
[146/410] Compiling DequeModule Deque._UnsafeHandle.swift
[147/410] Compiling DequeModule Deque.swift
[148/410] Compiling DequeModule _DequeBuffer.swift
[149/410] Compiling DequeModule _DequeBufferHeader.swift
[150/410] Compiling DequeModule RigidDeque+Append.swift
[151/410] Compiling DequeModule RigidDeque+Hashable.swift
[152/410] Compiling DequeModule RigidDeque+Initializers.swift
[153/410] Compiling DequeModule RigidDeque+Insertions.swift
[154/410] Compiling DequeModule RigidDeque+Prepend.swift
[155/410] Compiling DequeModule _DequeSlot.swift
[156/410] Compiling DequeModule _UnsafeDequeHandle.swift
[157/410] Compiling DequeModule _UnsafeDequeSegments.swift
[158/410] Compiling HashTreeCollections TreeDictionary+Values.swift
[159/410] Compiling HashTreeCollections TreeDictionary.swift
[160/410] Compiling HashTreeCollections TreeSet+Codable.swift
[161/410] Compiling DequeModule RigidDeque+Removals.swift
[166/410] Compiling DequeModule UniqueDeque.swift
[167/410] Compiling HashTreeCollections TreeSet+Collection.swift
[168/410] Compiling HashTreeCollections TreeSet+CustomReflectable.swift
[169/410] Compiling HashTreeCollections TreeSet+Debugging.swift
[170/410] Compiling HashTreeCollections TreeSet+Descriptions.swift
[171/410] Compiling HashTreeCollections _HashNode+Subtree Removals.swift
[172/410] Compiling HashTreeCollections _HashNode+UnsafeHandle.swift
[178/410] Compiling DequeModule Deque._Storage.swift
[179/410] Compiling DequeModule RigidDeque+Consumption.swift
[184/416] Compiling BitCollections BitSet._UnsafeHandle.swift
[185/416] Compiling BitCollections BitSet.swift
[186/416] Compiling BitCollections Range+Utilities.swift
[205/416] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[206/416] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[207/416] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[208/416] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[209/416] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[210/416] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[211/416] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[212/416] Compiling HashTreeCollections TreeSet.swift
[220/416] Emitting module BitCollections
[225/416] Compiling DequeModule UniqueDeque+Consumption.swift
[226/416] Compiling DequeModule UniqueDeque+Container.swift
[235/416] Compiling OrderedCollections OrderedSet+SubSequence.swift
[236/416] Compiling OrderedCollections OrderedSet+Testing.swift
[237/416] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[238/416] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[239/416] Compiling OrderedCollections OrderedSet.swift
[240/416] Compiling OrderedCollections _UnsafeBitset.swift
[264/416] Compiling DequeModule RigidDeque+Container.swift
[265/416] Compiling DequeModule RigidDeque+Descriptions.swift
[266/416] Compiling DequeModule RigidDeque+Equatable.swift
[267/416] Compiling DequeModule RigidDeque+Experimental.swift
[268/416] Compiling DequeModule Deque+Codable.swift
[269/416] Compiling DequeModule Deque+Collection.swift
[270/416] Compiling DequeModule Deque+CustomReflectable.swift
[271/416] Compiling DequeModule Deque+Descriptions.swift
[272/416] Compiling DequeModule Deque+Equatable.swift
[273/416] Compiling DequeModule UniqueDeque+Insertions.swift
[389/416] Emitting module _RopeModule
[414/416] Emitting module DequeModule
[415/416] Emitting module OrderedCollections
[416/416] Emitting module HashTreeCollections
[417/422] Compiling Collections OrderedCollections reexports.swift
[418/422] Compiling Collections HashTreeCollections reexports.swift
[419/422] Compiling Collections DequeModule reexports.swift
[420/422] Compiling Collections HeapModule reexports.swift
[421/422] Emitting module Collections
[422/422] Compiling Collections BitCollections reexports.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[423/450] Emitting module Swift2Python
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter.swift:31:35: error: non-sendable result type 'PythonInterpreter.PreloadedPythonSymbols' cannot be sent from nonisolated context in call to static method 'loadAllSymbols(using:_:)'
29 |
30 | logger.trace("Preload all Python C API symbols.")
31 | self.api = try await Self.loadAllSymbols(using: runtime, logger)
| `- error: non-sendable result type 'PythonInterpreter.PreloadedPythonSymbols' cannot be sent from nonisolated context in call to static method 'loadAllSymbols(using:_:)'
32 |
33 | // Defaults for some global helpers. Setting them to false works because
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+PythonAPI.swift:17:21: note: consider making struct 'PreloadedPythonSymbols' conform to the 'Sendable' protocol
15 | extension PythonInterpreter {
16 |
17 | internal struct PreloadedPythonSymbols {
| `- note: consider making struct 'PreloadedPythonSymbols' conform to the 'Sendable' protocol
18 | let Py_DecRef: (@convention(c) (UnsafeMutableRawPointer) -> Void)
19 | let Py_IncRef: (@convention(c) (UnsafeMutableRawPointer) -> Void)
[424/452] Compiling Swift2Python PythonInterpreter+Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Error.swift:163:81: error: sending 'exceptionPtr' risks causing data races
161 | // earlier. PyErr_GetRaisedException on Python 3.12+ only gives the value,
162 | // so derive the type from value.__class__ in that path.
163 | let resolvedTypePtr = typePtr ?? getAttributePointer("__class__", from: exceptionPtr)
| | |- error: sending 'exceptionPtr' risks causing data races
| | `- note: 'self'-isolated 'exceptionPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
164 | defer {
165 | // Attribute lookup returns a new reference. A type pointer supplied by
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:39:47: error: sending 'listPtr' risks causing data races
36 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
37 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
38 | _ = try await withGIL {
| `- note: access can happen concurrently
39 | try setItem(valuePtr, onList: listPtr, atIndex: index, orElse: { try throwPythonError() })
| |- error: sending 'listPtr' risks causing data races
| `- note: 'self'-isolated 'listPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:175:61: error: sending 'objPtr' risks causing data races
172 | }
173 | let size = try getSizeOf(list: objPtr, onError: { try throwError() } )
174 | return try (0..<size).map { index in
| `- note: access can happen concurrently
175 | let ptr = try getItemAt(index: index, fromList: objPtr, onError: { try throwError() } )
| |- error: sending 'objPtr' risks causing data races
| `- note: 'self'-isolated 'objPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
176 | return try handleEachItem(ptr)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:175:84: error: sending 'throwError' risks causing data races
172 | }
173 | let size = try getSizeOf(list: objPtr, onError: { try throwError() } )
174 | return try (0..<size).map { index in
| `- note: access can happen concurrently
175 | let ptr = try getItemAt(index: index, fromList: objPtr, onError: { try throwError() } )
| |- error: sending 'throwError' risks causing data races
| `- note: 'self'-isolated 'throwError' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
176 | return try handleEachItem(ptr)
177 | }
[425/452] Compiling Swift2Python PythonInterpreter+Iteration.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Error.swift:163:81: error: sending 'exceptionPtr' risks causing data races
161 | // earlier. PyErr_GetRaisedException on Python 3.12+ only gives the value,
162 | // so derive the type from value.__class__ in that path.
163 | let resolvedTypePtr = typePtr ?? getAttributePointer("__class__", from: exceptionPtr)
| | |- error: sending 'exceptionPtr' risks causing data races
| | `- note: 'self'-isolated 'exceptionPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
164 | defer {
165 | // Attribute lookup returns a new reference. A type pointer supplied by
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:39:47: error: sending 'listPtr' risks causing data races
36 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
37 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
38 | _ = try await withGIL {
| `- note: access can happen concurrently
39 | try setItem(valuePtr, onList: listPtr, atIndex: index, orElse: { try throwPythonError() })
| |- error: sending 'listPtr' risks causing data races
| `- note: 'self'-isolated 'listPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:175:61: error: sending 'objPtr' risks causing data races
172 | }
173 | let size = try getSizeOf(list: objPtr, onError: { try throwError() } )
174 | return try (0..<size).map { index in
| `- note: access can happen concurrently
175 | let ptr = try getItemAt(index: index, fromList: objPtr, onError: { try throwError() } )
| |- error: sending 'objPtr' risks causing data races
| `- note: 'self'-isolated 'objPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
176 | return try handleEachItem(ptr)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:175:84: error: sending 'throwError' risks causing data races
172 | }
173 | let size = try getSizeOf(list: objPtr, onError: { try throwError() } )
174 | return try (0..<size).map { index in
| `- note: access can happen concurrently
175 | let ptr = try getItemAt(index: index, fromList: objPtr, onError: { try throwError() } )
| |- error: sending 'throwError' risks causing data races
| `- note: 'self'-isolated 'throwError' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
176 | return try handleEachItem(ptr)
177 | }
[426/452] Compiling Swift2Python PythonInterpreter+List.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Error.swift:163:81: error: sending 'exceptionPtr' risks causing data races
161 | // earlier. PyErr_GetRaisedException on Python 3.12+ only gives the value,
162 | // so derive the type from value.__class__ in that path.
163 | let resolvedTypePtr = typePtr ?? getAttributePointer("__class__", from: exceptionPtr)
| | |- error: sending 'exceptionPtr' risks causing data races
| | `- note: 'self'-isolated 'exceptionPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
164 | defer {
165 | // Attribute lookup returns a new reference. A type pointer supplied by
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:39:47: error: sending 'listPtr' risks causing data races
36 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
37 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
38 | _ = try await withGIL {
| `- note: access can happen concurrently
39 | try setItem(valuePtr, onList: listPtr, atIndex: index, orElse: { try throwPythonError() })
| |- error: sending 'listPtr' risks causing data races
| `- note: 'self'-isolated 'listPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:175:61: error: sending 'objPtr' risks causing data races
172 | }
173 | let size = try getSizeOf(list: objPtr, onError: { try throwError() } )
174 | return try (0..<size).map { index in
| `- note: access can happen concurrently
175 | let ptr = try getItemAt(index: index, fromList: objPtr, onError: { try throwError() } )
| |- error: sending 'objPtr' risks causing data races
| `- note: 'self'-isolated 'objPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
176 | return try handleEachItem(ptr)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+List.swift:175:84: error: sending 'throwError' risks causing data races
172 | }
173 | let size = try getSizeOf(list: objPtr, onError: { try throwError() } )
174 | return try (0..<size).map { index in
| `- note: access can happen concurrently
175 | let ptr = try getItemAt(index: index, fromList: objPtr, onError: { try throwError() } )
| |- error: sending 'throwError' risks causing data races
| `- note: 'self'-isolated 'throwError' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
176 | return try handleEachItem(ptr)
177 | }
[427/452] Compiling Swift2Python PythonInterpreter+RefCount.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+RefCount.swift:97:31: error: sending 'record' risks causing data races
95 | if andAlsoPythonsRefCount {
96 | try await withGIL {
97 | api.Py_DecRef(record.objectPtr)
| |- error: sending 'record' risks causing data races
| `- note: 'self'-isolated 'record' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
98 | }
99 | }
100 | if andRemoveWhenZero && record.referenceCount <= 0 {
| `- note: access can happen concurrently
101 | pythonObjectRegistry.removeValue(forKey: forPythonObjectID)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:37:46: error: sending 'setPtr' risks causing data races
34 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
35 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
36 | try await withGIL {
| `- note: access can happen concurrently
37 | try addItem(valuePtr, toSet: setPtr, orElse: { try throwPythonError() })
| |- error: sending 'setPtr' risks causing data races
| `- note: 'self'-isolated 'setPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:68:46: error: sending 'frozenSetPtr' risks causing data races
65 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
66 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
67 | try await withGIL {
| `- note: access can happen concurrently
68 | try addItem(valuePtr, toSet: frozenSetPtr, orElse: { try throwPythonError() })
| |- error: sending 'frozenSetPtr' risks causing data races
| `- note: 'self'-isolated 'frozenSetPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:318:63: error: sending 'objPtr' risks causing data races
316 | // This requires the GIL.
317 | private func isAnySet(_ objPtr: UnsafeMutableRawPointer, onError throwError: () throws -> Never) throws -> Bool {
318 | try isSet(objPtr, onError: throwError) || isFrozenSet(objPtr, onError: throwError)
| | |- error: sending 'objPtr' risks causing data races
| | `- note: 'self'-isolated 'objPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
319 | }
320 |
[428/452] Compiling Swift2Python PythonInterpreter+Set.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+RefCount.swift:97:31: error: sending 'record' risks causing data races
95 | if andAlsoPythonsRefCount {
96 | try await withGIL {
97 | api.Py_DecRef(record.objectPtr)
| |- error: sending 'record' risks causing data races
| `- note: 'self'-isolated 'record' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
98 | }
99 | }
100 | if andRemoveWhenZero && record.referenceCount <= 0 {
| `- note: access can happen concurrently
101 | pythonObjectRegistry.removeValue(forKey: forPythonObjectID)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:37:46: error: sending 'setPtr' risks causing data races
34 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
35 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
36 | try await withGIL {
| `- note: access can happen concurrently
37 | try addItem(valuePtr, toSet: setPtr, orElse: { try throwPythonError() })
| |- error: sending 'setPtr' risks causing data races
| `- note: 'self'-isolated 'setPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:68:46: error: sending 'frozenSetPtr' risks causing data races
65 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
66 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
67 | try await withGIL {
| `- note: access can happen concurrently
68 | try addItem(valuePtr, toSet: frozenSetPtr, orElse: { try throwPythonError() })
| |- error: sending 'frozenSetPtr' risks causing data races
| `- note: 'self'-isolated 'frozenSetPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:318:63: error: sending 'objPtr' risks causing data races
316 | // This requires the GIL.
317 | private func isAnySet(_ objPtr: UnsafeMutableRawPointer, onError throwError: () throws -> Never) throws -> Bool {
318 | try isSet(objPtr, onError: throwError) || isFrozenSet(objPtr, onError: throwError)
| | |- error: sending 'objPtr' risks causing data races
| | `- note: 'self'-isolated 'objPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
319 | }
320 |
[429/452] Compiling Swift2Python PythonInterpreter+Slice.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+RefCount.swift:97:31: error: sending 'record' risks causing data races
95 | if andAlsoPythonsRefCount {
96 | try await withGIL {
97 | api.Py_DecRef(record.objectPtr)
| |- error: sending 'record' risks causing data races
| `- note: 'self'-isolated 'record' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
98 | }
99 | }
100 | if andRemoveWhenZero && record.referenceCount <= 0 {
| `- note: access can happen concurrently
101 | pythonObjectRegistry.removeValue(forKey: forPythonObjectID)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:37:46: error: sending 'setPtr' risks causing data races
34 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
35 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
36 | try await withGIL {
| `- note: access can happen concurrently
37 | try addItem(valuePtr, toSet: setPtr, orElse: { try throwPythonError() })
| |- error: sending 'setPtr' risks causing data races
| `- note: 'self'-isolated 'setPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:68:46: error: sending 'frozenSetPtr' risks causing data races
65 | let valuePythonObject = try await element.toPythonObject(interpreter: self)
66 | let valuePtr = try requirePythonPointer(forObject: valuePythonObject)
67 | try await withGIL {
| `- note: access can happen concurrently
68 | try addItem(valuePtr, toSet: frozenSetPtr, orElse: { try throwPythonError() })
| |- error: sending 'frozenSetPtr' risks causing data races
| `- note: 'self'-isolated 'frozenSetPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Set.swift:318:63: error: sending 'objPtr' risks causing data races
316 | // This requires the GIL.
317 | private func isAnySet(_ objPtr: UnsafeMutableRawPointer, onError throwError: () throws -> Never) throws -> Bool {
318 | try isSet(objPtr, onError: throwError) || isFrozenSet(objPtr, onError: throwError)
| | |- error: sending 'objPtr' risks causing data races
| | `- note: 'self'-isolated 'objPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
319 | }
320 |
[430/452] Compiling Swift2Python Container.swift
[431/452] Compiling Swift2Python Conversions.swift
[432/452] Compiling Swift2Python Operators.swift
[433/452] Compiling Swift2Python PythonError.swift
[434/452] Compiling Swift2Python PythonInterpreter+Bytes.swift
[435/452] Compiling Swift2Python PythonInterpreter+Callable.swift
[436/452] Compiling Swift2Python PythonInterpreter+Logical.swift
[437/452] Compiling Swift2Python PythonInterpreter+Operator.swift
[438/452] Compiling Swift2Python PythonInterpreter+PythonAPI.swift
[439/452] Compiling Swift2Python SafePythonObject+Convert.swift
[440/452] Compiling Swift2Python SafePythonObject.swift
[441/452] Compiling Swift2Python SafePythonObject+Bitwise.swift
[442/452] Compiling Swift2Python SafePythonObject+Compare.swift
[443/452] Compiling Swift2Python SafePythonObject+Container.swift
[444/452] Compiling Swift2Python PythonObjectIdentity.swift
[445/452] Compiling Swift2Python PythonRuntime.swift
[446/452] Compiling Swift2Python SafePythonObject+Arithmetic.swift
[447/452] Compiling Swift2Python PythonInterpreter+Tuple.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter.swift:31:35: error: non-sendable result type 'PythonInterpreter.PreloadedPythonSymbols' cannot be sent from nonisolated context in call to static method 'loadAllSymbols(using:_:)'
29 |
30 | logger.trace("Preload all Python C API symbols.")
31 | self.api = try await Self.loadAllSymbols(using: runtime, logger)
| `- error: non-sendable result type 'PythonInterpreter.PreloadedPythonSymbols' cannot be sent from nonisolated context in call to static method 'loadAllSymbols(using:_:)'
32 |
33 | // Defaults for some global helpers. Setting them to false works because
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+PythonAPI.swift:17:21: note: consider making struct 'PreloadedPythonSymbols' conform to the 'Sendable' protocol
15 | extension PythonInterpreter {
16 |
17 | internal struct PreloadedPythonSymbols {
| `- note: consider making struct 'PreloadedPythonSymbols' conform to the 'Sendable' protocol
18 | let Py_DecRef: (@convention(c) (UnsafeMutableRawPointer) -> Void)
19 | let Py_IncRef: (@convention(c) (UnsafeMutableRawPointer) -> Void)
[448/452] Compiling Swift2Python PythonInterpreter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter.swift:31:35: error: non-sendable result type 'PythonInterpreter.PreloadedPythonSymbols' cannot be sent from nonisolated context in call to static method 'loadAllSymbols(using:_:)'
29 |
30 | logger.trace("Preload all Python C API symbols.")
31 | self.api = try await Self.loadAllSymbols(using: runtime, logger)
| `- error: non-sendable result type 'PythonInterpreter.PreloadedPythonSymbols' cannot be sent from nonisolated context in call to static method 'loadAllSymbols(using:_:)'
32 |
33 | // Defaults for some global helpers. Setting them to false works because
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+PythonAPI.swift:17:21: note: consider making struct 'PreloadedPythonSymbols' conform to the 'Sendable' protocol
15 | extension PythonInterpreter {
16 |
17 | internal struct PreloadedPythonSymbols {
| `- note: consider making struct 'PreloadedPythonSymbols' conform to the 'Sendable' protocol
18 | let Py_DecRef: (@convention(c) (UnsafeMutableRawPointer) -> Void)
19 | let Py_IncRef: (@convention(c) (UnsafeMutableRawPointer) -> Void)
[449/452] Compiling Swift2Python PythonObject.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter.swift:31:35: error: non-sendable result type 'PythonInterpreter.PreloadedPythonSymbols' cannot be sent from nonisolated context in call to static method 'loadAllSymbols(using:_:)'
29 |
30 | logger.trace("Preload all Python C API symbols.")
31 | self.api = try await Self.loadAllSymbols(using: runtime, logger)
| `- error: non-sendable result type 'PythonInterpreter.PreloadedPythonSymbols' cannot be sent from nonisolated context in call to static method 'loadAllSymbols(using:_:)'
32 |
33 | // Defaults for some global helpers. Setting them to false works because
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+PythonAPI.swift:17:21: note: consider making struct 'PreloadedPythonSymbols' conform to the 'Sendable' protocol
15 | extension PythonInterpreter {
16 |
17 | internal struct PreloadedPythonSymbols {
| `- note: consider making struct 'PreloadedPythonSymbols' conform to the 'Sendable' protocol
18 | let Py_DecRef: (@convention(c) (UnsafeMutableRawPointer) -> Void)
19 | let Py_IncRef: (@convention(c) (UnsafeMutableRawPointer) -> Void)
[450/452] Compiling Swift2Python PythonInterpreter+Compare.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:38:68: error: sending 'dictPtr' risks causing data races
36 | let keyPtr = try requirePythonPointer(forObject: keyObj)
37 | let valuePtr = try requirePythonPointer(forObject: valueObj)
38 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
39 | }
40 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:68:68: error: sending 'dictPtr' risks causing data races
66 | let keyPtr = try requirePythonPointer(forObject: keyObj)
67 | let valuePtr = try requirePythonPointer(forObject: valueObj)
68 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
69 | }
70 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:99:68: error: sending 'dictPtr' risks causing data races
97 | let keyPtr = try requirePythonPointer(forObject: keyObj)
98 | let valuePtr = try requirePythonPointer(forObject: valueObj)
99 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
100 | }
101 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:128:68: error: sending 'dictPtr' risks causing data races
126 | let keyPtr = try requirePythonPointer(forObject: keyObj)
127 | let valuePtr = try requirePythonPointer(forObject: valueObj)
128 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
129 | }
130 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:147:68: error: sending 'dictPtr' risks causing data races
145 | let keyPtr = try requirePythonPointer(forObject: keyObj)
146 | let valuePtr = try requirePythonPointer(forObject: valueObj)
147 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
148 | }
149 | return newPythonObject(fromReturnedPointer: dictPtr)
[451/452] Compiling Swift2Python PythonInterpreter+Convert.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:38:68: error: sending 'dictPtr' risks causing data races
36 | let keyPtr = try requirePythonPointer(forObject: keyObj)
37 | let valuePtr = try requirePythonPointer(forObject: valueObj)
38 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
39 | }
40 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:68:68: error: sending 'dictPtr' risks causing data races
66 | let keyPtr = try requirePythonPointer(forObject: keyObj)
67 | let valuePtr = try requirePythonPointer(forObject: valueObj)
68 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
69 | }
70 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:99:68: error: sending 'dictPtr' risks causing data races
97 | let keyPtr = try requirePythonPointer(forObject: keyObj)
98 | let valuePtr = try requirePythonPointer(forObject: valueObj)
99 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
100 | }
101 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:128:68: error: sending 'dictPtr' risks causing data races
126 | let keyPtr = try requirePythonPointer(forObject: keyObj)
127 | let valuePtr = try requirePythonPointer(forObject: valueObj)
128 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
129 | }
130 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:147:68: error: sending 'dictPtr' risks causing data races
145 | let keyPtr = try requirePythonPointer(forObject: keyObj)
146 | let valuePtr = try requirePythonPointer(forObject: valueObj)
147 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
148 | }
149 | return newPythonObject(fromReturnedPointer: dictPtr)
[452/452] Compiling Swift2Python PythonInterpreter+Dictionary.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:38:68: error: sending 'dictPtr' risks causing data races
36 | let keyPtr = try requirePythonPointer(forObject: keyObj)
37 | let valuePtr = try requirePythonPointer(forObject: valueObj)
38 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
39 | }
40 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:68:68: error: sending 'dictPtr' risks causing data races
66 | let keyPtr = try requirePythonPointer(forObject: keyObj)
67 | let valuePtr = try requirePythonPointer(forObject: valueObj)
68 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
69 | }
70 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:99:68: error: sending 'dictPtr' risks causing data races
97 | let keyPtr = try requirePythonPointer(forObject: keyObj)
98 | let valuePtr = try requirePythonPointer(forObject: valueObj)
99 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
100 | }
101 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:128:68: error: sending 'dictPtr' risks causing data races
126 | let keyPtr = try requirePythonPointer(forObject: keyObj)
127 | let valuePtr = try requirePythonPointer(forObject: valueObj)
128 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
129 | }
130 | return newPythonObject(fromReturnedPointer: dictPtr)
/Users/admin/builder/spi-builder-workspace/Sources/Swift2Python/PythonInterpreter+Dictionary.swift:147:68: error: sending 'dictPtr' risks causing data races
145 | let keyPtr = try requirePythonPointer(forObject: keyObj)
146 | let valuePtr = try requirePythonPointer(forObject: valueObj)
147 | _ = try await withGIL { try setValue(valuePtr, onDict: dictPtr, atKey: keyPtr, orElse: { try throwPythonError() }) }
| | |- error: sending 'dictPtr' risks causing data races
| | `- note: 'self'-isolated 'dictPtr' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
| `- note: access can happen concurrently
148 | }
149 | return newPythonObject(fromReturnedPointer: dictPtr)
BUILD FAILURE 6.1 macosSpm