python-can icon indicating copy to clipboard operation
python-can copied to clipboard

Logging Lib Import

Open jakka351 opened this issue 1 year ago • 2 comments

Describe the bug

AttributeError: module 'logging' has no attribute 'getLogger'

To Reproduce

I am unable to use the python-can library because of this issue - I have checked that it is not my python installation that has the issue as I swapped from Linux to Windows and have the same error with different python installations across any code that uses the logging library So this might not be a python-can specific issue

Expected behavior

I expected my program to run, however it fails due to library import error

Additional context

Using PySimpleGUI and Python-CAN. Debian Linux Python 3.9 Windows 10 Python 3.9 Same laptop Dell Latitude OS and version: Python version: python-can version: python-can interface/s (if applicable): socketcan/serial

Traceback and logs
def func():
    return "hello, world!"

jakka351 avatar Jul 31 '22 09:07 jakka351

logging.getLogger is a builtin function There is another logging module or variable in your namespace, rename or remove it.

zariiii9003 avatar Jul 31 '22 10:07 zariiii9003

@jakka351 Were you able to resolve this issue?

j-c-cook avatar Aug 06 '22 14:08 j-c-cook

all good!

jakka351 avatar Aug 16 '22 09:08 jakka351