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

Got an IndentationError #1

Open
isnolan opened this issue Sep 26, 2014 · 1 comment
Open

Got an IndentationError #1

isnolan opened this issue Sep 26, 2014 · 1 comment

Comments

@isnolan
Copy link

isnolan commented Sep 26, 2014

root@JH-3-7:/opt/ossync# python ossync.py
Traceback (most recent call last):
  File "ossync.py", line 27, in <module>
    from sync_thread import SyncThread
  File "/opt/ossync/sync_thread.py", line 56
    file_size =  os.path.getsize(filename)
                                         ^
IndentationError: unindent does not match any outer indentation level

how to solve it ?

@sggggy
Copy link

sggggy commented Jul 14, 2016

相同的问题,解决方法:
文件用notepad++之类的编辑器打开,显示所有符号,56开始的几行缩进全部用tab制表符重写,之前错误的是因为使用了空格缩进。

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

2 participants