Skip to content
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

Error: 'libtk8.6.so: cannot open shared object file: No such file or directory' when building documentation from files which contain tkinter #41

Open
panos23kar opened this issue Feb 2, 2022 · 1 comment

Comments

@panos23kar
Copy link

panos23kar commented Feb 2, 2022

I get the warning:

WARNING: autodoc: failed to import module 'xxxxx' from module 'src.xxxx'; the following exception was raised:
libtk8.6.so: cannot open shared object file: No such file or directory link

I try to generate documentation from docstrings using the extensions = ['sphinx.ext.autodoc',] in the conf.py
These modules import tkinter which seems to trigger the above mentioned warnings.

It does not raise an error but the documetantion is not built in index.rst

People say: All you need to do is to install the tkinter package
I have tried to do so both for the requirements.txt and sudo apt-get install tk

@panos23kar panos23kar changed the title Error: 'libtk8.6.so: cannot open shared object file: No such file or directory' when building documentation from files whicj contain tkinter Error: 'libtk8.6.so: cannot open shared object file: No such file or directory' when building documentation from files which contain tkinter Feb 2, 2022
@panos23kar
Copy link
Author

panos23kar commented Feb 2, 2022

autodoc_mock_imports was proper workaround in my case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant