[Wapt] :) Besoin de vos lumieres

Tatiana De-Wyse tatiana.dewyse at gmail.com
Fri Jul 15 15:39:48 CEST 2016


Merci Monsieur Cardon pour la reactivite.

Cette syntaxe bizarre vient de ma tete. ^^
C'est une bonne remarque de me rappeler que la doc indique les types des
entrees et des sorties.
Je vais essayer de m'inspirer du setup de tis-sqliteadmin pour corriger la
syntaxe.

Encore merci. :)




Le 15 juillet 2016 à 15:30, Denis Cardon <
denis.cardon at tranquil-it-systems.fr> a écrit :

> Bonjour Tatiana,
>
> J'essaye de creer un paquet. Ce qui est amusant c'est que je n'ai pas
>> d'exe ou d'msi à installer.
>>
>
> c'est plus courant que ce que l'on pense...
>
> Je possede juste une paire de dossier(contenant eux meme d'autres
>> dossier) à installer dans trois endroits differents.
>> J'utilise quelques fonctions de la bib setuphelpers
>>
>> Je vous montre à quoi ressemble mon setup.py, je le realise ainsi et je
>> ne sais pas si c'est possible ^^ mais WAPT ne rale pas lors de la
>> création du paquet.
>>
>> Corps de ma fonction def install:
>> /
>> def install():
>>      print('installing waptprefixe-4d')
>>      print('try to create shortcut in Menu Program')
>>
>>
>> create_programs_menu_shortcut('4D',target=all_files('4D\dans_C_ProgramData_Microsoft_Windows_Start-Menu_Programs'))
>>
>
> est ce que vous pourriez m'indiquer où vous avez trouver cette syntaxe
> bizarre: target=all_files(...) ?
>
> La doc setuphelpers indique bien qu'il faut mettre une chaine de caractère
> qui pointe vers l'exe... [1] et non la liste qui est renvoyé par all_files.
>
> Est ce que vous pourriez vous inspirer du paquet tis-sqliteadmin [2] pour
> corriger la syntaxe?
>
>      print('try to create shortcut in programFiles')
>>      create_shortcut((r'C:\\ProgramFiles\\4D'),
>> target=all_files('4D\dans_Program_Files\4D'))
>>      print('try to create shortcut in Windows')
>>      create_shortcut((r'C:\\Windows\4D'),
>> target=all_files('4D\dans_Windows'))/
>>
>> c:\wapt\log, lors de l'installation du paquet.
>>
>
> Pour le cycle de développement de paquet, il faut plus facile de les
> tester dans l'ide pyscripter, c'est beaucoup plus rapide et convivial que
> de les passer à l'agent wapt.
>
> Cordialement,
>
> Denis
>
>
> [1]
> https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=create_programs_menu_shortcut#setuphelpers.create_programs_menu_shortcut
> [2]
> http://wapt.tranquil.it/package_details?package=tis-sqliteadmin_0.8.3.2-00_all.wapt
>
>
>
>> 2016-07-15 14:54:31,482 CRITICAL Package waptprefixe-4d not installed
>> due to errors : AttributeError: 'list' object has no attribute
>> 'startswith'
>> 2016-07-15 14:54:31,651 CRITICAL Exception: Error during install of
>> ep10-pc111.ep10.local (=17): errors in packages waptprefixe-4d
>> installing waptprefixe-4d
>> try to create shortcut in Menu Program
>> 2016-07-15 14:54:34,517 CRITICAL Fatal error in install script:
>> AttributeError: 'list' object has no attribute 'startswith':
>> Traceback (most recent call last):
>>    File "C:\wapt\common.py", line 3178, in install_wapt
>>      exitstatus = setup.install()
>>    File "c:\windows\temp\wapt_1l1he\setup.py", line 20, in install
>>
>>
>> create_programs_menu_shortcut('4D',target=all_files('4D\dans_C_ProgramData_Microsoft_Windows_Start-Menu_Programs'))
>>    File "C:\wapt\setuphelpers.py", line 475, in
>> create_programs_menu_shortcut
>>      if target.startswith('http://') or target.startswith('https://'):
>> AttributeError: 'list' object has no attribute 'startswith'
>>
>> 2016-07-15 14:54:34,599 CRITICAL Package waptprefixe-4d (=0-0) not
>> installed due to errors : AttributeError: 'list' object has no attribute
>> 'startswith'
>> 2016-07-15 14:54:34,601 CRITICAL Exception: Error during install of
>> waptprefixe-4d (=0-0): errors in packages waptprefixe-4d
>> installing waptprefixe-4d
>> try to create shortcut in Menu Program
>> 2016-07-15 14:55:11,947 CRITICAL Fatal error in install script:
>> AttributeError: 'list' object has no attribute 'startswith':
>> Traceback (most recent call last):
>>    File "C:\wapt\common.py", line 3178, in install_wapt
>>      exitstatus = setup.install()
>>    File "c:\windows\temp\waptkchaf5\setup.py", line 20, in install
>>
>>
>> create_programs_menu_shortcut('4D',target=all_files('4D\dans_C_ProgramData_Microsoft_Windows_Start-Menu_Programs'))
>>    File "C:\wapt\setuphelpers.py", line 475, in
>> create_programs_menu_shortcut
>>      if target.startswith('http://') or target.startswith('https://'):
>> AttributeError: 'list' object has no attribute 'startswith'
>>
>> 2016-07-15 14:55:12,028 CRITICAL Package waptprefixe-4d (=0-0) not
>> installed due to errors : AttributeError: 'list' object has no attribute
>> 'startswith'
>> 2016-07-15 14:55:12,029 CRITICAL Exception: Error during install of
>> waptprefixe-4d (=0-0): errors in packages waptprefixe-4d
>>
>>
>> En esperant que tout cela soit lisible.
>>
>>
>> Merci beaucoup pour l'aide que vous pourrez m'apporter.
>>
>> Passez tous un agreable weekend.
>>
>> Tatiana
>>
>>
>>
>> _______________________________________________
>> WAPT mailing list
>> WAPT at lists.tranquil.it
>> http://lists.tranquil.it/listinfo/wapt
>>
>>
> --
> Denis Cardon
> Tranquil IT Systems
> Les Espaces Jules Verne, bâtiment A
> 12 avenue Jules Verne
> 44230 Saint Sébastien sur Loire
> tel : +33 (0) 2.40.97.57.55
> http://www.tranquil-it-systems.fr
>
>
-------------- section suivante --------------
Une pi�ce jointe HTML a �t� nettoy�e...
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160715/5232f80e/attachment-0001.html>


More information about the WAPT mailing list