IndentationError: expected an indented block

Users who are viewing this thread

zidozido

Regular
Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\process_operations.py", line 14, in <module>
    from module_troops import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\module_troops.py", line 2961
    component_name = "troops"
                ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_global_variables.py", line 12, in <module>
    from process_operations import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\process_operations.py", line 14, in <module>
    from module_troops import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\module_troops.py", line 2961
    component_name = "troops"
                ^
IndentationError: expected an indented block
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 6, in <module>
    from process_operations import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\process_operations.py", line 14, in <module>
    from module_troops import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\module_troops.py", line 2961
    component_name = "troops"
                ^
IndentationError: expected an indented block
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 66, in <module>
    from process_operations import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\process_operations.py", line 14, in <module>
    from module_troops import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\module_troops.py", line 2961
    component_name = "troops"
                ^
IndentationError: expected an indented block
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\process_operations.py", line 14, in <module>
    from module_troops import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\module_troops.py", line 2961
    component_name = "troops"
                ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_troops.py", line 4, in <module>
    from module_troops import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\module_troops.py", line 2961
    component_name = "troops"
                ^
IndentationError: expected an indented block
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\process_operations.py", line 14, in <module>
    from module_troops import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\module_troops.py", line 2961
    component_name = "troops"
                ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\process_operations.py", line 14, in <module>
    from module_troops import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\module_troops.py", line 2961
    component_name = "troops"
                ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\process_operations.py", line 14, in <module>
    from module_troops import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\module_troops.py", line 2961
    component_name = "troops"
                ^
IndentationError: expected an indented block
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 6, in <module>
    from process_operations import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\process_operations.py", line 14, in <module>
    from module_troops import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\module_troops.py", line 2961
    component_name = "troops"
                ^
IndentationError: expected an indented block
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\process_operations.py", line 14, in <module>
    from module_troops import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\module_troops.py", line 2961
    component_name = "troops"
                ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\process_operations.py", line 14, in <module>
    from module_troops import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\module_troops.py", line 2961
    component_name = "troops"
                ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\process_operations.py", line 14, in <module>
    from module_troops import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\module_troops.py", line 2961
    component_name = "troops"
                ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\process_operations.py", line 14, in <module>
    from module_troops import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\module_troops.py", line 2961
    component_name = "troops"
                ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\process_operations.py", line 14, in <module>
    from module_troops import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\module_troops.py", line 2961
    component_name = "troops"
                ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\process_operations.py", line 14, in <module>
    from module_troops import *
  File "F:\Mount and Blade - Warband\Modules\Hispania 1200 - Copy\Hispania 1200
Enhanced source code\module_troops.py", line 2961
    component_name = "troops"
                ^
IndentationError: expected an indented block
Exporting postfx_params...

-----------------------------------

Script processing has ended.
Press any key to exit. . .






how to fix it ?
 
Putting in an extra space or leaving one out where it is needed will surely generate an error message . Some common causes of this error include:
  • Forgetting to indent the statements within a compound statement
  • Forgetting to indent the statements of a user-defined function.
The error message IndentationError: expected an indented block would seem to indicate that you have an indentation error. It is probably caused by a mix of tabs and spaces. The indentation can be any consistent white space . It is recommended to use 4 spaces for indentation in Python, tabulation or a different number of spaces may work, but it is also known to cause trouble at times. Tabs are a bad idea because they may create different amount if spacing in different editors .
 
Putting in an extra space or leaving one out where it is needed will surely generate an error message . Some common causes of this error include:
  • Forgetting to indent the statements within a compound statement
  • Forgetting to indent the statements of a user-defined function.
The error message IndentationError: expected an indented block would seem to indicate that you have an indentation error. It is probably caused by a mix of tabs and spaces. The indentation can be any consistent white space . It is recommended to use 4 spaces for indentation in Python, tabulation or a different number of spaces may work, but it is also known to cause trouble at times. Tabs are a bad idea because they may create different amount if spacing in different editors .
You really needed to respond now in a thread which is not active since over two years now?
 
Back
Top Bottom