svx / sphinxcontrib-osexample

This Sphinx extension is intended to display package manager examples next to each other
11 stars 3 forks source link

Inconsistent tabs and spaces breaks Sphinx on Python 3 #7

Open CJxD opened 6 years ago

CJxD commented 6 years ago
| Running Sphinx v1.7.4

Exception occurred:
  File "/usr/local/lib/python3.6/site-packages/sphinx/registry.py", line 315, in load_extension
    mod = __import__(extname, None, None, ['setup'])
  File "/usr/local/lib/python3.6/site-packages/sphinxcontrib/osexample.py", line 136
    get_lexer_by_name('ubuntu')
                              ^
TabError: inconsistent use of tabs and spaces in indentation

A patch is available in pull request #6

ABartzGit commented 6 years ago

Just installed Sphinx and some extensions today, and I am hitting this issue:

Exception occurred:
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sphinx/registry.py", line 472, in load_extension
    mod = __import__(extname, None, None, ['setup'])
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sphinxcontrib/osexample.py", line 136
    get_lexer_by_name('ubuntu')
                              ^
TabError: inconsistent use of tabs and spaces in indentation

Update I was able to "fix" this issue locally by copying the osexample.py file from this repo and putting that in my /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sphinxcontrib/ folder.

mattsuid commented 3 years ago

Hey I noticed that this issue has been fixed here in the repo but an updated version hasn't been pushed to pypi which is breaking for any pip installs.

sphinxcontrib-osexample

lSabrinel commented 1 year ago

Hello, I used sphinx 7.2.6 / Python 3.9.0 and I added the extension sphinxcontrib-osexample (0.1.1). I experienced the same issue.

lSabrinel commented 1 year ago

Hey I noticed that this issue has been fixed here in the repo but an updated version hasn't been pushed to pypi which is breaking for any pip installs.

sphinxcontrib-osexample

Exactly!

geyang commented 7 months ago

would be good to find a more attentive contributor to take care of the loose ends.

zykron1 commented 3 months ago

I know I'm a little late, but it still aint on pypi yet... Who has the PyPI token?