Bonjour.
Pour un de mes paquets, j'utilisais BeautifulSoup dans la fonction update_package() pour parser une page web et identifier la dernière version. Mais depuis la MaJ vers WAPT 1.8.1, il ne semble plus être disponible :
Ligne de Commande : update-package-sources "C:\waptdev\wapt-ccleaner\WAPT.." Using config file: C:\Users\dani.FWS\AppData\Local\waptconsole\waptconsole.ini 2020-02-24 17:48:26,117 CRITICAL Fatal error in update_package function: ImportError: No module named BeautifulSoup: Traceback (most recent call last): File "C:\Program Files (x86)\wapt\waptpackage.py", line 2412, in call_setup_hook hookdata = hook_func() File "C:\waptdev\wapt-ccleaner\setup.py", line 53, in update_package import requests,BeautifulSoup ImportError: No module named BeautifulSoup
FATAL ERROR : ImportError: No module named BeautifulSoup Exit code: 3
C'est exprès ? Une erreur ?
++
Bonjour,
Certains paquets ont été mis à jour en prévision de python3, voici le code source à utiliser :
try: import bs4 as BeautifulSoup except: import BeautifulSoup
Exemple : https://store.wapt.fr/store/details-tis-filezilla_3.47.0-1_x86_windows.wapt
Cela devrait mieux se passer.
Alexandre
Le 24/02/2020 à 17:51, Daniel Berteaud a écrit :
Bonjour.
Pour un de mes paquets, j'utilisais BeautifulSoup dans la fonction update_package() pour parser une page web et identifier la dernière version. Mais depuis la MaJ vers WAPT 1.8.1, il ne semble plus être disponible :
Ligne de Commande : update-package-sources "C:\waptdev\wapt-ccleaner\WAPT.." Using config file: C:\Users\dani.FWS\AppData\Local\waptconsole\waptconsole.ini 2020-02-24 17:48:26,117 CRITICAL Fatal error in update_package function: ImportError: No module named BeautifulSoup: Traceback (most recent call last): File "C:\Program Files (x86)\wapt\waptpackage.py", line 2412, in call_setup_hook hookdata = hook_func() File "C:\waptdev\wapt-ccleaner\setup.py", line 53, in update_package import requests,BeautifulSoup ImportError: No module named BeautifulSoup
FATAL ERROR : ImportError: No module named BeautifulSoup Exit code: 3
C'est exprès ? Une erreur ?
++
--
Logo%20FWS https://www.firewall-services.com
*Daniel Berteaud* FIREWALL-SERVICES SAS, La sécurité des réseaux Société de Services en Logiciels Libres Tél : +33.5 56 64 15 32 Matrix: @dani:fws.fr https://www.firewall-services.com
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
----- Le 24 Fév 20, à 17:56, Alexandre GAUVRIT agauvrit@tranquil.it a écrit :
Bonjour,
Certains paquets ont été mis à jour en prévision de python3, voici le code source à utiliser :
try : import bs4 as BeautifulSoup except : import BeautifulSoup
Exemple : [ https://store.wapt.fr/store/details-tis-filezilla_3.47.0-1_x86_windows.wapt | https://store.wapt.fr/store/details-tis-filezilla_3.47.0-1_x86_windows.wapt ]
Cela devrait mieux se passer.
En effet, ça marche. Merci beaucoup :-)
++