Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named six.moves.xmlrpc_client #70

Open
bmssas opened this issue Apr 18, 2018 · 5 comments
Open

ImportError: No module named six.moves.xmlrpc_client #70

bmssas opened this issue Apr 18, 2018 · 5 comments

Comments

@bmssas
Copy link

bmssas commented Apr 18, 2018

ciao, ho 1 pool di 2 host con xenserver 7.0
quando provo ad eseguire ./VmBackup.py vedo l'errore

Traceback (most recent call last):
File "./VmBackup.py", line 68, in
import sys, time, os, datetime, subprocess, re, shutil, XenAPI, smtplib, re, base64, socket
File "/snapshot/NAUbackup/XenAPI.py", line 58, in
import six.moves.xmlrpc_client as xmlrpclib
ImportError: No module named six.moves.xmlrpc_client

potete aiutarmi?

grazie in anticipo

@NAUbackup
Copy link
Owner

Could you please show me what your full command line looks like?
Did you install the latest python module according to the installation instructions?

Ciao!

@bmssas
Copy link
Author

bmssas commented Apr 18, 2018

hi any command returns the same error.
how to install the latest python module?
can you help me?
thank you

@NAUbackup
Copy link
Owner

It is explained step 6 in the README file:
Install the XenServer Software Development Kit from www.citrix.com/downloads - download the XenServer and copy file XenAPI.py into the same directory where VmBackup.py exists.

To verfy XenApi, execute VmBackup with a valid password and some simple vm-name.
Example: ./VmBackup.py password vm-name preview
Note: if password has any special characters, then escape with back slash:
./VmBackup.py pass$word vm-name

@bmssas
Copy link
Author

bmssas commented Apr 18, 2018

hi, what is the procedure to install sdk? I downloaded sdk and copied the xenapi.py file into the same directory as Vmbackup.py
Do I have to do anything else?

@NAUbackup
Copy link
Owner

I believe that is all. Make sure it has read and possibly also execute privileges set. If you run "ls -l XenApi.py" there should be at least an "r" that shows up on the permissions. I'm not at a point where I can conveniently check directly what the exact permission settings are, but try running VmBackup.py now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants