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

TabError: inconsistent use of tabs and spaces in indentation #1

Open
smarbos opened this issue Jan 7, 2018 · 2 comments
Open

TabError: inconsistent use of tabs and spaces in indentation #1

smarbos opened this issue Jan 7, 2018 · 2 comments

Comments

@smarbos
Copy link

smarbos commented Jan 7, 2018

I run $ python3 image.py
Im using Python 3.5.3 and has the ILI9225 connected to my raspberrypi 3 model B
and I get this error:
Traceback (most recent call last):
File "image.py", line 23, in
import BHack_ILI9225 as TFT
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 664, in _load_unlocked
File "", line 634, in _load_backward_compatible
File "/usr/local/lib/python3.5/dist-packages/BHack_ILI9225-1.0.0-py3.5.egg/BHack_ILI9225/init.py", line 21, in
File "", line 969, in _find_and_load
File "", line 954, in _find_and_load_unlocked
File "", line 896, in _find_spec
File "", line 1147, in find_spec
File "", line 1123, in _get_spec
File "", line 1104, in _legacy_get_spec
File "", line 444, in spec_from_loader
File "", line 541, in spec_from_file_location
File "/usr/local/lib/python3.5/dist-packages/BHack_ILI9225-1.0.0-py3.5.egg/BHack_ILI9225/ILI9225.py", line 275
self.command(ILI9225_HORIZONTAL_WINDOW_ADDR1).data(x1);
^
TabError: inconsistent use of tabs and spaces in indentation

Let me know if I can give you any more information to reproduce or debug.

Thanks!

@koosthoe
Copy link

i am having the same issue. Found any fixes?

@Skiepp
Copy link

Skiepp commented Mar 21, 2020

Guys, just run:
sed -i 's/\t/ /g' BHack_ILI9225/ILI9225.py

(NOTE: insert 8 spaces between \t/ and /g)

and then run setup.py

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

3 participants