You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed, I have not looked into making this work on python 3. As python 3 does only absolute import, level should default to 0 indeed. Care to make a patch ?
__import__
in python 3 has a default oflevel=0
, and -1 is no longer accepted (https://docs.python.org/3/library/functions.html#__import__)So using this with python 3, you get
Not sure if just changing level to 0 in https://github.com/cournape/import-profiler/blob/master/import_profiler.py#L139 is the correct solution, but at least it seems to work locally by making that small patch.
The text was updated successfully, but these errors were encountered: