python path problems

Pagina: 1
Acties:

  • Zym0tiC
  • Registratie: Februari 2001
  • Laatst online: 16:54
Ik heb met python een probleem dat het path niet klopt, althans dat zegt ie.

Info:
OS: Windows 2000 Pro SP4

Geinstalleerd:
- Python-2.3.2-1.exe
- wxPythonWIN32-2.4.2.4-Py23.exe
- py2exe-0.4.2.win32-py2.3.exe

Python staat op de c: schijf onder Python23

Nu wil ik een bittorrent (ABC) die ik heb veranderd omzetten naar een exe file. Bij de gedownloade source code zitten batch bestander erbij om dit te doen.

maketest.bat:
code:
1
2
3
4
python setupabc.py py2exe --icon=icon_abc.ico
cd dist
cd abc
makensis abc.nsi


makedist.bat:
code:
1
2
3
4
python setupabc.py py2exe --windows --icon=icon_abc.ico
cd dist
cd abc
makensis abc.nsi


clean.bat:
code:
1
2
3
4
del *.pyc
del Bittorrent\*.pyc
rmdir /S /Q build
rmdir /S /Q dist


Nou verder dan de eerste kom ik al niet, ik krijg dan deze error:
'python' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
The system cannot find the path specified.
'makensis' is not recognized as an internal or external command,
operable program or batch file.
als ik vervolgens in mijn registry kijk dan zie ik het volgende (ff geexporteerd):
code:
1
2
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.3\PythonPath]
@="C:\\Python23\\Lib;C:\\Python23\\DLLs;C:\\Python23\\Lib\\lib-tk"


Nu heb ik al op google gezocht naar python path maar niets daarvan heeft mijn problemen kunnen oplossen of had betrekking op mijn probleem.

There is no such thing as innocence, only degrees of guilt | Flickr!


  • paella
  • Registratie: Juni 2001
  • Laatst online: 05-09 23:53
Ja, maar je echte PATH, hoe ziet die eruit?

No production networks were harmed during this posting


  • SH007
  • Registratie: November 2001
  • Niet online
Control Panel -> System -> Advanced -> Environment Variables -> klik op Path, dan op edit, en voeg daar "C:\Python23" (zonder quotes) toe. Let erop dat de verschillende locaties gescheiden moeten zijn door een ";" (is ook wel te zien :))