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 upsubmodule not showing #57
Comments
This comment has been minimized.
This comment has been minimized.
|
First, please do consult the docs. The first section describes how Second, the directory structure is largely irrelevant. Third, your directory structure has no Fourth, as per the docs, the items that |
This comment has been minimized.
This comment has been minimized.
|
Sure. It actually has an init.py file, but I forgot to include it. It's baffling because there's really no difference between file_a and file_b structurally. I'll debug it for more info. |
This comment has been minimized.
This comment has been minimized.
|
Presumably |
This comment has been minimized.
This comment has been minimized.
|
Found the problem. In particular, import sys from colorama import init init(strip=not sys.stdout.isatty()) fails. Going forward, it would be nice to have a log that would write down errors that are raised. |
This comment has been minimized.
This comment has been minimized.
|
Yes, I agree a log would be nice. By default, it's hidden because it's amazing how much garbage modules spit out when they're imported: https://github.com/BurntSushi/pdoc/blob/master/pdoc/__init__.py#L368 (And yes, some even block on |
hyukim17
closed this
Jul 14, 2015
This comment has been minimized.
This comment has been minimized.
|
As it stands, it seems that monkey-patching the source to capture stdout and stderr on a case-by-case basis is the best way to debug import errors. |
hyukim17 commentedJul 14, 2015
I have a directory structure
folder_a
-- folder_b/
---- file_a.py
---- file_b.py
The page for folder_b shows only file_a as a sub module. Any ideas why this may be the case? Everything imports correctly, as I checked in a terminal.