from .serial_port import SerialPort
from .socket_port import SocketPort
try:
    from .serial_port import SerialPort
except:
    print('Warnning: serial module is not found, if you want to connect to xArm with serial, please `pip install pyserial==3.4`')
    SerialPort = object
from .socket_port import SocketPort
remove serial error