professionals! I really need your advice.
I have a program written in Python 3.11. Its task is to read the MSSQL database and send notifications to Telegram. The program uses the following libraries: sys, pyodbc, datetime, os, win32api, requests, psutil, smtplib, re, requests.exceptions, cryptography.fernet, PySide6.QtWidgets. The program is compiled using Nuitka into a single executable exe file. The executable file runs on Windows 10-11 computers that do not have Python installed. The first time after launch (from 3 to 25 days) everything works correctly, but then the cacert.pem certificate disappears in the Temp folder. The program stops sending messages to Telegram and returns an error: “An error occurred: Could not find a suitable TLS CA certificate bundle, invalid path: C:Users …AppDataLocalTemp…certificacert.pem”
This happens on several unrelated computers.
All other temporary files in the Temp folder remain, only cacert.pem disappears. There are no problems with allowing access to the folder or changing its location, it is the cacert.pem file that disappears, the folder becomes empty. When the program is restarted, cacert.pem appears, and the program works correctly. But after a while, everything repeats. This problem did not exist before. It probably appeared after the addition of the cryptography library, which is used to encrypt the .ini file. But it’s not a fact that this is the reason.
I’ve searched the Internet, but I haven’t found an answer yet. Am I missing something?
Fil Grev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.