Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign uppdoc fails to run if any module uses zipimporter #7
Comments
BurntSushi
closed this
in
1cef8e2
May 10, 2014
This comment has been minimized.
This comment has been minimized.
|
Nice find. I've put a bandaide on it with your suggestion for the time being. I've pushed out a new release of
It looks like this is only available in Python 3. I've added #9 for this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mstetson commentedApr 29, 2014
This is what I get trying to run pdoc –http on Mac OS X Lion:
This is caused by quick_desc assuming the importer has a path attribute. The zipimporter doesn't. The function should be rewritten to use get_source() (see importlib.abc.InspectLoader). As a temporary workaround, I changed the quick_desc function to start like this:
That won't get a description for zipped modules, but at least they don't halt the program altogether.