Bonsoir.
@Laërte.
La v2 ne fonctionne pas chez moi.
Lancement ; mise à jour Ok
bernard@bernard-System-Product-Name:~$ cd grub-enhancer
bernard@bernard-System-Product-Name:~/grub-enhancer$ git pull
remote: Counting objects: 46, done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 46 (delta 16), reused 0 (delta 0), pack-reused 15
Unpacking objects: 100% (46/46), done.
Depuis https://github.com/schyzophrene-asynchrone/grub-enhancer
27b2f85..1547357 master -> origin/master
* [nouvelle branche] v2 -> origin/v2
Mise à jour 27b2f85..1547357
Fast-forward
main.py | 39 ++++++++++++++++++++++++++-------------
1 file changed, 26 insertions(+), 13 deletions(-)
bernard@bernard-System-Product-Name:~/grub-enhancer$
Passage en v2;
bernard@bernard-System-Product-Name:~$ cd grub-enhancer
bernard@bernard-System-Product-Name:~/grub-enhancer$ git checkout v2
Basculement sur la branche 'v2'
Votre branche est à jour avec 'origin/v2'.
Lancement du script en v2 ...
bernard@bernard-System-Product-Name:~/grub-enhancer$ sudo ./main.py
[sudo] password for bernard:
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/path.py", line 98, in io_error_compat
yield
File "/usr/local/lib/python3.4/dist-packages/path.py", line 717, in open
return io.open(self, *args, **kwargs)
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: Path('/ISO_LINUX/Ubuntu_15.04/ubuntu-15.04-desktop-i386.loopback.cfg"}/ISO_LINUX/Ubuntu_15.04/ubuntu-15.04-desktop-i386.loopback.cfg')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./main.py", line 298, in <module>
window = MainWindow()
File "./main.py", line 49, in __init__
self.customEditeur = custom_editor.CustomEditor(self.grubList.getGrubRep())
File "/home/bernard/grub-enhancer/custom_editor.py", line 109, in __init__
self.getCustomEntries()
File "/home/bernard/grub-enhancer/custom_editor.py", line 145, in getCustomEntries
entry = CustomEntry(self.CustomEntriesList, name, isoLocation, permanent, loopbackLocation, mountpoint)
File "/home/bernard/grub-enhancer/custom_editor.py", line 29, in __init__
self.loopbackContent = loopbackLocation.text()
File "/usr/local/lib/python3.4/dist-packages/path.py", line 766, in text
with self.open(mode='r', encoding=encoding, errors=errors) as f:
File "/usr/local/lib/python3.4/dist-packages/path.py", line 717, in open
return io.open(self, *args, **kwargs)
File "/usr/lib/python3.4/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.4/dist-packages/path.py", line 104, in io_error_compat
raise os_err
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: Path('/ISO_LINUX/Ubuntu_15.04/ubuntu-15.04-desktop-i386.loopback.cfg"}/ISO_LINUX/Ubuntu_15.04/ubuntu-15.04-desktop-i386.loopback.cfg')
bernard@bernard-System-Product-Name:~/grub-enhancer$
En supprimant les entrées créées dans le fichier custom.cfg (par le master)
bernard@bernard-System-Product-Name:~/grub-enhancer$ sudo ./main.py
<New>
Traceback (most recent call last):
File "./main.py", line 298, in <module>
window = MainWindow()
File "./main.py", line 49, in __init__
self.customEditeur = custom_editor.CustomEditor(self.grubList.getGrubRep())
File "/home/bernard/grub-enhancer/custom_editor.py", line 109, in __init__
self.getCustomEntries()
File "/home/bernard/grub-enhancer/custom_editor.py", line 148, in getCustomEntries
self.addNewItem()
File "/home/bernard/grub-enhancer/custom_editor.py", line 159, in addNewItem
self.cache[self.grubRep].append(entry)
KeyError: Path('/boot/grub')
bernard@bernard-System-Product-Name:~/grub-enhancer$
En recréant un fichier custom.cf avec;
source ${prefix}/greffons/fonctions_iso.cfg
Lancement en v2
bernard@bernard-System-Product-Name:~/grub-enhancer$ sudo ./main.py
Traceback (most recent call last):
File "./main.py", line 298, in <module>
window = MainWindow()
File "./main.py", line 127, in __init__
self.updateDisplay(self.customEditeur.getCurrent())
File "./main.py", line 283, in updateDisplay
mountpoint = item.getMountPoint()
AttributeError: 'NoneType' object has no attribute 'getMountPoint'
bernard@bernard-System-Product-Name:~/grub-enhancer$
Le master marche bien.
@+. Babdu89 .