Skip to content

python2 imp.find_module cannot find .egg packages #20781

@ailzhang

Description

@ailzhang

This is fixed in python3 import logic following PEP0302 but in python2 relies on imp.find_module to find dependencies. This affects torch.hub.
We will have to work around it using https://stackoverflow.com/questions/28962344/imp-find-module-which-supports-zipped-eggs?lq=1.
I will send a fix.

Metadata

Metadata

Assignees

Labels

module: hubtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions