Backup manager shows the error: Runtime error in pmmcli, cannot import name StringIO

Refers to:

  • Plesk 11.5 for Linux
  • Plesk 12.0 for Windows

Created:

2016-11-16 12:43:39 UTC

Modified:

2016-12-21 19:04:21 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Backup manager shows the error: Runtime error in pmmcli, cannot import name StringIO

Symptoms

Backup manager shows the error:

    Runtime error in pmmcli: cannot import name StringIO

From pmmcli.log:

    DEBUG: --> <pmmcli.GetTasksListAction object at 0x023DEA10>
CRITICAL: Runtime error in pmmcli:
<type 'exceptions.ImportError'> cannot import name StringIO
Traceback (most recent call last):
File "C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\share\\pmmcli\\pmmcli.py", line 2650, in main
data_action_response, errcode_response, error_message = actions.get(sys.argv[1][2:])(parameters)
File "C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\share\\pmmcli\\pmmcli.py", line 2489, in get_tasks_list
return ActionRunner(GetTasksListAction, task_params, deprecated_params).doActivity()
File "C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\share\\pmmcli\\pmmcli.py", line 160, in __init__
self.processor = ActionProcessor(parameter_stdin, parameters)
File "C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\share\\pmmcli\\pmmcli.py", line 1702, in __init__
PMMCliAction.__init__(self, parameter_stdin, parameters)
File "C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\share\\pmmcli\\pmmcli.py", line 197, in __init__
_logger.info("stdin: " + maskPassword(parameter_stdin))
File "C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\share\\pmmcli\\pmmcli.py", line 187, in maskPassword
return doc.toxml()
File "C:\\PROGRA~2\\PARALL~1\\Plesk\\python\\lib\\xml\\dom\\minidom.py", line 46, in toxml
return self.toprettyxml("", "", encoding)
File "C:\\PROGRA~2\\PARALL~1\\Plesk\\python\\lib\\xml\\dom\\minidom.py", line 51, in toprettyxml
writer = _get_StringIO()
File "C:\\PROGRA~2\\PARALL~1\\Plesk\\python\\lib\\xml\\dom\\minidom.py", line 1907, in _get_StringIO
from StringIO import StringIO
ImportError: cannot import name StringIO

Cause

File "C:\\Program Files (x86)\\Parallels\\Plesk\\python\\Lib\\StringIO.pyc" is corrupted or was replaced.

Resolution

Make sure that file "C:\\Program Files (x86)\\Parallels\\Plesk\\python\\Lib\\StringIO.pyc" was not modified. If it was modified, just rename this file. New one will be generated automatiacally.

Have more questions? Submit a request
Please sign in to leave a comment.