When the C-level call to dlopen fails, cffi should give more information than just "oups, cannot". (See where ctypes gets this information.)
I think the message should be improved. For example, when the library has the wrong architecture cffi reports: OSError: library not found:. ctypes gives a much better error message in this case: mach-o, but wrong architecture
OSError: library not found:
mach-o, but wrong architecture
@hernan: Did you try the officially released 0.6, or trunk? The fix described here has been done after 0.6 was released.
This bug report is already closed as "resolved". Please mention here if in trunk ffi.dlopen() is still too vague.
I am using 0.6. I will try the trunk and report back. thanks