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

Users who are viewing this thread

I spent a few hours digging up the forums for a solution on "Python not recognized...." error on Windows 10

I experimented on making small changes on the instructions from the modding guide and i found that the error has been caused from the ; character typed on Path directory ;C:\Python27. So just delete the ; and it should work.




i am sorry in case that the solution was mentioned on earlier posts, i just read so many posts and i might have skipped some.
 
had problem with this for about 20-25mins before i noticed how exactly you need be on wording,
Mount&blade Warband is on my directory MountBlade Warband... 1 "&" not there and nothing is working heh.
and i first forget all about program files x(86), i have on steamlibrary on different hard drive but yeah.. :facepalm:

my advice: be very very exact on all the wording and use eyes!

using Module_system 1.171. and python 2.7.15
 
Shik said:
vuk said:
Tried all the different ways, restarted my comp, everything. Can anyone tell me why it is not working?


Try this instead:

Right click on build_module.bat and click edit. Change the contents to this:

@echo off
set OLDPATH=%PATH%
set PATH="C:\Python25";%PATH%

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_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

set PATH=%OLDPATH%
@del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul

Then try it.


This worked for me.
 
It took some effort and proscrastination but I finally got mine work on Win10. Seems that the main reason it was not working for me before is that I had the 64bit version of 2.7 but according to an online guide it says that most apps run off 32bit version of python 2.7. The other thing was adding these paths to environment variables,"C:\Python27" and "C:\Python27\Scripts" under system variables.
Link to the guide that help me.
http://www.aaronstannard.com/how-to-setup-a-proper-python-environment-on-windows/
 
I've been having a similar problem to those on this thread. Tried their answers with no luck. I'm on Windows 10 using Python 2.7.15 32 bit.

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 directory
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 directory
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 directory
python: can't open file 'process_factions.py': [Errno 2] No such file or directory
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 directory
python: can't open file 'process_scene_props.py': [Errno 2] No such file or directory
python: can't open file 'process_tableau_materials.py': [Errno 2] No such file or directory
python: can't open file 'process_presentations.py': [Errno 2] No such file or directory
python: can't open file 'process_party_tmps.py': [Errno 2] No such file or directory
python: can't open file 'process_parties.py': [Errno 2] No such file or directory
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 directory
python: can't open file 'process_scripts.py': [Errno 2] No such file or directory
python: can't open file 'process_mission_tmps.py': [Errno 2] No such file or directory
python: can't open file 'process_game_menus.py': [Errno 2] No such file or directory
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 directory
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 build_module.bat file. I initially tried the ;C:/Python27 path way but that came up with 'python' is not recognized as an internal or external command,
operable program or batch file. So I'm using C:/Python27 instead.

My module_info.py file leads exactly to where my module folder is

# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)

export_dir = "D:/Steam/steamapps/common/MountBlade Warband/Modules/Personal Mod"
#export_dir = "C:/Program Files (x86)/Mount&Blade Warband/Modules/Native/"

My M&B Warband steam folder does not have a "&" in it so its not included there.

I've been reading posts on this for 2 hours and trying everything with no luck.
 
first fix your export variable on module_info.py, you are missing the last slash "/"

reinstall Python and enable the option to setup the system variable while doing that. The installation program already does that for you, you just need to ask for it.

if you are still having issues then move your mod folder (the source files) to your /Desktop/mymodfolder

finally review this https://forums.taleworlds.com/index.php/topic,240255.0.html
 
I've added the extra / at the end and done a fresh install of Python with the system variable with no luck still. The build.module.bat still can't find the files. I copied my mod folder to the desktop too with no such luck. The Module_sytem folder with the bat file in is in My Documents too on the same drive as Python.

Edit: I fixed the issue. I followed the link above and created a new System variable and included the path to each subdirectory in my Python folder so it looked like this: C:\Python27\DLLs;C:\Python27\Doc;C:\Py... etc for every major subdirectory in the folder. Then the build_module.bat would ONLY work if I DIDN'T run it in administrator. Even after the new pathing it came up with the same error if ran in admin, but if I ran it normally it built everything without errors.
 
Hi Guys ! I have a problem with python i think
I have Warband on 1.168 version and module system what i use is on 1.171 is that problem ?
I have python 26 in C/Python26
I want to upload pictures here from this error but i cant

'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
'python' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Users\kucha\Desktop\mb_warband_module_system_1171\Module_system 1.171\*.pyc
 
Gizza said:
I have Warband on 1.168 version and module system what i use is on 1.171 is that problem ?

you should update your Warband game. Visit the website to download it or use the update option on your store installer (Steam, GoG, etc). Just to make sure you have the latest engine (bugs fixed and all that) and no issues with your serial keys and old versions.

you can use the modsys from 1.171 as that is the latest for download, even if Warband is already at 1.174.

did you read the suggestions given on this thread about your Python issues? Those are unrelated to Warband as well, in case you want to google for more info as a alternative (or use Youtube, etc).
 
kalarhan said:
Gizza said:
I have Warband on 1.168 version and module system what i use is on 1.171 is that problem ?

did you read the suggestions given on this thread about your Python issues? Those are unrelated to Warband as well, in case you want to google for more info as a alternative (or use Youtube, etc).

ok, i have 1.174 and a read but i dont understand all of this  :mrgreen: you can use example on me

is everything ok ?
https://ibb.co/1MTYG5w
https://ibb.co/D4B39Qc
https://ibb.co/hm9T8Dx when i run build module as administrator
https://ibb.co/k4wt4f2
 
Gizza said:
is everything ok ?

your system variable is not OK

if you cant figure this out try this:

0) Change the variable to "C:\Python26\" instead of ";C:\Python26"

if that fails go to (1)

1) reinstall Python and pick the option for the installer to setup your variable.

If that fails go to (2)

2) give up and copy the entire Python26 folder to your module system (no need for system variable if they are in the same place...)
  \myfolder\build_module.bat
  \myfolder\python.exe
  \myfolder\DLLS
  ... all subfolders from Python26

that means that Python and your mod source are in the same folder!
 
i done your 0 advice and module system change to this

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\kucha\Desktop\Module_system 1.171\process_operations.py", line 171, in save_variables
    file = open(export_dir + "variables.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/simple_triggers.txt'
exporting triggers...
Traceback (most recent call last):
  File "process_dialogs.py", line 199, 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 (x86)/Mount&Blade Warband/Modules/Mymod/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 (x86)/Mount&Blade Warband/Modules/Mymod/postfx.txt'

______________________________

Script processing has ended.
Press any key to exit. . .
 
:grin: :grin: :grin:
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 directory
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 directory
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 directory
python: can't open file 'process_factions.py': [Errno 2] No such file or directory
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 directory
python: can't open file 'process_scene_props.py': [Errno 2] No such file or directory
python: can't open file 'process_tableau_materials.py': [Errno 2] No such file or directory
python: can't open file 'process_presentations.py': [Errno 2] No such file or directory
python: can't open file 'process_party_tmps.py': [Errno 2] No such file or directory
python: can't open file 'process_parties.py': [Errno 2] No such file or directory
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 directory
python: can't open file 'process_scripts.py': [Errno 2] No such file or directory
python: can't open file 'process_mission_tmps.py': [Errno 2] No such file or directory
python: can't open file 'process_game_menus.py': [Errno 2] No such file or directory
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 directory
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. . .
 
create a folder called "compiled"

  \mymodsysfolder\
  \mymodsysfolder\compiled

change your module_info.py to point to it
Code:
export_dir = "compiled/"

copy and paste the .txt files manually to your game module

later fix your system variable as a admin if you want to and revert it.



 
Well, chiming in to say here's another person with an hour wasting trying to get the module to build.

I've had both python 2.x and 3.x installed side by side for over a year, working just fine.

This compiler needs 2.x, so I set the system variables to it.. nope.
Uninstall 3.x.. nope.
Change 2.x install to re-register everything.. nope.
Uninstall and reinstall 2.x.. nope.
Reinstall in its default directory.. nope.
Install the 32bit version instead.. nope.

Meanwhile, using 'python' in command prompt has been working just fine the entire time, as was executing .py files directly.

Start searching online, find this thread, scour it for posts.. see many people seeming to have this issue.  Latest page has someone mention they fixed it by adding all the subfolders of python to the path variable, but that did not work for me.

Only two things worked.

1) Copy Python directly to the module folder.
2) Delete the 'python' prefix in the build build_module.bat file which sphere mentioned 8 years ago.

What a headache for an issue that shouldn't even be an issue.  Is this caused by a 64bit or newer-than-XP OS?  I have no idea; but boy this was a huge waste of time.
 
Dear all,

I'm having an odd issue, I try to get the bat program to create the python files but they don't seem to go into the directory that I set it for. I am on windows 10, I have tried running it as admin, I have the steam version of the game. This is the directory I have set

export_dir = "D:/stuff/steamapps/common/MountBlade Warband/Modules/Native - Personal mod"
#export_dir = "C:/Program Files (x86)/Mount&Blade Warband/Modules/Native/"

That is copy pasted from the module_info.py

This is what I get when running the bat file

Initializing...
Compiling all global variables...
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Exporting map icons...
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Exporting faction data...
Exporting item data...
Exporting scene data...
Exporting troops data
Exporting particle data...
Exporting scene props...
Exporting tableau materials data...
Exporting presentations...
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Exporting mission_template data...
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Exporting postfx_params...

______________________________

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



I get no errors of any kind. For some reason it seems to generate text files in my modules folder but not my personal mod folder and none of the files are python related.

Thank you for reading!

Also I hope I put this in the right place but I'm new to these forums so if I need to move this post, I would be happy to.

Thanks again!
 
Hello! I put the "/" to try and fix the problem but the bat is still showing the same information as the previous post.

this is what the module_info.py looks like now

# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)

export_dir = "D:/stuff/steamapps/common/MountBlade Warband/Modules/Native - Personal mod/"
#export_dir = "C:/Program Files (x86)/Mount&Blade Warband/Modules/Native/"

when I run the bat as admin this is what 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 directory
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 directory
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 directory
python: can't open file 'process_factions.py': [Errno 2] No such file or directory
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 directory
python: can't open file 'process_scene_props.py': [Errno 2] No such file or directory
python: can't open file 'process_tableau_materials.py': [Errno 2] No such file or directory
python: can't open file 'process_presentations.py': [Errno 2] No such file or directory
python: can't open file 'process_party_tmps.py': [Errno 2] No such file or directory
python: can't open file 'process_parties.py': [Errno 2] No such file or directory
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 directory
python: can't open file 'process_scripts.py': [Errno 2] No such file or directory
python: can't open file 'process_mission_tmps.py': [Errno 2] No such file or directory
python: can't open file 'process_game_menus.py': [Errno 2] No such file or directory
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 directory
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. . .



However, when I run without admin, I get the result that I posted previously.

Do we still need to follow the environmental variables step according to Lumos guide?

https://forums.taleworlds.com/index.php?topic=240255.0

This is what his guide says

Are you finished with the theory? I want to start modding now.
Yes, I am. So, now let's start the modding. You want to setup a Module System, don't you? Well then, just go to the thread where we summarise downloads (found in this same board... or if you click here) and get yourself a fresh ModSys for your particular game of choice. (You're looking for the "Download Module System" section, can't miss it!)
Now. In order to be able to compile the files into game-readable text files, full of numbers and numbers and numbers, and to make your awesome mod come true, you need Python (the language). Having a real pet python might help, but don't count on it. Now, don't go rushing into downloading the latest Python. Here's something really important that you should know: The ModSys does NOT work with any Python newer than 2.x*. Fortunately, the same thread you've already got open also features a link to the Python website, so you've been saved a Googling; grab the latest 2.x.x version from there.
Now all you have to do is to install Python. Using Admin rights, please. Oh, it's a good idea to install it in its preferred C:\Python27 directory (if you're still using Python 2.7 in your day and age, oh reader from the future!).
Next up. Go to your Environment Variables to see if everything is OK. For those that don't know what Environment Variables are - well, these are OS things, which your Windows uses. You will only have interest in the "PATH" variable. Now open that window and get to business.
(click to show/hide)
Windows XP: My Computer (right-click) -> Properties -> Advanced -> Environment Variables
Windows 7, 8: My Computer (right-click) -> Properties -> Advanced system settings -> Environment Variables

and he also says

Scroll that list until you find the "Path", then click it and hit the "Edit" button down there. This Path variable is basically just a string of paths to certain things which are important for your OS. It's different on every computer.
In order for your compiler to work without any hacks or fixes, you must have your Python folder in your Path variable. For an example, if you did install your Python in C:\Python27, then you should add ;C:\Python27 at the end of the Path. Do NOT alter the Path in any other way! As it contains important system stuff, it's definitely NOT recommended. Just add that ;C:\Python27 if it's not there. I think it won't be there, since I had to enter it manually. I think.
Anyways, notice the semicolon (:wink: that is before the C:\Python27. Entries for different applications are separated with semicolons in the Path variable string, so you should add that semicolon so your OS knows what you're talking about.
And that's about it for setting Python up.

* That's actually a lie. If you're familiar with Python, you're free to re-write the Python "compiler" that the ModSys uses, and thus convert it to Python 3.

That's all part of the guide I copied but from here on its just me

I used that guide but found that all the variables were already there when I installed python....I think...Also I am running windows 10 if that helps in any way. Sorry for all the trouble, apparently I suck pretty bad at this stuff.

Thank you for reading!
 
jet100a said:
Hello! I put the "/" to try and fix the problem but the bat is still showing the same information as the previous post.

those are different things. One is related to the path of your module. The other about Python installation and Windows permissions.

Create a folder on your desktop (you own all the rights there) and move your source to that. Then try this

kalarhan said:
create a folder called "compiled"

  \mymodsysfolder\
  \mymodsysfolder\compiled

change your module_info.py to point to it
Code:
export_dir = "compiled/"

copy and paste the .txt files manually to your game module

later fix your system variable as a admin if you want to and revert it.
 
Back
Top Bottom