We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fee761 commit d5ba1b3Copy full SHA for d5ba1b3
PythonKit/PythonLibrary.swift
@@ -205,6 +205,13 @@ extension PythonLibrary {
205
// Must be RTLD_GLOBAL because subsequent .so files from the imported python
206
// modules may depend on this .so file.
207
let pythonLibraryHandle = dlopen(path, RTLD_LAZY | RTLD_GLOBAL)
208
+ if pythonLibraryHandle == nil {
209
+ self.log("Failed to load library at '\(path)'.")
210
+ if let errorCString = dlerror() {
211
+ let errorString = String(cString: errorCString)
212
+ self.log("Reason for failure: \(errorString)")
213
+ }
214
215
#endif
216
217
if pythonLibraryHandle != nil {
0 commit comments