Author Topic: How to fix "Python not recognized..." (now also for Windows 7)  (Read 55472 times)

Jordan_The_Noble and 1 Guest are viewing this topic.

Calodine

  • Southern Poof
  • Grandmaster Knight
  • *
  • A boar, a scorpion and a badass walk into a bar...
    • View Profile
  • Faction: Neutral
  • MP nick: irc://Calodine
Re: How to fix "Python not recognized..."
« Reply #15 on: April 25, 2008, 09:14:04 AM »
XP, SP2. Probably should have remembered that ^^
im digging it. I'd hit that hard man. In fact I'd hit that so hard i'd probably puncture something, and you'd start bleeding internally and shit, and i'd still be ******** you right up until your dead. Then I'd make a protein shake, drink that shit, have a smoke, come back and continue ******** your corpse, and i'd keep ******** it until your ghost had babies.

Pii100

  • Squire
  • *
    • View Profile
  • Faction: Vaegir
Re: How to fix "Python not recognized..."
« Reply #16 on: June 29, 2008, 03:45:24 PM »
I use Xp SP2, and everything people recommended for me failed. Even when using " marks.

But using same way you do it in Vista worked.

Blackoutt21

  • Recruit
  • *
    • View Profile
  • Faction: Nord
Re: How to fix "Python not recognized..."
« Reply #17 on: July 06, 2008, 09:13:54 PM »
Edit: works now, oddly enough the way for vista worked for me too.
« Last Edit: July 07, 2008, 12:07:22 AM by Blackoutt21 »

Kraven

  • Sergeant Knight
  • *
  • <Insert intelligent statement>
    • View Profile
  • Faction: Neutral
  • MP nick: Drunk_N_Deadly
  • M&BWB
Re: How to fix "Python not recognized..."
« Reply #18 on: July 07, 2008, 04:52:02 AM »
Okay guys, tried the different solutions in this thread, tried the vista way to.

Checked both the windows Faq list that was linked to and checked

http://forums.taleworlds.net/index.php/topic,33942.msg877152.html#msg877152

Yet nothing seemed to work.
XP Home ED, SP2.

Help would be appreciated.
Gaming Names:
Legacy, Teraki, Mirendill, Tavian, Insanity, Drunk N' Deadly, Toriac, Morcal, among others.

vuk

  • Sergeant at Arms
  • *
  • Apocalypto
    • View Profile
  • Faction: Swadian
  • MP nick: Vuk
  • M&BWBWF&S
Re: How to fix "Python not recognized..."
« Reply #19 on: July 07, 2008, 07:23:51 PM »
Tried all the different ways, restarted my comp, everything. Can anyone tell me why it is not working?


Shik

  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Neutral
  • MP nick: irc://Shik
  • M&BWBWF&S
Re: How to fix "Python not recognized..."
« Reply #20 on: July 07, 2008, 07:28:27 PM »
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.

vuk

  • Sergeant at Arms
  • *
  • Apocalypto
    • View Profile
  • Faction: Swadian
  • MP nick: Vuk
  • M&BWBWF&S
Re: How to fix "Python not recognized..."
« Reply #21 on: July 07, 2008, 07:33:05 PM »
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.

YES!! Thank you so muh again Fei! You saved me one more time! It is working now.

Kraven

  • Sergeant Knight
  • *
  • <Insert intelligent statement>
    • View Profile
  • Faction: Neutral
  • MP nick: Drunk_N_Deadly
  • M&BWB
Re: How to fix "Python not recognized..."
« Reply #22 on: July 07, 2008, 08:15:45 PM »
Thanks, working now here to.
Gaming Names:
Legacy, Teraki, Mirendill, Tavian, Insanity, Drunk N' Deadly, Toriac, Morcal, among others.

Ruthven

  • Revs lil' helper
  • Grandmaster Knight
  • *
  • crushie crushie crushie
    • View Profile
  • Faction: Neutral
  • MP nick: irc://Ruthven
Re: How to fix "Python not recognized..."
« Reply #23 on: July 13, 2008, 02:54:48 AM »
okay, It's just not working for me. I have Vista, and everything I've seen on here does not work. it still says Python not recognized as a blah blah blah...
I have rebooted my computer, and I have reinstalled it. it's just not working. any more tips?





Ativan

  • Administrator
  • *
    • View Profile
  • Faction: Bandit
  • M&B
Re: How to fix "Python not recognized..."
« Reply #24 on: July 13, 2008, 02:55:41 AM »
Tried all the different ways, restarted my comp, everything. Can anyone tell me why it is not working?

Although you have solved your problem with a different approach, let me point out the erroneous thing in your previous setting: You had created a variable named "Python". Instead, you should have added C:\Python25 to your path under system variables (it is visible in your screenshot).
En popüler kişisel mesaja cevap: Hayır değiştiremezsiniz.

KON_Air

  • Master Knight
  • *
    • View Profile
  • Faction: Neutral
  • MP nick: KON_Air
  • M&BWB
Re: How to fix "Python not recognized..."
« Reply #25 on: July 13, 2008, 03:16:25 AM »
Code: [Select]
@echo off
set PATH=C:\PythonXY

sigh... another generation that never used DOS...
Comparing Fallout 3 and 1-2 is like comparing an apple to a mutated apple which is trying to bite your face.

Wu-long

  • Sergeant Knight at Arms
  • *
    • View Profile
  • Faction: Vaegir
  • MP nick: Wulong
  • WBWF&SNW
Re: How to fix "Python not recognized..."
« Reply #26 on: July 13, 2008, 12:43:39 PM »
OK so you've got the module system and the first time to try to do anything you get "python not recognized as internalexternal command, operable program or batch file.".

Here's how you getting working for Windows 2000 and XP.

Right click on "My Computer" and select "Properties".  Next select the "Advanced" tab and click on "Environmental Variables".

screenshot1

In the top window, user variables, select "New".  In the pop up window that comes up give the variable a name and enter the path where Python is installed preceded by a semicolon.   Then click "OK".
For this example the variable is given the name "Python" and Python is installed in C:\Python25.

screenshot2

When you're done it should look like this.  Then click on "OK" to close all windows.

screenshot3

If you're using an older version of Windows or can't follow these instructions go to http://www.python.org/doc/faq/windows/#how-do-i-run-a-python-program-under-windows

Instructions for Vista.
http://www.neuralwiki.org/index.php?title=Guide_to_installing_Python_in_Windows_Vista

lol i asked the same question yesterday and was solved buh on the module documentation we should ask a mod to edit it cuz it says put in python24 instead of 25

Graylord

  • Grandmaster Knight
  • *
  • Fiddlesticks, i say!
    • View Profile
    • Ultimate Gamer
  • Faction: Vaegir
Re: How to fix "Python not recognized..."
« Reply #27 on: July 31, 2008, 07:47:16 PM »
Found an error in the vista one, it suggests "/" instead of "\"

A politically correct solution is an incorrect solution.
A correct solution wouldn't need to be "politically" correct.

Januski47

  • Recruit
  • *
    • View Profile
  • Faction: Vaegir
Re: How to fix "Python not recognized..."
« Reply #28 on: August 02, 2008, 09:56:05 PM »
By lots of thinking on winXP, i figured out that if nothing else works, copy content of python folder to ModuleSystem folder.
That was my problem solved!

TJL

  • Regular
  • *
  • Scrub that muck off this instant Huber Cumberdale
    • View Profile
  • Faction: Neutral
Re: How to fix "Python not recognized..."
« Reply #29 on: August 07, 2008, 09:18:29 PM »
Thanks Fei Dao, was searchin help from this thread, and gotta say, you gave it!