Du coup, j'obtiens cette erreur-ci après changement du fichier common.py et en faisant la commande précédemment :
Current loglevel : DEBUG2015-01-13 09:28:35,102 DEBUG Default encoding : ascii2015-01-13 09:28:35,102 DEBUG Setting encoding for stdout and stderr to cp8502015-01-13 09:28:35,102 DEBUG Python path ['C:\\wapt', 'C:\\wapt\\python27.zip','C:\\wapt\\DLLs', 'C:\\wapt\\lib', 'C:\\wapt\\lib\\plat-win', 'C:\\wapt\\lib\\lib-tk', 'C:\\wapt', 'C:\\wapt\\lib\\site-packages', 'C:\\wapt\\lib\\site-packages\\win32', 'C:\\wapt\\lib\\site-packages\\win32\\lib', 'C:\\wapt\\lib\\site-packages\\netifaces', 'C:\\wapt\\lib\\site-packages\\py_bcrypt-0.4-py2.7-win32.egg']
2015-01-13 09:28:35,102 DEBUG Config file: C:\wapt\wapt-get.ini2015-01-13 09:28:35,107 INFO User Groups:[]2015-01-13 09:28:35,108 DEBUG WAPT base directory : C:\wapt2015-01-13 09:28:35,108 DEBUG Package cache dir : C:\wapt\cache2015-01-13 09:28:35,108 DEBUG WAPT DB Structure version;: 201404102015-01-13 09:28:35,114 CRITICAL Unable to delete param uuidFATAL ERROR : Traceback (most recent call last):File "<string>", line 833, in mainFile "C:\wapt\common.py", line 4010, in register_computerself.delete_param('uuid')File "C:\wapt\common.py", line 5260, in delete_paramself.waptdb.delete_param(name)File "C:\wapt\common.py", line 904, in delete_paramself.db.execute('delete from wapt_params where name=?',(name,))OperationalError: attempt to write a readonly database
Traceback (most recent call last):File "<string>", line 980, in <module>File "<string>", line 833, in mainFile "C:\wapt\common.py", line 4010, in register_computerself.delete_param('uuid')File "C:\wapt\common.py", line 5260, in delete_paramself.waptdb.delete_param(name)File "C:\wapt\common.py", line 904, in delete_paramself.db.execute('delete from wapt_params where name=?',(name,))sqlite3.OperationalError: attempt to write a readonly databaseException at 004406AF: EPyStandardError:OperationalError: attempt to write a readonly database.
Merci,
Florence
Le 13 janvier 2015 09:27, Hubert TOUVET <htouvet@tranquil.it> a écrit :
Cette erreur en cache une autre...
Pouvez-vous éditer le fichier c:\wapt\common.py à la ligne 907 et remplacer la ligne
logger.critical(u'Unable to delete param %s : %s' % (name,value))
par
logger.critical(u'Unable to delete param %s' % (name,))
(sans changer les espaces de début qui ont une signification en python)
et réessayer avec le debug activé, il devrait y avoir une autre erreur plus explicite.
Merci.
Hubert
Le 13/01/2015 09:09, GUIET Florence a écrit :
Voici le message d'erreur que j'obtiens :
Current loglevel : DEBUG2015-01-13 09:02:33,391 DEBUG Default encoding : ascii2015-01-13 09:02:33,392 DEBUG Setting encoding for stdout and stderr to cp8502015-01-13 09:02:33,392 DEBUG Python path ['C:\\wapt', 'C:\\wapt\\python27.zip','C:\\wapt\\DLLs', 'C:\\wapt\\lib', 'C:\\wapt\\lib\\plat-win', 'C:\\wapt\\lib\\lib-tk', 'C:\\wapt', 'C:\\wapt\\lib\\site-packages', 'C:\\wapt\\lib\\site-packages\\win32', 'C:\\wapt\\lib\\site-packages\\win32\\lib', 'C:\\wapt\\lib\\site-packages\\netifaces', 'C:\\wapt\\lib\\site-packages\\py_bcrypt-0.4-py2.7-win32.egg']
2015-01-13 09:02:33,392 DEBUG Config file: C:\wapt\wapt-get.ini2015-01-13 09:02:33,407 INFO User Groups:[]2015-01-13 09:02:33,408 DEBUG WAPT base directory : C:\wapt2015-01-13 09:02:33,408 DEBUG Package cache dir : C:\wapt\cache2015-01-13 09:02:33,434 DEBUG WAPT DB Structure version;: 20140410FATAL ERROR : Traceback (most recent call last):File "<string>", line 833, in mainFile "C:\wapt\common.py", line 4010, in register_computerself.delete_param('uuid')File "C:\wapt\common.py", line 5260, in delete_paramself.waptdb.delete_param(name)File "C:\wapt\common.py", line 907, in delete_paramlogger.critical(u'Unable to delete param %s : %s' % (name,value))NameError: global name 'value' is not defined
Traceback (most recent call last):File "<string>", line 980, in <module>File "<string>", line 833, in mainFile "C:\wapt\common.py", line 4010, in register_computerself.delete_param('uuid')File "C:\wapt\common.py", line 5260, in delete_paramself.waptdb.delete_param(name)File "C:\wapt\common.py", line 907, in delete_paramlogger.critical(u'Unable to delete param %s : %s' % (name,value))NameError: global name 'value' is not definedException at 0043FF88: EPyNameError:exceptions.NameError: global name 'value' is not defined.
Le 12 janvier 2015 19:27, Hubert TOUVET <htouvet@tranquil.it> a écrit :
Pour avoir plus d'information sur l'erreur, pouvez-vous poster le résultat de la commande avec le log debug activé (option "-l debug"):
wapt-get -l debug register
Merci.
Hubert
Le 12/01/2015 10:15, GUIET Florence a écrit :
FlorenceMerci d'avance,Bonjour,
Pour mon stage, on m'a demandé de mettre en place avec des machines virtuelles une solution WAPT.
J'ai donc installé un serveur WAPT sous Linux avec son dépôt. Puis un Windows 7 possédant la console de WAPT et enfin un client sous Windows 7.
Après l'installation de mon serveur, j'ai lancé l'installation de la console WAPT, mon maître de stage m'a dit d'utiliser la commande "wapt-get register" pour que le serveur prenne bien en compte le pc dans sa liste.
Mais quand je la lance j'obtiens le message d'erreur suivant : "FATAL ERROR : NameError : global name 'value' is not defined" et aucun des membres du service n'est capable de trouver la source de l'erreur.
Je me retourne donc vers vous, pour y voir plus claire.
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
-- Hubert TOUVET Tranquil IT Systems 02 40 97 57 57
_______________________________________________
WAPT mailing list
WAPT@lists.tranquil.it
http://lists.tranquil.it/listinfo/wapt
-- Hubert TOUVET Tranquil IT Systems 02 40 97 57 57