简体   繁体   中英

Ovirt Python SDK error during openuds installation

I get the following error, How to rectify this issue?

 from ovirtsdk.xml import params
 ImportError: No module named ovirtsdk.xml

This is the complete log file, Why I get this error and How to rectify it?

python manage.py createcachetable
Traceback (most recent call last):
  File "manage.py", line 9, in <module>
    execute_from_command_line(sys.argv)
  File "/home/hari/openuds/testuds-master/Python-2.7.14/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "/home/hari/openuds/testuds-master/Python-2.7.14/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 327, in execute
    django.setup()
  File "/home/hari/openuds/testuds-master/Python-2.7.14/env/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/hari/openuds/testuds-master/Python-2.7.14/env/lib/python2.7/site-packages/django/apps/registry.py", line 115, in populate
    app_config.ready()
  File "/home/hari/openuds/testuds-master/server/src/uds/__init__.py", line 72, in ready
    from . import services  # to make sure that the packages are initialized at this point
  File "/home/hari/openuds/testuds-master/server/src/uds/services/__init__.py", line 73, in <module>
    __init__()
  File "/home/hari/openuds/testuds-master/server/src/uds/services/__init__.py", line 63, in __init__
    __import__('uds.services.' + name, globals(), locals(), [])
  File "/home/hari/openuds/testuds-master/server/src/uds/services/OVirt/__init__.py", line 31, in <module>
    from .OVirtProvider import Provider
  File "/home/hari/openuds/testuds-master/server/src/uds/services/OVirt/OVirtProvider.py", line 44, in <module>
    from . import client
  File "/home/hari/openuds/testuds-master/server/src/uds/services/OVirt/client/__init__.py", line 33, in <module>
    from . import oVirtClient3;
  File "/home/hari/openuds/testuds-master/server/src/uds/services/OVirt/client/oVirtClient3.py", line 7, in <module>
    from ovirtsdk.xml import params
ImportError: No module named ovirtsdk.xml

You are missing the ovirt-engine-sdk-python package. Note that it requires version 3 of that package, so you can install it via pip like this:

$ pip install ovirt-engine-sdk-python==3.6.9.2

Don't run:

$ pip install ovirt-engine-sdk-python

which would install latest(4) version of the SDK, which isn't compatible with above code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM