Jun-28-2022, 03:42 PM
Hi
I'm on a Raspberry pi and VSCode trying to import 'logging' but I get an error despite it should already be with python 3.9.2.
When I import 'math' from a terminal in VSCode, it works ok. But importing logging doesn't.
Trying to import 'logging' from a terminal outside VSCode works !
Something strange is that the error refers to part of my code in VSCode
"from logging.handlers import RotatingFileHandler
ModuleNotFoundError: No module named 'logging.handlers'; 'logging' is not a package"
I'm on a Raspberry pi and VSCode trying to import 'logging' but I get an error despite it should already be with python 3.9.2.
When I import 'math' from a terminal in VSCode, it works ok. But importing logging doesn't.
Trying to import 'logging' from a terminal outside VSCode works !
Something strange is that the error refers to part of my code in VSCode
"from logging.handlers import RotatingFileHandler
ModuleNotFoundError: No module named 'logging.handlers'; 'logging' is not a package"