New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to import modules/classes from other pacakges #74
Comments
Few other people having similar issue, I tried putting all = [] into init.py to make the modules public... did'nt solve the issue |
Please provide code that reproduces the issue. If I can't reproduce it, then I don't know how to fix it. |
Reproduction: https://github.com/devoxel/repro-pdoc-behaviour |
My colleague found a workaround. Import the file from a file and run See the most recent commit here: |
Sorry to bump this issue, but the fix mentioned in the stack overflow question is horrible. I think I may have found the solution in this issue: #83 |
The recommended way to document packages is to make them installable and the specify the module. In other words, don't specify |
My package structure looks like below,
test1.py imports module1.RestAPI class from /lib package
I was trying to generate pdoc documentation for test1.py, command I am using below,
pdoc --html --all-submodules --overwrite test1.py
I am getting this error below,
Anyone else facing this issue, is there a work-around or is it needs to be fixed in the code?
Thank you
The text was updated successfully, but these errors were encountered: