Seite 1 von 2
Python 2.7.9 und PyCharm lassen sich nicht installiern
Verfasst: 12 Mär 2015, 16:47
von D1Ck3n
Hallo zusammen,
ich habe ein Problem mit der Installation mit Python und dem Editor PyCharm.
Kommen wir erst mal zu Python:
Die Setup.ins sieht wie folgt aus:
Code: Alles auswählen
[Aktionen]
Message=Installing Python 2.7.9
SetLogLevel=7
ScriptErrorMessages=true
ExitOnError=true
TraceMode=Off
DefVar $InstallDir$
DefVar $PRODUCTPATH$
DefVar $MinimumSpace$
DefVar $flInstallDir$
DefVar $flInstallPathRegKey$
DefVar $flVersion$
DefVar $UninstallCommand$
Set $MinimumSpace$ = "50 MB"
Set $PRODUCTPATH$="%ProgramFilesDir64%\Python24"
set $InstallDir$=$PRODUCTPATH$
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive%
isFatalError
; Stop process and set installation status to failed
endif
if FileExists("%ScriptPath%\uninstall.ins")
comment "start uninstall"
sub "%ScriptPath%\uninstall.ins"
endif
comment "Installing python24"
winbatch_python24_install
[winbatch_python24_install]
msiexec "%SCRIPTPATH%\python-2.7.9.msi" /i /qn ALLUSERS=1
Habe ich da was übersehen? Gibt es jemanden, der Python schon mal verteilt hat und mir helfen kann?
Zu PyCharm:
Ich habe im Internet nur den Parameter /S gefunden, aber das klappt damit nicht
Code: Alles auswählen
[Aktionen]
Message=Installing PyCham 4.0.5...
SetLogLevel=7
ScriptErrorMessages=true
ExitOnError=true
TraceMode=Off
DefVar $InstallDir$
DefVar $PRODUCTPATH$
DefVar $MinimumSpace$
DefVar $MozInstallDir$
DefVar $MozInstallPathRegKey$
DefVar $MozVersion$
DefVar $UninstallCommand$
Set $MinimumSpace$ = "500 MB"
Set $PRODUCTPATH$="%ProgramFilesDir64%\Pycham"
set $InstallDir$=$PRODUCTPATH$
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive%
isFatalError
; Stop process and set installation status to failed
endif
if FileExists("%ScriptPath%\uninstall.ins")
comment "start uninstall"
sub "%ScriptPath%\uninstall.ins"
endif
comment "Installing Pycham"
winbatch_pycham_install
[winbatch_pycham_install]
"%SCRIPTPATH%\pycharm-community-4.0.5.exe" /S
Hoffentlich kann mir einer bei meinem Problem helfen.
Gruß
D1Ck3n
Re: Python 2.7.9 und PyCharm lassen sich nicht installiern
Verfasst: 12 Mär 2015, 17:37
von pandel
Python3 verteil ich so, muss auch mit der 2.7.9 so gehen:
Code: Alles auswählen
[Winbatch_install_msi]
msiexec /i "%ScriptPath%\python-3.4.3.amd64.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 REBOOT=ReallySuppress
PyCharm hab ich gerade mal probiert.
- bau das Paket mit opsi setup dector, Installationspfad "%ProgramFiles32Dir%\Jetbrain\PyCharm Community Edition 4.0.5"
- ergänze die Installation um eine Iconerstellung (wird nicht erzeugt) auf "%ProgramFiles32Dir%\Jetbrain\PyCharm Community Edition 4.0.5\bin\pycharm.bat"
Damit sollte es laufen.
Re: Python 2.7.9 und PyCharm lassen sich nicht installiern
Verfasst: 12 Mär 2015, 23:44
von SisterOfMercy
Install InstEd on your local workstation, then open MSI files with InstEd, and look at the property table. Often you will find properties you can set.
And of course also check features, if you want to remove a feature add ADDLOCAL=ALL REMOVE=feature1,feature2,feature3 to the msiexec command line.
Sometimes you find really stupid stuff, such as a program used for creating PDFs from AutoCAD, which has an outlook extension. Whoever installs that extension should be shot.
Re: Python 2.7.9 und PyCharm lassen sich nicht installiern
Verfasst: 13 Mär 2015, 14:49
von D1Ck3n
pandel hat geschrieben:Python3 verteil ich so, muss auch mit der 2.7.9 so gehen:
Code: Alles auswählen
[Winbatch_install_msi]
msiexec /i "%ScriptPath%\python-3.4.3.amd64.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 REBOOT=ReallySuppress
PyCharm hab ich gerade mal probiert.
- bau das Paket mit opsi setup dector, Installationspfad "%ProgramFiles32Dir%\Jetbrain\PyCharm Community Edition 4.0.5"
- ergänze die Installation um eine Iconerstellung (wird nicht erzeugt) auf "%ProgramFiles32Dir%\Jetbrain\PyCharm Community Edition 4.0.5\bin\pycharm.bat"
Damit sollte es laufen.
Erst mal Danke für die schnelle antwort!
Ich habe es ausprobiert, aber die Installation bleibt mitten drin hängen
Das sagt der Log:
Code: Alles auswählen
[1] [Mrz 13 14:51:06:578] opsi-winst 4.11.3.6 started at >>13.03.2015 14:51:04
[1] [Mrz 13 14:51:06:585] startmessage opsi-winst created at CentralForm.FormCreate: 13.03.2015 14:51:04
[1] [Mrz 13 14:51:06:585] Loading skin from: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winstskin
[1] [Mrz 13 14:51:06:585] startmessage StartProgramModes and create log: 13.03.2015 14:51:04
[1] [Mrz 13 14:51:06:585] startmessage start opsi service connection: 13.03.2015 14:51:04
[1] [Mrz 13 14:51:06:585] JSON Bench for backend_info "params":[],"id":1} Start: 14:51:04:511 Time: 00:00:02:010
[1] [Mrz 13 14:51:06:585] startmessage create log: 13.03.2015 14:51:06
[6] [Mrz 13 14:51:06:586] JSON service request https://192.168.0.109:4447/rpc getDepotId
[6] [Mrz 13 14:51:07:294] JSON Bench for getDepotId "params":["pc57.office.bo"],"id":1} Start: 14:51:06:585 Time: 00:00:00:709
[6] [Mrz 13 14:51:07:298] JSON service request https://192.168.0.109:4447/rpc backend_setOptions
[6] [Mrz 13 14:51:07:348] JSON Bench for backend_setOptions "params":[{"processProductOnClientSequence":true}] Start: 14:51:07:297 Time: 00:00:00:051
[6] [Mrz 13 14:51:07:351] JSON service request https://192.168.0.109:4447/rpc productOnClient_getObjects
[6] [Mrz 13 14:51:09:191] JSON Bench for productOnClient_getObjects "params":["",{"clientId":"pc57.office.bo","p Start: 14:51:07:351 Time: 00:00:01:840
[6] [Mrz 13 14:51:09:204] JSON service request https://192.168.0.109:4447/rpc backend_setOptions
[6] [Mrz 13 14:51:09:772] JSON Bench for backend_setOptions "params":[{"processProductOnClientSequence":false} Start: 14:51:09:204 Time: 00:00:00:568
[5] [Mrz 13 14:51:09:776] Computername:pc57.office.bo
[5] [Mrz 13 14:51:09:776] Computername according to Environment Variable :pc57
[5] [Mrz 13 14:51:09:776] opsi service URL https://192.168.0.109:4447
[5] [Mrz 13 14:51:09:776] Depot path: p:\install
[5] [Mrz 13 14:51:09:776]
[5] [Mrz 13 14:51:09:793] bootmode BKSTD
[5] [Mrz 13 14:51:09:793] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[5] [Mrz 13 14:51:09:793] Resolved sequence of products (13.03.2015 14:51:09):
[5] [Mrz 13 14:51:09:796] Product 41 python_2.7.9 : setup
[5] [Mrz 13 14:51:09:797] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[6] [Mrz 13 14:51:09:813] [python_2.7.9] JSON service request https://192.168.0.109:4447/rpc getProductProperties_hash
[6] [Mrz 13 14:51:10:640] [python_2.7.9] JSON Bench for getProductProperties_hash "params":["python_2.7.9","pc57.office.bo"]," Start: 14:51:09:813 Time: 00:00:00:827
[6] [Mrz 13 14:51:10:643] [python_2.7.9] JSON service request https://192.168.0.109:4447/rpc getProduct_hash
[6] [Mrz 13 14:51:10:798] [python_2.7.9] JSON Bench for getProduct_hash "params":["python_2.7.9","opsi-pc.office.bo" Start: 14:51:10:643 Time: 00:00:00:155
[6] [Mrz 13 14:51:10:802] [python_2.7.9] JSON service request https://192.168.0.109:4447/rpc productOnClient_getObjects
[6] [Mrz 13 14:51:11:531] [python_2.7.9] JSON Bench for productOnClient_getObjects "params":["",{"clientId":"pc57.office.bo","p Start: 14:51:10:801 Time: 00:00:00:730
[5] [Mrz 13 14:51:11:534] [python_2.7.9] scriptname: "setup.ins", special path: "p:\install\python_2.7.9\"
[6] [Mrz 13 14:51:11:535] [python_2.7.9] JSON service request https://192.168.0.109:4447/rpc productOnClient_updateObject
[6] [Mrz 13 14:51:12:287] [python_2.7.9] JSON Bench for productOnClient_updateObject "params":[{"clientId":"pc57.office.bo","acti Start: 14:51:11:534 Time: 00:00:00:753
[1] [Mrz 13 14:51:12:321] [python_2.7.9]
[1] [Mrz 13 14:51:12:321] [python_2.7.9] ============ Version 4.11.3.6 WIN32 script "p:\install\python_2.7.9\setup.ins"
[1] [Mrz 13 14:51:12:321] [python_2.7.9] start: 2015-03-13 14:51:12
[1] [Mrz 13 14:51:12:321] [python_2.7.9] installing product: python_2.7.9_2.7.9-1
[1] [Mrz 13 14:51:12:321] [python_2.7.9] on client named "pc57.office.bo"
[1] [Mrz 13 14:51:12:322] [python_2.7.9] loggedin user "Administrator"
[1] [Mrz 13 14:51:12:322] [python_2.7.9] winst running as "SYSTEM"
[1] [Mrz 13 14:51:12:322] [python_2.7.9] winst running with admin privileges
[1] [Mrz 13 14:51:12:322] [python_2.7.9] winst running in standard script mode
[1] [Mrz 13 14:51:12:322] [python_2.7.9] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"
[1] [Mrz 13 14:51:12:322] [python_2.7.9] system infos:
[1] [Mrz 13 14:51:12:330] [python_2.7.9] 18-A9-05-B5-BA-46 - PC hardware address
[1] [Mrz 13 14:51:12:330] [python_2.7.9] pc57 - IP name
[1] [Mrz 13 14:51:12:330] [python_2.7.9] 192.168.0.83 - IP address
[1] [Mrz 13 14:51:12:330] [python_2.7.9] DEU - System default locale
[1] [Mrz 13 14:51:12:330] [python_2.7.9] MS Windowds 6.1 64 Bit
[1] [Mrz 13 14:51:12:330] [python_2.7.9] opsi service version : 4
[1] [Mrz 13 14:51:12:330] [python_2.7.9]
[6] [Mrz 13 14:51:12:330] [python_2.7.9] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion] opened
[6] [Mrz 13 14:51:12:330] [python_2.7.9] Key closed
[1] [Mrz 13 14:51:12:412] [python_2.7.9] LogLevel was 6
[1] [Mrz 13 14:51:12:412] [python_2.7.9] LogLevel set to 7
[5] [Mrz 13 14:51:12:412] [python_2.7.9] ReportMessages was True is set to false
[5] [Mrz 13 14:51:12:412] [python_2.7.9] ExitOnError was True is set to true
[5] [Mrz 13 14:51:12:412] [python_2.7.9]
[5] [Mrz 13 14:51:12:412] [python_2.7.9] Set $MinimumSpace$ = "50 MB"
[6] [Mrz 13 14:51:12:413] [python_2.7.9] The value of the variable "$MinimumSpace$" is now: "50 MB"
[5] [Mrz 13 14:51:12:413] [python_2.7.9]
[5] [Mrz 13 14:51:12:413] [python_2.7.9] Set $PRODUCTPATH$="%ProgramFilesDir64%\Python24"
[6] [Mrz 13 14:51:12:413] [python_2.7.9] The value of the variable "$PRODUCTPATH$" is now: "%ProgramFilesDir64%\Python24"
[5] [Mrz 13 14:51:12:413] [python_2.7.9]
[5] [Mrz 13 14:51:12:413] [python_2.7.9] Set $InstallDir$=$PRODUCTPATH$
[6] [Mrz 13 14:51:12:413] [python_2.7.9] The value of the variable "$InstallDir$" is now: "%ProgramFilesDir64%\Python24"
[5] [Mrz 13 14:51:12:413] [python_2.7.9]
[5] [Mrz 13 14:51:12:413] [python_2.7.9] If
[6] [Mrz 13 14:51:12:413] [python_2.7.9] Free on Disk C:: 205.140.131.840 bytes This is more than the required amount of 50.000.000 bytes
[5] [Mrz 13 14:51:12:413] [python_2.7.9] HasMinimumSpace ("C:", $MinimumSpace$) <<< result true
[5] [Mrz 13 14:51:12:413] [python_2.7.9] not(HasMinimumSpace ("C:", $MinimumSpace$)) <<< result false
[5] [Mrz 13 14:51:12:413] [python_2.7.9] Then
[5] [Mrz 13 14:51:12:413] [python_2.7.9] EndIf
[5] [Mrz 13 14:51:12:413] [python_2.7.9]
[5] [Mrz 13 14:51:12:413] [python_2.7.9] If
[6] [Mrz 13 14:51:12:413] [python_2.7.9] Starting query if file exist ...
[5] [Mrz 13 14:51:12:416] [python_2.7.9] FileExists("P:\install\python_2.7.9\uninstall.ins") <<< result true
[5] [Mrz 13 14:51:12:416] [python_2.7.9] Then
[5] [Mrz 13 14:51:12:416] [python_2.7.9] comment: start uninstall
[6] [Mrz 13 14:51:12:441] [python_2.7.9]
[6] [Mrz 13 14:51:12:441] [python_2.7.9] ~~~~~~~ Start Sub ~~~~~~~ sub "P:\install\python_2.7.9\uninstall.ins"
[6] [Mrz 13 14:51:12:443] [python_2.7.9] Section ending since next line is starting with "["
[6] [Mrz 13 14:51:12:443] [python_2.7.9]
[6] [Mrz 13 14:51:12:443] [python_2.7.9] ~~~~~~~ End Sub ~~~~~~~ sub "P:\install\python_2.7.9\uninstall.ins"
[6] [Mrz 13 14:51:12:443] [python_2.7.9]
[5] [Mrz 13 14:51:12:443] [python_2.7.9] EndIf
[5] [Mrz 13 14:51:12:446] [python_2.7.9] comment: Installing python24
[5] [Mrz 13 14:51:12:446] [python_2.7.9]
[5] [Mrz 13 14:51:12:446] [python_2.7.9] Execution of Winbatch_install_msi
[6] [Mrz 13 14:51:12:446] [python_2.7.9] Call "msiexec /i "P:\install\python_2.7.9\python-2.7.9.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 REBOOT=ReallySuppress"
[6] [Mrz 13 14:51:12:446] [python_2.7.9] Waiting until the called process is finished
[6] [Mrz 13 14:51:12:447] [python_2.7.9] Start process as invoker: SYSTEM
[7] [Mrz 13 14:51:15:018] [python_2.7.9] Waiting for ending at 13.03.2015 14:51:15 exitcode is: 259
[7] [Mrz 13 14:51:16:020] [python_2.7.9] Waiting for ending at 13.03.2015 14:51:16 exitcode is: 259
[7] [Mrz 13 14:51:17:023] [python_2.7.9] Waiting for ending at 13.03.2015 14:51:17 exitcode is: 259
Re: Python 2.7.9 und PyCharm lassen sich nicht installiern
Verfasst: 13 Mär 2015, 15:02
von SisterOfMercy
D1Ck3n hat geschrieben:pandel hat geschrieben:Ich habe es ausprobiert, aber die Installation bleibt mitten drin hängen

Code: Alles auswählen
"%SystemRoot%\system32\msiexec.exe" /l*v "$LogDir$\$ProductId$-setup.log" /qb! /package "%ScriptPath%\files\setup.msi" REBOOT=ReallySuppress ADDLOCAL=ALL REMOVE=stupidfeature,reallystupidfeature
This is the command I use. With the /l*v parameter you create a verbose logfile in the \tmp directory and you might be able to find out what doesn't work.
Re: Python 2.7.9 und PyCharm lassen sich nicht installiern
Verfasst: 13 Mär 2015, 15:17
von pandel
@D1Ck3n
Dann kopier dir das ungepackte Paket so wie es ist auf einen Testrechner und starte dort die winst32.exe. Du bekommst ein Fenster und kannst von dort (quasi als debug Lösung) das setup Script laufen lassen und zuschauen, was es treibt. Evtl. findest du den Hänger. Is vielleicht nur ne blöde Frage, die du iwie deaktiveren musst...
Und evtl. lesen:
https://download.uib.de/opsi4.0/doc/htm ... est-script
Gruß
Holger
Re: Python 2.7.9 und PyCharm lassen sich nicht installiern
Verfasst: 13 Mär 2015, 15:18
von holgerv
D1Ck3n hat geschrieben:Ich habe es ausprobiert, aber die Installation bleibt mitten drin hängen

Was sagt denn die "$LogDir$\$ProductId$.install_log.txt", die Du anlegst?
Schönes WE
Holger
Re: Python 2.7.9 und PyCharm lassen sich nicht installiern
Verfasst: 13 Mär 2015, 15:36
von D1Ck3n
holgerv hat geschrieben:D1Ck3n hat geschrieben:Ich habe es ausprobiert, aber die Installation bleibt mitten drin hängen

Was sagt denn die "$LogDir$\$ProductId$.install_log.txt", die Du anlegst?
Schönes WE
Holger
Das habe ich in meinem Beitrag weiter oben noch ergänzt

Re: Python 2.7.9 und PyCharm lassen sich nicht installiern
Verfasst: 14 Mär 2015, 01:00
von SisterOfMercy
holgerv hat geschrieben:Was sagt denn die "$LogDir$\$ProductId$.install_log.txt", die Du anlegst?
Oh, you already explained how to create a logfile... I can't read anymore I guess.
Exitcode 259 isn't really an exitcode, it's still busy at that moment.
Re: Python 2.7.9 und PyCharm lassen sich nicht installiern
Verfasst: 23 Mär 2015, 10:57
von D1Ck3n
SisterOfMercy hat geschrieben:holgerv hat geschrieben:Was sagt denn die "$LogDir$\$ProductId$.install_log.txt", die Du anlegst?
Oh, you already explained how to create a logfile... I can't read anymore I guess.
Exitcode 259 isn't really an exitcode, it's still busy at that moment.
Die Installation ist aber dauerhaft "busy", woran könnte das liegen?