-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Closed
Labels
triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
🐛 Bug
Importing os.path causes PackageImporter to throw this error:
File "/home/lillianjohnson/local/pytorch/torch/package/package_importer.py", line 377, in _find_and_load
return self._do_find_and_load(name)
File "/home/lillianjohnson/local/pytorch/torch/package/package_importer.py", line 365, in _do_find_and_load
raise ModuleNotFoundError(msg, name=name) from None
ModuleNotFoundError: No module named 'os.path'; 'os' is not a package
To Reproduce
Add this line to a module that is being imported, and then try to package an object that is dependent on the module:
import os.path
Metadata
Metadata
Assignees
Labels
triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module