Is the battery pack connected to the USB connector?
Are grounds of all devices connected together?
Some battery banks will turn off if the current draw is too low.
scale.set_scale(), without an argument may cause the system to hang, try scale.set_scale(1)