<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 10, 2016 at 8:19 PM, Adam Litke <span dir="ltr"><<a href="mailto:alitke@redhat.com" target="_blank">alitke@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 10/05/16 18:08 +0300, Dan Kenigsberg wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, May 09, 2016 at 02:48:43PM -0400, Adam Litke wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
When running make check on my local system I often (but not always)<br>
get the following error:<br>
</blockquote>
<br>
Do you have any clue related to when this happens? (your pwd,<br>
pythonpath)<br>
</blockquote>
<br></span>
Maybe it's a side effect of the way nose loads and runs tests?<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Did it begin with the recent move of netinfo under vdsm.network?<br>
<a href="https://gerrit.ovirt.org/56713" rel="noreferrer" target="_blank">https://gerrit.ovirt.org/56713</a> (CommitDate: Thu May 5) or did you see it<br>
earlier?<br>
</blockquote>
<br></span>
That's possible. It only started happening recently. It seems to<br>
fail only when run under 'make check' but not when run via<br>
./run_tests_local.sh.</blockquote><div><br></div><div>Is it possible that on the same machine you have installed an older vdsm version<br></div><div>and it somehow conflicts? (resolving vdsm from the site-packages instead from<br></div><div>the local workspace)<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
$ rpm -qa | grep libvirt-python<br>
libvirt-python-1.2.18-1.fc23.x86_64<br>
<br>
<snip><br>
<br>
======================================================================<br>
ERROR: Failure: ImportError (No module named 'libvirt')<br>
----------------------------------------------------------------------<br>
Traceback (most recent call last):<br>
File "/usr/lib/python3.4/site-packages/nose/failure.py", line 39, in<br>
runTest<br>
raise self.exc_val.with_traceback(self.tb)<br>
File "/usr/lib/python3.4/site-packages/nose/loader.py", line 418, in<br>
loadTestsFromName<br>
addr.filename, addr.module)<br>
File "/usr/lib/python3.4/site-packages/nose/importer.py", line 47,<br>
in importFromPath<br>
return self.importFromDir(dir_path, fqname)<br>
File "/usr/lib/python3.4/site-packages/nose/importer.py", line 94,<br>
in importFromDir<br>
mod = load_module(part_fqname, fh, filename, desc)<br>
File "/usr/lib64/python3.4/imp.py", line 235, in load_module<br>
return load_source(name, filename, file)<br>
File "/usr/lib64/python3.4/imp.py", line 171, in load_source<br>
module = methods.load()<br>
File "<frozen importlib._bootstrap>", line 1220, in load<br>
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked<br>
File "<frozen importlib._bootstrap>", line 1129, in _exec<br>
File "<frozen importlib._bootstrap>", line 1471, in exec_module<br>
File "<frozen importlib._bootstrap>", line 321, in<br>
_call_with_frames_removed<br>
File "/home/alitke/src/vdsm/tests/network/models_test.py", line 27,<br>
in <module><br>
from vdsm.network.netinfo import bonding, mtus<br>
File "/home/alitke/src/vdsm/lib/vdsm/network/netinfo/__init__.py",<br>
line 26, in <module><br>
from vdsm import libvirtconnection<br>
File "/home/alitke/src/vdsm/lib/vdsm/libvirtconnection.py", line 29,<br>
in <module><br>
import libvirt<br>
ImportError: No module named 'libvirt'<br>
<br>
----------------------------------------------------------------------<br>
Ran 234 tests in 11.084s<br>
<br>
FAILED (SKIP=42, errors=1)<br>
</blockquote></blockquote>
<br></div></div><span class="HOEnZb"><font color="#888888">
-- <br>
Adam Litke</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a><br>
</div></div></blockquote></div><br></div></div>