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
The text was updated successfully, but these errors were encountered:
RenaudLN
changed the title
BUG: lazy_loader imports all lazy-loaded packages when trying to lazy-load an inexistent package
BUG: lazy_loader imports all lazy-loaded packages when trying to lazy-load a missing package
Aug 22, 2024
Note, this can be avoided by specifying the error_on_import=True argument to lazy_loader.load, but it does seems unnecessary that pandas is crawled when not_found is not a subpackage of pandas.
It looks like the problem is that inspect.stack()[1] causes the lazy modules to be accessed. I'm not sure exactly why, but figuring out the answer to that question is how progress can be made on this issue.
MRE:
lazy_loader.load
lazy_loader.load
Good behaviour: lazy-loading an existing package
Bad behaviour: lazy-load an existing then a missing package
The text was updated successfully, but these errors were encountered: