mirror of
https://github.com/clearml/clearml
synced 2025-02-07 21:33:25 +00:00
Fix broken packages on package importlib detection failed the entire requirements detection
This commit is contained in:
parent
29a5df407f
commit
fef2ddb43a
@ -309,6 +309,9 @@ def is_std_or_local_lib(name):
|
||||
module_info = importlib.util.find_spec(name) # noqa
|
||||
except ImportError:
|
||||
exist = False
|
||||
except ValueError:
|
||||
# if we got here, the loader failed on us, meaning this is definitely a module and not std
|
||||
return False
|
||||
mpath = module_info.origin if module_info else None
|
||||
|
||||
if exist and mpath is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user