Mode_setter.py getting hung up on waiting for GUIDED mode

the Pymavlink=2.0.6 worked well for me to enter to the guided mode but prohibit me to launch the QGC with dronekit script (part3). Any ideas on how to solve this?