If using any of the open_view or load APIs to load a file via CLI and you use a bad path, the error is incredibly unhelpful:
>>> import binaryninja
>>> bv = binaryninja.load('/bogus')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Applications/Binary Ninja-dev.app/Contents/Resources/python/binaryninja/__init__.py", line 335, in load
raise Exception("Unable to create new BinaryView")
Exception: Unable to create new BinaryView
If using any of the open_view or load APIs to load a file via CLI and you use a bad path, the error is incredibly unhelpful: