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 upNot understanding pdoc import behavior #65
Comments
This comment has been minimized.
This comment has been minimized.
|
I don't know. There really isn't enough information for me to go on. You'll need to do some debugging as to why your modules aren't visible. e.g., What happens when you run FYI, I don't know Django. |
This comment has been minimized.
This comment has been minimized.
|
It basically complains that the main django init script hasn't been run before trying to import its internals—which is obviously not great, but seems to be farther along than running |
This comment has been minimized.
This comment has been minimized.
Can you please show the full output?
|
This comment has been minimized.
This comment has been minimized.
|
Hm - sorry, not really. It's a little too much commercial code and redacting all the names would make it a bit useless. But it's ok because that's a red herring. It hits a line that requires you to manually export an environment variable called
Meanwhile, pdoc exhibits the same behavior:
|
This comment has been minimized.
This comment has been minimized.
|
I'm not sure. |
This comment has been minimized.
This comment has been minimized.
|
Yeah, I wondered about that too - unfortunately you can see in the traceback that the version of pdoc being invoked is indeed in the virtualenv with everything else. And in the |
subsetpark commentedAug 31, 2015
Here's a series of pdoc commands in a Django app that puzzle me:
I have an
__all__defined in finance.models.init.py, not that it ever gets there. First it tries to import the models in the first submodule, and fails. I am currently in the correct virtualenvironment; this is my normal development environment and I'm able to run the app, tests, and so on. What am I misunderstanding about how to structure things for pdoc?