How to fix "Python not recognized..." (now also for Windows 7)

Users who are viewing this thread

Ok so many users encountered this problem while trying to build the module in the module system, and I couldn't find any thread showing how to fix this problem in Windows 7, like I had...So...first you are going to open the Start button and click on the "Control Panel" option like here :

startj.png

Then click on "System and Security" :

systemsecurity.png

Now click on "System"

systemuq.png

And click on "Advanced system settings"

advancement.png

..."Environment variables"

enviroment.png

and then...

xddc.png

If I missed something please contact a moderator to edit my post.
If you still miss something here is a video :
http://www.youtube.com/watch?v=jKNW5AGOMCQ&hd=1
 
This is ALTERNATIVE to the above (doesn't work together), which don't need to change path and stuff.

Prerequisites:
a) You must have installed python 2.6 or 2.7 (but NOT python 3.*)
b) You must have the proper module system and the game
c) You must be able to workaround the windows UAC mess, or disable that thing totally
d) You must have basic ability of reading and comprehension to understand the following instructions coz I'm not as nice a guy as SeRgYu who gives step-by-step screen shots for dummies.

Assuming that you did not mess up python's association of ".py" files to python.exe after installation (e.g. like trying to make some text editor open .py file when you double click on it), which just means that when you doubleclick on a .py file, it SHOULD execute the file instead of opening it up in some editor.  If it opens up in some editor, YOU MESSED IT UP.

If you DID mess up, re-associate .py files with python.exe:
1) shift-right click on a .py file,
2) select "Choose default program...",
3) find and select python.exe (if it is not listed, use "Browse..." to locate it) and make sure the checkbox "always open with selected program" is on.

(If you cannot follow the above instructions, you can uninstall and reinstall python and THIS TIME, DON'T associate python with some text editor)

If you survived to this point, and done everything as instructed, from now on, you don't need to include the "python " when you want to execute .py files.

Back up, then edit build_module.bat in the module system directory:
DELETE all those part in red.
@echo off
python process_init.py
python process_global_variables.py
python process_strings.py
python process_skills.py
python process_music.py
python process_animations.py
python process_meshes.py
python process_sounds.py
python process_skins.py
python process_map_icons.py
python process_factions.py
python process_items.py
python process_scenes.py
python process_troops.py
python process_particle_sys.py
python process_scene_props.py
python process_tableau_materials.py
python process_presentations.py
python process_party_tmps.py
python process_parties.py
python process_quests.py
python process_info_pages.py
python process_scripts.py
python process_mission_tmps.py
python process_game_menus.py
python process_simple_triggers.py
python process_dialogs.py
python process_global_variables_unused.py
python process_postfx.py
@del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul


@echo off
process_init.py
process_global_variables.py
process_strings.py
process_skills.py
process_music.py
process_animations.py
process_meshes.py
process_sounds.py
process_skins.py
process_map_icons.py
process_factions.py
process_items.py
process_scenes.py
process_troops.py
process_particle_sys.py
process_scene_props.py
process_tableau_materials.py
process_presentations.py
process_party_tmps.py
process_parties.py
process_quests.py
process_info_pages.py
process_scripts.py
process_mission_tmps.py
process_game_menus.py
process_simple_triggers.py
process_dialogs.py
process_global_variables_unused.py
process_postfx.py

@del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul
Changed lines in green.

Now double click on build_module.bat to build.

Notes:
If you are using command prompt, you can execute .py files directly by typing the file name and then press enter.  There is no need to put in the "python " in front which will just give you errors unless you do all the pathing thing SeRgYu has outlined.
 
sphere said:
[

OK I'm going to try to list down my steps (no path messing) again in as simple terms as possible

[list type=decimal]
[*]Download and install python 2.7 (see earlier post for links).  If you aren't sure whether you mess up your python installation, uninstall and reinstall.  DON'T associate .py files with any text editor e.g. when you try to edit it by double clicking it. DON'T.
[*]Dowload (if you haven't) and unzip the module system (mb_warband_module_system_1127.zip).  It should sit in a directory called (Module_system 1.127).
[*]Make a copy of Native (or whatever mod you are planning to change) in the Module folder of your MnB installation (e.g. C:\games\Mount&Blade Warband\Modules).  Let's assume it's called "Native_Custom"
[*]Move the "Module_system 1.127" folder into "Native_Custom
[*]Now go to the moved "Module_system 1.127" directory and copy "build_module.bat" to "my_build_module.bat" (optional, just to back up original file)
[*]open the "my_build_module.bat" in editor(right click on the file in explorer and choose "edit").
[*]delete all the "python " (note the space) for all lines starting with it.  E.g. instead of "python process_init.py", the resultant line will become just "process_init.py", then save the file and exit editor
[*]Now open module_info.py in editor (DON'T double click on the py file, open Notepad first then use File->Open to open the file manually if you don't have any shell shortcuts).  Change the line "export_dir=????" to "export_dir="../" , save the file and exit the editor
[*]Now double click on your new "my_build_module.bat" in explorer
[/list]

You should be able to see some "Initializing..." etc, which shows that the module python scripts are being executed.
Congratulations, you've got your modules system working... (I hope)

ok so i did all of these steps one by one and this is the problem i get
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_skills.py", line 15, in save_skills
    ofile = open(export_dir + "skills.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/skills.txt'
Exporting tracks...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_music.py", line 23, in <module>
    save_tracks()
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_music.py", line 15, in save_tracks
    file = open(export_dir + "music.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/music.txt'
Exporting animations...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_animations.py", line 61, in <module>
    write_actions(animations,len(action_codes),action_codes,"actions.txt")
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_animations.py", line 24, in write_actions
    file = open(export_dir + file_name,"w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/actions.txt'
Exporting meshes...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_meshes.py", line 25, in <module>
    save_meshes()
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_meshes.py", line 9, in save_meshes
    ofile = open(export_dir + "meshes.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/meshes.txt'
Exporting sounds...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_sounds.py", line 51, in <module>
    write_sounds(sound_samples, sounds)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_sounds.py", line 13, in write_sounds
    ofile = open(export_dir + "sounds.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/sounds.txt'
Exporting skins...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_skins.py", line 105, in <module>
    export_skins(skins)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_skins.py", line 45, in export_skins
    ofile = open(export_dir + "skins.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/skins.txt'
Exporting map icons...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_map_icons.py", line 38, in <module>
    save_map_icons(variables,variable_uses,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_map_icons.py", line 9, in save_map_icons
    ofile = open(export_dir + "map_icons.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/map_icons.txt'
Exporting faction data...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_factions.py", line 70, in <module>
    save_factions(relations)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_factions.py", line 34, in save_factions
    file = open(export_dir + "factions.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/factions.txt'
Exporting item data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_items.py", line 72, in <module>
    write_items(variables,variable_uses,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_items.py", line 19, in write_items
    ofile = open(itemkinds_file_name,"w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/item_kinds1.txt'
Exporting scene data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scenes.py", line 77, in <module>
    save_scenes(variables,variable_uses,tag_uses)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scenes.py", line 46, in save_scenes
    ofile = open(export_dir + "scenes.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/scenes.txt'
Exporting troops data
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_troops.py", line 107, in <module>
    save_troops()
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_troops.py", line 13, in save_troops
    file = open(export_dir + "troops.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/troops.txt'
Exporting particle data...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_particle_sys.py", line 61, in <module>
    save_particle_systems()
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_particle_sys.py", line 29, in save_particle_systems
    ofile = open(export_dir + "particle_systems.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/particle_systems.txt'
Exporting scene props...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scene_props.py", line 32, in <module>
    save_scene_props(variables,variable_uses,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scene_props.py", line 10, in save_scene_props
    ofile = open(export_dir + "scene_props.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/scene_props.txt'
Exporting tableau materials data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_tableau_materials.py", line 31, in <module>
    save_tableau_materials(variables,variable_uses,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_tableau_materials.py", line 11, in save_tableau_materials
    ofile = open(export_dir + "tableau_materials.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/tableau_materials.txt'
Exporting presentations...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_presentations.py", line 33, in <module>
    save_presentations(variables,variable_uses,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_presentations.py", line 11, in save_presentations
    ofile = open(export_dir + "presentations.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/presentations.txt'
Exporting party_template data...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_party_tmps.py", line 46, in <module>
    save_party_templates()
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_party_tmps.py", line 20, in save_party_templates
    file = open(export_dir + "party_templates.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/party_templates.txt'
Exporting parties
Creating new tag_uses.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_parties.py", line 69, in <module>
    save_parties(parties)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_parties.py", line 12, in save_parties
    file = open(export_dir + "parties.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/parties.txt'
Exporting quest data...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_quests.py", line 30, in <module>
    save_quests()
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_quests.py", line 9, in save_quests
    ofile = open(export_dir + "quests.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/quests.txt'
Exporting info_page data...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_info_pages.py", line 26, in <module>
    save_info_pages()
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_info_pages.py", line 9, in save_info_pages
    ofile = open(export_dir + "info_pages.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/info_pages.txt'
Exporting scripts...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scripts.py", line 40, in <module>
    save_scripts(variables,variable_uses,scripts,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scripts.py", line 10, in save_scripts
    file = open(export_dir + "scripts.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/scripts.txt'
Exporting mission_template data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_mission_tmps.py", line 64, in <module>
    save_mission_templates(variables,variable_uses,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_mission_tmps.py", line 38, in save_mission_templates
    file = open(export_dir + "mission_templates.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/mission_templates.txt'
Exporting game menus data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_game_menus.py", line 47, in <module>
    save_game_menus(variables,variable_uses,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_game_menus.py", line 22, in save_game_menus
    ofile = open(export_dir + "menus.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/menus.txt'
exporting simple triggers...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_simple_triggers.py", line 24, in <module>
    save_simple_triggers(variables,variable_uses,simple_triggers,tag_uses,quick_
strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_simple_triggers.py", line 8, in save_simple_triggers
    file = open(export_dir + "simple_triggers.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/simple_triggers.txt'
exporting triggers...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_dialogs.py", line 193, in <module>
    save_triggers(variables,variable_uses,triggers,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_dialogs.py", line 47, in save_triggers
    file = open(export_dir + "triggers.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/triggers.txt'
Checking global variable usages...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Exporting postfx_params...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_postfx.py", line 27, in <module>
    write_postfx_params(postfx_params)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_postfx.py", line 13, in write_postfx_params
    ofile = open(export_dir + "postfx.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/postfx.txt'

______________________________

Script processing has ended.
Press any key to exit. . .
 
i think it had to do with my W&B was in Programs (x86) file i moved it to just programs and now it worked


when i had changed the infor in the module_info.py file i had put programs (x86) as the directory but some reason it didnt work

however like i said i moved the W&B file to just programs and now it works
 
Jai said:
i think it had to do with my W&B was in Programs (x86) file i moved it to just programs and now it worked


when i had changed the infor in the module_info.py file i had put programs (x86) as the directory but some reason it didnt work

however like i said i moved the W&B file to just programs and now it works

iirc, newer windows have some messy UAC stuff that disallows writes into program files directories.  It COULD be this problem.  I simply install the whole game elsewhere outside program files and never had problems.
 
Yeah, seems I'm back here again.

My problem is I cannot for the life of me get build_module.bat to do its thing.
I've been using Python quite a bit, so I'm sure it's not the variables thing. I've used Python regularly, last time about a week ago (but I'm a novice at it, only use it for M&B module editing).
I can't think of any changes I've done lately that could cause my issues.
I was using 2.6, upgraded to 2.7 but it still doesn't work.

Problem:
Running build_module.bat causes the whole screen to go black for 2-3 seconds after which it returns to the desktop. No Command prompt window appears. All Windows Explorer windows automatically closes.

I've tried start>run>cmd = same issue
I've tried start>run>command = I now get the MS-DOS promt window, but when trying to run build_module.bat, it throws the whole Python not recognized routine at me.

Anyone want to have a go at this one?  :wink:
Thanks!
 
Jai said:
ok so i did all of these steps one by one and this is the problem i get
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_skills.py", line 15, in save_skills
    ofile = open(export_dir + "skills.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/skills.txt'
Exporting tracks...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_music.py", line 23, in <module>
    save_tracks()
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_music.py", line 15, in save_tracks
    file = open(export_dir + "music.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/music.txt'
Exporting animations...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_animations.py", line 61, in <module>
    write_actions(animations,len(action_codes),action_codes,"actions.txt")
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_animations.py", line 24, in write_actions
    file = open(export_dir + file_name,"w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/actions.txt'
Exporting meshes...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_meshes.py", line 25, in <module>
    save_meshes()
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_meshes.py", line 9, in save_meshes
    ofile = open(export_dir + "meshes.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/meshes.txt'
Exporting sounds...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_sounds.py", line 51, in <module>
    write_sounds(sound_samples, sounds)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_sounds.py", line 13, in write_sounds
    ofile = open(export_dir + "sounds.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/sounds.txt'
Exporting skins...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_skins.py", line 105, in <module>
    export_skins(skins)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_skins.py", line 45, in export_skins
    ofile = open(export_dir + "skins.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/skins.txt'
Exporting map icons...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_map_icons.py", line 38, in <module>
    save_map_icons(variables,variable_uses,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_map_icons.py", line 9, in save_map_icons
    ofile = open(export_dir + "map_icons.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/map_icons.txt'
Exporting faction data...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_factions.py", line 70, in <module>
    save_factions(relations)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_factions.py", line 34, in save_factions
    file = open(export_dir + "factions.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/factions.txt'
Exporting item data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_items.py", line 72, in <module>
    write_items(variables,variable_uses,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_items.py", line 19, in write_items
    ofile = open(itemkinds_file_name,"w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/item_kinds1.txt'
Exporting scene data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scenes.py", line 77, in <module>
    save_scenes(variables,variable_uses,tag_uses)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scenes.py", line 46, in save_scenes
    ofile = open(export_dir + "scenes.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/scenes.txt'
Exporting troops data
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_troops.py", line 107, in <module>
    save_troops()
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_troops.py", line 13, in save_troops
    file = open(export_dir + "troops.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/troops.txt'
Exporting particle data...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_particle_sys.py", line 61, in <module>
    save_particle_systems()
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_particle_sys.py", line 29, in save_particle_systems
    ofile = open(export_dir + "particle_systems.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/particle_systems.txt'
Exporting scene props...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scene_props.py", line 32, in <module>
    save_scene_props(variables,variable_uses,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scene_props.py", line 10, in save_scene_props
    ofile = open(export_dir + "scene_props.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/scene_props.txt'
Exporting tableau materials data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_tableau_materials.py", line 31, in <module>
    save_tableau_materials(variables,variable_uses,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_tableau_materials.py", line 11, in save_tableau_materials
    ofile = open(export_dir + "tableau_materials.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/tableau_materials.txt'
Exporting presentations...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_presentations.py", line 33, in <module>
    save_presentations(variables,variable_uses,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_presentations.py", line 11, in save_presentations
    ofile = open(export_dir + "presentations.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/presentations.txt'
Exporting party_template data...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_party_tmps.py", line 46, in <module>
    save_party_templates()
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_party_tmps.py", line 20, in save_party_templates
    file = open(export_dir + "party_templates.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/party_templates.txt'
Exporting parties
Creating new tag_uses.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_parties.py", line 69, in <module>
    save_parties(parties)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_parties.py", line 12, in save_parties
    file = open(export_dir + "parties.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/parties.txt'
Exporting quest data...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_quests.py", line 30, in <module>
    save_quests()
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_quests.py", line 9, in save_quests
    ofile = open(export_dir + "quests.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/quests.txt'
Exporting info_page data...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_info_pages.py", line 26, in <module>
    save_info_pages()
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_info_pages.py", line 9, in save_info_pages
    ofile = open(export_dir + "info_pages.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/info_pages.txt'
Exporting scripts...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scripts.py", line 40, in <module>
    save_scripts(variables,variable_uses,scripts,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scripts.py", line 10, in save_scripts
    file = open(export_dir + "scripts.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/scripts.txt'
Exporting mission_template data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_mission_tmps.py", line 64, in <module>
    save_mission_templates(variables,variable_uses,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_mission_tmps.py", line 38, in save_mission_templates
    file = open(export_dir + "mission_templates.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/mission_templates.txt'
Exporting game menus data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_game_menus.py", line 47, in <module>
    save_game_menus(variables,variable_uses,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_game_menus.py", line 22, in save_game_menus
    ofile = open(export_dir + "menus.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/menus.txt'
exporting simple triggers...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_simple_triggers.py", line 24, in <module>
    save_simple_triggers(variables,variable_uses,simple_triggers,tag_uses,quick_
strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_simple_triggers.py", line 8, in save_simple_triggers
    file = open(export_dir + "simple_triggers.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/simple_triggers.txt'
exporting triggers...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_dialogs.py", line 193, in <module>
    save_triggers(variables,variable_uses,triggers,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_dialogs.py", line 47, in save_triggers
    file = open(export_dir + "triggers.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/triggers.txt'
Checking global variable usages...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Exporting postfx_params...
Traceback (most recent call last):
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_postfx.py", line 27, in <module>
    write_postfx_params(postfx_params)
  File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_postfx.py", line 13, in write_postfx_params
    ofile = open(export_dir + "postfx.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/postfx.txt'

______________________________

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

ok i get the same issue as this person read my post below as i got it working  :mrgreen:
 
sphere said:
OK I'm going to try to list down my steps (no path messing) again in as simple terms as possible

[list type=decimal]
[*]Download and install python 2.7 (see earlier post for links).  If you aren't sure whether you mess up your python installation, uninstall and reinstall.  DON'T associate .py files with any text editor e.g. when you try to edit it by double clicking it. DON'T.
[*]Dowload (if you haven't) and unzip the module system (mb_warband_module_system_1127.zip).  It should sit in a directory called (Module_system 1.127).
[*]Make a copy of Native (or whatever mod you are planning to change) in the Module folder of your MnB installation (e.g. C:\games\Mount&Blade Warband\Modules).  Let's assume it's called "Native_Custom"
[*]Move the "Module_system 1.127" folder into "Native_Custom
[*]Now go to the moved "Module_system 1.127" directory and copy "build_module.bat" to "my_build_module.bat" (optional, just to back up original file)
[*]open the "my_build_module.bat" in editor(right click on the file in explorer and choose "edit").
[*]delete all the "python " (note the space) for all lines starting with it.  E.g. instead of "python process_init.py", the resultant line will become just "process_init.py", then save the file and exit editor
[*]Now open module_info.py in editor (DON'T double click on the py file, open Notepad first then use File->Open to open the file manually if you don't have any shell shortcuts).  Change the line "export_dir=????" to "export_dir="../" , save the file and exit the editor
[*]Now double click on your new "my_build_module.bat" in explorer
[/list]

You should be able to see some "Initializing..." etc, which shows that the module python scripts are being executed.
Congratulations, you've got your modules system working... (I hope)

this is the green bit in the file

you should still change the other bit to the location of the mod tho
 
hi
when i download python i dont have any existing path in my enviorment variables (im using xp by the way ) plssssss help me :sad:
 
Here:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Python26
Overwrite your entire path.
If your python is not installed on C, than change that and if you got some other vers. of python than change "26" according to your version.
 
Guys,

Please! :smile: If you are having problems with setting the global variables or you have conflicts between the python versions, just use the simpliest bloody approach!!! :grin: Add paths directly to the build_module batch file:

Code:
C:\Python25\python process_init.py
C:\Python25\python process_global_variables.py
C:\Python25\python process_strings.py
C:\Python25\python process_skills.py
C:\Python25\python process_music.py
C:\Python25\python process_animations.py
C:\Python25\python process_meshes.py
C:\Python25\python process_sounds.py
C:\Python25\python process_skins.py
C:\Python25\python process_map_icons.py
C:\Python25\python process_factions.py
C:\Python25\python process_items.py
C:\Python25\python process_scenes.py
C:\Python25\python process_troops.py
C:\Python25\python process_particle_sys.py
C:\Python25\python process_scene_props.py
C:\Python25\python process_presentations.py
C:\Python25\python process_party_tmps.py
C:\Python25\python process_parties.py
C:\Python25\python process_quests.py
C:\Python25\python process_scripts.py
C:\Python25\python process_mission_tmps.py
C:\Python25\python process_game_menus.py
C:\Python25\python process_simple_triggers.py
C:\Python25\python process_dialogs.py
C:\Python25\python process_global_variables_unused.py

Batch file is usually where the *.py files are. There. Solved :smile:

Best Regards,
K.
 
I have Python 2.6 and I'm having this problem:

IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/simple_triggers.txt'

I saw another person was having the same issue, but the answer was apparently to go into the modules_ files and change the export directory, but there are no lines in these files dealing with export.  At least not in the same way.

It looks like it's dealt with in the process_ files, but I don't know what I'm supposed to do with those to get this working.
 
Trillian said:
I have Python 2.6 and I'm having this problem:

IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/simple_triggers.txt'

I saw another person was having the same issue, but the answer was apparently to go into the modules_ files and change the export directory, but there are no lines in these files dealing with export.  At least not in the same way.

It looks like it's dealt with in the process_ files, but I don't know what I'm supposed to do with those to get this working.
The export directory is set in modules_info.py
 
I keep getting Error 13  that involves permission
Initializing...
variables.txt not found. Creating new variables.txt file
Compiling all global variables...
Traceback (most recent call last):
  File "process_global_variables.py", line 106, in <module>
    save_variables(export_dir, variables,variable_uses)
  File "C:\Users\Tomßs\Desktop\Mount And Blade Modding\Module_system 1.134\proce
ss_operations.py", line 171, in save_variables
    file = open(export_dir + "variables.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/variables.txt'
Exporting strings...
Traceback (most recent call last):
  File "process_strings.py", line 26, in <module>
    save_strings(strings)
  File "process_strings.py", line 9, in save_strings
    ofile = open(export_dir + "strings.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/strings.txt'
Exporting skills...
Traceback (most recent call last):
  File "process_skills.py", line 32, in <module>
    save_skills()
  File "process_skills.py", line 15, in save_skills
    ofile = open(export_dir + "skills.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/skills.txt'
Exporting tracks...
Traceback (most recent call last):
  File "process_music.py", line 23, in <module>
    save_tracks()
  File "process_music.py", line 15, in save_tracks
    file = open(export_dir + "music.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/music.txt'
Exporting animations...
Traceback (most recent call last):
  File "process_animations.py", line 61, in <module>
    write_actions(animations,len(action_codes),action_codes,"actions.txt")
  File "process_animations.py", line 24, in write_actions
    file = open(export_dir + file_name,"w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/actions.txt'
Exporting meshes...
Traceback (most recent call last):
  File "process_meshes.py", line 25, in <module>
    save_meshes()
  File "process_meshes.py", line 9, in save_meshes
    ofile = open(export_dir + "meshes.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/meshes.txt'
Exporting sounds...
Traceback (most recent call last):
  File "process_sounds.py", line 51, in <module>
    write_sounds(sound_samples, sounds)
  File "process_sounds.py", line 13, in write_sounds
    ofile = open(export_dir + "sounds.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/sounds.txt'
Exporting skins...
Traceback (most recent call last):
  File "process_skins.py", line 105, in <module>
    export_skins(skins)
  File "process_skins.py", line 45, in export_skins
    ofile = open(export_dir + "skins.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/skins.txt'
Exporting map icons...
Traceback (most recent call last):
  File "process_map_icons.py", line 38, in <module>
    save_map_icons(variables,variable_uses,tag_uses,quick_strings)
  File "process_map_icons.py", line 9, in save_map_icons
    ofile = open(export_dir + "map_icons.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/map_icons.txt'
Exporting faction data...
Traceback (most recent call last):
  File "process_factions.py", line 70, in <module>
    save_factions(relations)
  File "process_factions.py", line 34, in save_factions
    file = open(export_dir + "factions.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/factions.txt'
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 72, in <module>
    write_items(variables,variable_uses,tag_uses,quick_strings)
  File "process_items.py", line 19, in write_items
    ofile = open(itemkinds_file_name,"w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/item_kinds1.txt'
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 77, in <module>
    save_scenes(variables,variable_uses,tag_uses)
  File "process_scenes.py", line 46, in save_scenes
    ofile = open(export_dir + "scenes.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/scenes.txt'
Exporting troops data
Traceback (most recent call last):
  File "process_troops.py", line 107, in <module>
    save_troops()
  File "process_troops.py", line 13, in save_troops
    file = open(export_dir + "troops.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/troops.txt'
Exporting particle data...
Traceback (most recent call last):
  File "process_particle_sys.py", line 61, in <module>
    save_particle_systems()
  File "process_particle_sys.py", line 29, in save_particle_systems
    ofile = open(export_dir + "particle_systems.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/particle_systems.txt'
Exporting scene props...
Traceback (most recent call last):
  File "process_scene_props.py", line 32, in <module>
    save_scene_props(variables,variable_uses,tag_uses,quick_strings)
  File "process_scene_props.py", line 10, in save_scene_props
    ofile = open(export_dir + "scene_props.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/scene_props.txt'
Exporting tableau materials data...
Traceback (most recent call last):
  File "process_tableau_materials.py", line 31, in <module>
    save_tableau_materials(variables,variable_uses,tag_uses,quick_strings)
  File "process_tableau_materials.py", line 11, in save_tableau_materials
    ofile = open(export_dir + "tableau_materials.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/tableau_materials.txt'
Exporting presentations...
Traceback (most recent call last):
  File "process_presentations.py", line 33, in <module>
    save_presentations(variables,variable_uses,tag_uses,quick_strings)
  File "process_presentations.py", line 11, in save_presentations
    ofile = open(export_dir + "presentations.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/presentations.txt'
Exporting party_template data...
Traceback (most recent call last):
  File "process_party_tmps.py", line 46, in <module>
    save_party_templates()
  File "process_party_tmps.py", line 20, in save_party_templates
    file = open(export_dir + "party_templates.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/party_templates.txt'
Exporting parties
Traceback (most recent call last):
  File "process_parties.py", line 69, in <module>
    save_parties(parties)
  File "process_parties.py", line 12, in save_parties
    file = open(export_dir + "parties.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/parties.txt'
Exporting quest data...
Traceback (most recent call last):
  File "process_quests.py", line 30, in <module>
    save_quests()
  File "process_quests.py", line 9, in save_quests
    ofile = open(export_dir + "quests.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/quests.txt'
Exporting info_page data...
Traceback (most recent call last):
  File "process_info_pages.py", line 26, in <module>
    save_info_pages()
  File "process_info_pages.py", line 9, in save_info_pages
    ofile = open(export_dir + "info_pages.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/info_pages.txt'
Exporting scripts...
Traceback (most recent call last):
  File "process_scripts.py", line 40, in <module>
    save_scripts(variables,variable_uses,scripts,tag_uses,quick_strings)
  File "process_scripts.py", line 10, in save_scripts
    file = open(export_dir + "scripts.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/scripts.txt'
Exporting mission_template data...
Traceback (most recent call last):
  File "process_mission_tmps.py", line 64, in <module>
    save_mission_templates(variables,variable_uses,tag_uses,quick_strings)
  File "process_mission_tmps.py", line 38, in save_mission_templates
    file = open(export_dir + "mission_templates.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/mission_templates.txt'
Exporting game menus data...
Traceback (most recent call last):
  File "process_game_menus.py", line 47, in <module>
    save_game_menus(variables,variable_uses,tag_uses,quick_strings)
  File "process_game_menus.py", line 22, in save_game_menus
    ofile = open(export_dir + "menus.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/menus.txt'
exporting simple triggers...
Traceback (most recent call last):
  File "process_simple_triggers.py", line 24, in <module>
    save_simple_triggers(variables,variable_uses,simple_triggers,tag_uses,quick_
strings)
  File "process_simple_triggers.py", line 8, in save_simple_triggers
    file = open(export_dir + "simple_triggers.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/simple_triggers.txt'
exporting triggers...
Traceback (most recent call last):
  File "process_dialogs.py", line 193, in <module>
    save_triggers(variables,variable_uses,triggers,tag_uses,quick_strings)
  File "process_dialogs.py", line 47, in save_triggers
    file = open(export_dir + "triggers.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/triggers.txt'
Checking global variable usages...
Exporting postfx_params...
Traceback (most recent call last):
  File "process_postfx.py", line 27, in <module>
    write_postfx_params(postfx_params)
  File "process_postfx.py", line 13, in write_postfx_params
    ofile = open(export_dir + "postfx.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade Warband/Mod
ules/ARK/postfx.txt'

______________________________

Script processing has ended.
Press any key to exit. . .
But when I run the .bat as an Administrator I get
python: can't open file 'process_init.py': [Errno 2] No such file or directory
python: can't open file 'process_global_variables.py': [Errno 2] No such file or
directory
python: can't open file 'process_strings.py': [Errno 2] No such file or director
y
python: can't open file 'process_skills.py': [Errno 2] No such file or directory

python: can't open file 'process_music.py': [Errno 2] No such file or directory
python: can't open file 'process_animations.py': [Errno 2] No such file or direc
tory
python: can't open file 'process_meshes.py': [Errno 2] No such file or directory

python: can't open file 'process_sounds.py': [Errno 2] No such file or directory

python: can't open file 'process_skins.py': [Errno 2] No such file or directory
python: can't open file 'process_map_icons.py': [Errno 2] No such file or direct
ory
python: can't open file 'process_factions.py': [Errno 2] No such file or directo
ry
python: can't open file 'process_items.py': [Errno 2] No such file or directory
python: can't open file 'process_scenes.py': [Errno 2] No such file or directory

python: can't open file 'process_troops.py': [Errno 2] No such file or directory

python: can't open file 'process_particle_sys.py': [Errno 2] No such file or dir
ectory
python: can't open file 'process_scene_props.py': [Errno 2] No such file or dire
ctory
python: can't open file 'process_tableau_materials.py': [Errno 2] No such file o
r directory
python: can't open file 'process_presentations.py': [Errno 2] No such file or di
rectory
python: can't open file 'process_party_tmps.py': [Errno 2] No such file or direc
tory
python: can't open file 'process_parties.py': [Errno 2] No such file or director
y
python: can't open file 'process_quests.py': [Errno 2] No such file or directory

python: can't open file 'process_info_pages.py': [Errno 2] No such file or direc
tory
python: can't open file 'process_scripts.py': [Errno 2] No such file or director
y
python: can't open file 'process_mission_tmps.py': [Errno 2] No such file or dir
ectory
python: can't open file 'process_game_menus.py': [Errno 2] No such file or direc
tory
python: can't open file 'process_simple_triggers.py': [Errno 2] No such file or
directory
python: can't open file 'process_dialogs.py': [Errno 2] No such file or director
y
python: can't open file 'process_global_variables_unused.py': [Errno 2] No such
file or directory
python: can't open file 'process_postfx.py': [Errno 2] No such file or directory

Could Not Find C:\windows\system32\*.pyc

______________________________

Script processing has ended.
Press any key to exit. . .
This Is my module_info File
# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)

export_dir = "C:/Program Files/Mount&Blade Warband/Modules/ARK/"
#export_dir = "C:/Program Files/Mount&Blade/Modules/Native/"
I'm running Windows 7 using python 2.6 and I've already moved "Mount&Blade Warband" from Program Files (86x) to Program Files. Please can anyone help.
 
Back
Top Bottom