SintefManufacturing / python-urx

Python library to control a robot from 'Universal Robots' http://www.universal-robots.com/
GNU Lesser General Public License v3.0
526 stars 275 forks source link

No handlers could be found for logger "ursecmon" #57

Open WwYyFan opened 5 years ago

WwYyFan commented 5 years ago

Hi, I'm new to UR,Below is my code.sometime it works,but sometime it doesn't work.and terminal always output "No handlers could be found for logger "ursecmon" ",how to fix it?

code:

import sys
import urx
from urx.robotiq_two_finger_gripper import Robotiq_Two_Finger_Gripper
import time
if __name__ == '__main__':
    rob = urx.Robot("192.168.0.5")
    time.sleep(0.2)
    try:
        l = 0.1
        v = 0.07
        a = 0.1
        r = 0.05
        print rob.getl()
        rob.movel((0.01,0,0,0,0,0),a,v,relative=True)
        print rob.getl()
    finally:
        rob.close()
        print "true"
        sys.exit()

terminal

No handlers could be found for logger "ursecmon"
('Other: ', 0.9999559698671492)
('Other: ', 0.9999559698671492)
[-0.4806430498593199, 0.27958388855573424, 0.20536912110394498, -2.8349255747274125, -1.3087049374899002, -0.05021175565849725]
('Other: ', 0.9999559698671492)
('Other: ', 0.9999559698671492)
('Other: ', 0.9999559698671492)
true
oroulet commented 5 years ago

That warning is not a bug, just some bad default configuration in very old python versions

WwYyFan commented 5 years ago

@oroulet thanks for reply, and I want to konw what ('Other: ', 0.9999559698671492) means?

DavidYaonanZhu commented 5 years ago

I come up with the same issue, what does it mean? I use python 2.7.

oroulet commented 5 years ago

https://stackoverflow.com/questions/44188270/no-handlers-could-be-found-for-logger

DavidYaonanZhu commented 5 years ago

Then what does ('Other: ', 0.9999559698671492) means? It seems that the robot pose is not correctly printed.

brianFruit commented 5 years ago

I'm having the same issue with the UR5. Looks like this ursecmon is used to monitor the UR at certain frequency. I think it is a symptom of a bigger issue. The "wait" in the movex functions are not working properly as the is_running status output by this ursecmon is always false. I still haven't found the issue yet, I'm hoping it's not hardware related.

kaixin-bai commented 4 years ago

I'm having the same issue with the UR5. Looks like this ursecmon is used to monitor the UR at certain frequency. I think it is a symptom of a bigger issue. The "wait" in the movex functions are not working properly as the is_running status output by this ursecmon is always false. I still haven't found the issue yet, I'm hoping it's not hardware related.

I also have that problem, did you fix it?