Ubuntu 20.04 : Thunderbirds impossible d’enregistrer un fichier

Il était impossible d’ouvrir un dossier ou d’enregistrer un fichier, j »ai donc vu qu’il manquait un package :

$ sudo apt-get install xdg-desktop-portal-gtk
...
Les paquets supplémentaires suivants seront installés :
  xdg-desktop-portal
Les NOUVEAUX paquets suivants seront installés :
  xdg-desktop-portal xdg-desktop-portal-gtk
...

Je pense qu’il manque donc une dépendence entre Thunderbirds et xdg-desktop-portal.

A suivre.

Python/OpenCV : Brouillon : Détection des contours du blob

C’est pas gagné pour faire la détection du contour du blob (en mv4) :

J’ai des problèmes de jaune 🙁

import cv2
import numpy as np 
import matplotlib.pyplot as plt
....
        frame_hsv=cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)

        low_yellow=np.array([10, 125, 100])
        upper_yellow=np.array([60, 220, 220])
        mask_yellow=cv2.inRange(frame_hsv,low_yellow,upper_yellow)

        list_masks=[mask_yellow]
        for i,mask in enumerate(list_masks):

            contours, _=cv2.findContours(mask,cv2.RETR_LIST,cv2.CHAIN_APPROX_NONE)

Sans le polygone (et en mp4):

A suivre.

Issue : NVIDIA GeForce RTX 3060 Laptop GPU with CUDA capability sm_86 is not compatible with the current PyTorch installation.

J’ai eu l’erreur suivante :

NVIDIA GeForce RTX 3060 Laptop GPU with CUDA capability sm_86 is not compatible with the current PyTorch installation.
The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70.
If you want to use the NVIDIA GeForce RTX 3060 Laptop GPU GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/

Pour fixer le problème j’ai fait:

pip3 install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

Voici mon installation :

$ nvidia-smi
Sat Mar 12 13:00:45 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.103.01 Driver Version: 470.103.01 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:01:00.0 On | N/A |
| N/A 42C P0 27W / N/A | 1053MiB / 5946MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1616 G /usr/lib/xorg/Xorg 608MiB |
| 0 N/A N/A 3460 G budgie-wm 33MiB |
| 0 N/A N/A 3959 G ...AAAAAAAA== --shared-files 2MiB |
| 0 N/A N/A 4006 G ...AAAAAAAAA= --shared-files 60MiB |
| 0 N/A N/A 4221 G ...AAAAAAAAA= --shared-files 42MiB |
| 0 N/A N/A 4269 G ...AAAAAAAAA= --shared-files 15MiB |
| 0 N/A N/A 4584 G ...oud-3.4.2-x86_64.AppImage 2MiB |
| 0 N/A N/A 97021 G /usr/lib/firefox/firefox 148MiB |
| 0 N/A N/A 99523 G ...rbird/192/thunderbird-bin 96MiB |
| 0 N/A N/A 99893 G /usr/lib/firefox/firefox 2MiB |
| 0 N/A N/A 100617 G ...826642640911437010,131072 33MiB |
+-----------------------------------------------------------------------------+\

 

Migration d’un fichier PST (Outlook) vers Thunderbird Linux

Etape 1 : Mettre en place le bon soft :

# sudo apt-get -y install pst-utils

Etape 2 : Conversion :

# readpst -u backup-2021.pst
# find out -type d | tac | grep -v '^out$' | xargs -d '\n' -I{} mv {} {}.sbd
# find out -name mbox -type f | xargs -d '\n' -I{} echo '"{}" "{}"' | sed -e 's/\.sbd\/mbox"$/"/' | xargs -L 1 mv
# find out -empty -type d | xargs -d '\n' rmdir
# find out -type d | egrep '*.sbd' | sed 's/.\{4\}$//' | xargs -d '\n' touch
# mv out/Boîte\ de\ réception.sbd/ ../snap/thunderbird/common/.thunderbird/zy3zk9ms.default/Mail/Local\ Folders/.
# touch ../snap/thunderbird/common/.thunderbird/zy3zk9ms.default/Mail/Local\ Folders/Boîte\ de\ réception
# touch ../snap/thunderbird/common/.thunderbird/zy3zk9ms.default/Mail/Local\ Folders/Boîte\ de\ réception.msf

A noter que le ID : zy3zk9ms n’est pas le même suivant les installations. Et aussi j’ai une installation sous snap, donc le répertoire n’est pas standard.

J’ai 42 Go d’email :

# du -sh ../snap/thunderbird/common/.thunderbird/zy3zk9ms.default/Mail/Local\ Folders/
42G	../snap/thunderbird/common/.thunderbird/zy3zk9ms.default/Mail/Local Folders/

Misère.