-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
ImportError: cannot import name ABC #4059
Comments
Although ABC and abstract classes are defined in 2.7 documentation, and are present in /usr/lib/python2.7, you must force sphinx to use python 3.x Unfortunately I have not found an elegant method to do so, but my method descibed below solves the problem:
or
(in contrast to
(maybe someone has a better idea to force sphinx to use python 3.x?) |
sorry for late response.
Please install sphinx with Thanks, |
Subject: sphinx has trouble importing Python Standard Library component abc
Problem
make html
command, I encounter an error. I have a python projct, that uses abstract classes and therefore I'm using the standard library module abc.Sphinx has no problem importing any other standard library component like os or pickle, that are in the same directory
/usr/lib/python[version]
with [version] being 2.7, 3.5 or any other python version installed.Procedure to reproduce the problem
Minimal example:
Error logs / results
Environment info
The text was updated successfully, but these errors were encountered: