Logger' object has no attribute 'INFO'
21 Sep 2023 06:34 - 21 Sep 2023 06:40 #281281
by mariusl
Regards
Marius
www.bluearccnc.com
Logger' object has no attribute 'INFO' was created by mariusl
Hi
I am using versa_probe with Gmoccapy on a master config. This error comes up on almost every action.
Is there something that I have to set?
I am using versa_probe with Gmoccapy on a master config. This error comes up on almost every action.
Is there something that I have to set?
Traceback (most recent call last):File "/usr/lib/python3/dist-packages/qtvcp/widgets/versa_probe.py", line 307, in read_stderrorself.parse_input(line)File "/usr/lib/python3/dist-packages/qtvcp/widgets/versa_probe.py", line 323, in parse_inputif LOG.getEffectiveLevel() < LOG.INFO:AttributeError: 'Logger' object has no attribute 'INFO'
Regards
Marius
www.bluearccnc.com
Last edit: 21 Sep 2023 06:40 by mariusl.
Please Log in or Create an account to join the conversation.
21 Sep 2023 13:34 - 21 Sep 2023 13:36 #281307
by cmorley
Replied by cmorley on topic Logger' object has no attribute 'INFO'
You could change the < LOG.INFO to < 20
In versa_probe.py
And I'll try to get to thecreal fix tonight. Weird that it dirsntverrorclike that in qtdragon.
In versa_probe.py
And I'll try to get to thecreal fix tonight. Weird that it dirsntverrorclike that in qtdragon.
Last edit: 21 Sep 2023 13:36 by cmorley.
Please Log in or Create an account to join the conversation.
21 Sep 2023 13:44 #281309
by Aciera
Replied by Aciera on topic Logger' object has no attribute 'INFO'
should INFO not be lowercase?
LOG.info
LOG.info
Please Log in or Create an account to join the conversation.
21 Sep 2023 13:46 #281311
by cmorley
Replied by cmorley on topic Logger' object has no attribute 'INFO'
No thatcteferences the info function rather the the info integer. It tried it.
For whatever reason LOG object doesn't have the log level variables defined.
For whatever reason LOG object doesn't have the log level variables defined.
Please Log in or Create an account to join the conversation.
21 Sep 2023 13:47 #281312
by cmorley
Replied by cmorley on topic Logger' object has no attribute 'INFO'
Importing logging andxthen usingvlogging.INFO works
Please Log in or Create an account to join the conversation.
21 Sep 2023 13:58 #281314
by mariusl
Regards
Marius
www.bluearccnc.com
Replied by mariusl on topic Logger' object has no attribute 'INFO'
Tried that already/ It gives some other error.should INFO not be lowercase?
LOG.info
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
23 Sep 2023 01:15 #281415
by cmorley
Replied by cmorley on topic Logger' object has no attribute 'INFO'
I pushed a fix for this.
The following user(s) said Thank You: mariusl
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.167 seconds