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 b034fff commit 0ac90baCopy full SHA for 0ac90ba
src/torchcodec/_internally_replaced_utils.py
@@ -32,7 +32,10 @@ def _get_extension_path(lib_name: str) -> str:
32
)
33
ext_specs = extfinder.find_spec(lib_name)
34
if ext_specs is None:
35
- raise ImportError
+ raise ImportError(f"No spec found for {lib_name}")
36
+
37
+ if ext_specs.origin is None:
38
+ raise ImportError(f"Existing spec found for {lib_name} does not have an origin")
39
40
return ext_specs.origin
41
0 commit comments