diff --git a/python/paddle_serving_server/monitor.py b/python/paddle_serving_server/monitor.py index e34cf2476fcaa5febe8cd29849a0dcfc0e96265e..74de76b3de3f3aff36230d94c477b1141c8d2d65 100644 --- a/python/paddle_serving_server/monitor.py +++ b/python/paddle_serving_server/monitor.py @@ -126,6 +126,7 @@ class FTPMonitor(Monitor): self._ftp.login(username, password) def _exist_remote_donefile(self): + import ftplib try: donefile_path = '{}/{}'.format(self._remote_path, self._remote_donefile_name)