You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doing from ovirtsdk4 import readers from ovirtsdk4/init.py causes python3 to look for a reader attribute declared on ovirtsdk4/init.py.... which it never will because it needs to reference another file.
if running the tests from outside the repo, you will get:
File "/build/source/sdk/tests/test_xml_writer.py", line 21, in <module>
from ovirtsdk4.xml import XmlWriter
File "/nix/store/8vhyrj1lvf1fmw7m3asavylf0scdippk-python3.7-ovirt-engine-sdk-python-4.4.0/lib/python3.7/site-packages/ovirtsdk4/__init__.py", line 1033, in <module>
from ovirtsdk4 import readers # noqa: F401
ImportError: cannot import name 'readers' from 'ovirtsdk4' (/nix/store/8vhyrj1lvf1fmw7m3asavylf0scdippk-python3.7-ovirt-engine-sdk-python-4.4.0/lib/python3.7/site-packages/ovirtsdk4/__init__.py)
cc @oliel
Hello @jonringer thank you for reporting the issue. This project is not using github issues to report bugs. We use bugzilla. Ori can you please take a look and close?
doing
from ovirtsdk4 import readers
from ovirtsdk4/init.py causes python3 to look for a reader attribute declared on ovirtsdk4/init.py.... which it never will because it needs to reference another file.if running the tests from outside the repo, you will get:
offending line:
ovirt-engine-sdk/sdk/lib/ovirtsdk4/__init__.py
Line 1033 in 695ff80
solution:
change to relative imports:
from ovirtsdk4 import readers
->from .reader import *
The text was updated successfully, but these errors were encountered: