Can't setup Python right!!

正在查看此主题的用户

Kabalon

Regular
I made everything in that tutorial - also downloaded various Python versions and redownloaded the module system.

But always when I start the build_module.bat the system runs into an error (see screenshot).

Can anyone tell me whats the issue here??

I tried to write down the system variable path for the python folder in many ways but no one works...

pythonproblme.jpg

 
did you install python to the default location? (i.e.. c:\python27) also i cant tell in the photo, make sure it's a ; not a : between the path directories. Otherwise, what are the error messages being printed? Again, small pic, cant read.
 
Try removing the last backslash in the Path declaration. It shouldn't affect anything, but still.

Try encasing path to python in double quotes. So the Path declaration ends in (...);"C:/Python27" - there have been reports that this helps sometimes.

Also, please check again your Python installation folder. Open your Python folder in explorer and post the screenshot here.
 
Kabalon 说:
its:

c:\python27

and i did use the ; instead of the :

any other ideas?

try to replace "python " with "c:/Python27/python.exe " in bat file. (ctrl+h)

PS. Don't use screenshots.  RMB in console -> 'mark ->' select text -> press enter -> paste to forum.

PS. Confirm if succeed.
 
Well I changed Path for variables to this:


C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\EgisTec MyWinLocker\x64;C:\Program Files (x86)\EgisTec MyWinLocker\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Autodesk\Backburner\;C:\Program Files (x86)\Common Files\Autodesk Shared\;"C:\Python27"

sadly no change...

I also tried that .bat changing thingie:

result:

c:/Python27/python.exe: can't open file 'process_postfx.py': [Errno 2] No such f
ile or directory


so it still doesnt work

 
Lav 说:
Try removing the last backslash in the Path declaration. It shouldn't affect anything, but still.

Try encasing path to python in double quotes. So the Path declaration ends in (...);"C:/Python27" - there have been reports that this helps sometimes.

Also, please check again your Python installation folder. Open your Python folder in explorer and post the screenshot here.


http://1.1.1.4/bmi/img577.imageshack.us/img577/7205/unbenanntcro.jpg


here u are
 
I'm running out of ideas. :???:

Try these steps:

1. Create a new file "build_test.bat" in your module folder with the following contents:
插入代码块:
@path
@pause

2. Run it and see what value it will print. What's important is whether the printed value contains path to your python installation.

3. Edit the file "build_module.bat". Insert a new line between "@echo off" and "python process_init.py" lines:
插入代码块:
set PATH=C:/Python27;%PATH%

4. Try running build_module_bat with this fix.
 
PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program File
s (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common
Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microso
ft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C
:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\S
hared;C:\Program Files (x86)\EgisTec MyWinLocker\x64;C:\Program Files (x86)\Egis
Tec MyWinLocker\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\
Program Files (x86)\Autodesk\Backburner\;C:\Program Files (x86)\Common Files\Aut
odesk Shared\;C:\Python27
Drücken Sie eine beliebige Taste . . .


thats what I receive...should I copy all this into the batch between the space u told me above?
 
Kabalon 说:
c:/Python27/python.exe: can't open file 'process_postfx.py': [Errno 2] No such f
ile or directory
so it still doesnt work

Python works fine.
You have no "process_postfx.py" in directory where you run your bat.




 
Well I just copied one of many error messages - so to say it told me to every file that it couldn't be found :/
 
yea sure - everything is in that folder - I redownloaded the folder from Taleworlds page and unzipped it several times :/
 
Kabalon 说:
Well I just copied one of many error messages - so to say it told me to every file that it couldn't be found :/

ok try to do next:
win + r
cmd # run console

cd <you path>
if you files on different disk
d:\

dir # it show list of files and folders in you path. check if process_init.py and bat files present.
#checking python
python # python will start ctrl + c exit
if it is not work:
c:\python27\python.exe # this will work

python process_init.py # you will see "Initializing..."

if any error. paste them here.
Try you bat file and paste output.


PS. try move you files to c:\users\<name>\mab # no space and non latin chars in path.



 
I finally made it...

The problem was that I installed warband into "c:\progam files (86x)\M&B Warband" etc. - and the .bat and the cmd kinda couldnt find the folder through that path - I maybe missed to change ( to % or siomething - i dunno - i made the path much simplier now and now it works.

thanks for every help here !
 
后退
顶部 底部