-
Notifications
You must be signed in to change notification settings - Fork 29
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
"guest" gadget failure #23
Comments
Hi, it is definitely the bug of PyXML. Could you try the patch below? --- PyXML-0.8.4/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py.orig 2010-04-15 22:09:02.000000000 +0900 +++ PyXML-0.8.4/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py 2010-04-15 22:09:26.000000000 +0900 @@ -28,8 +28,8 @@ self._right = right nt = ParsedNodeTest.ParsedNodeTest('node','') ppl = ParsedPredicateList.ParsedPredicateList([]) - as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') - self._middle = ParsedStep.ParsedStep(as, nt, ppl) + _as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') + self._middle = ParsedStep.ParsedStep(_as, nt, ppl) def evaluate(self, context): res = [] --- PyXML-0.8.4/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py.orig 2010-04-15 22:14:57.000000000 +0900 +++ PyXML-0.8.4/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py 2010-04-15 22:14:39.000000000 +0900 @@ -24,8 +24,8 @@ self._rel = rel nt = ParsedNodeTest.ParsedNodeTest('node', '') ppl = ParsedPredicateList.ParsedPredicateList([]) - as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') - self._step = ParsedStep.ParsedStep(as, nt, ppl) + _as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') + self._step = ParsedStep.ParsedStep(_as, nt, ppl) return def evaluate(self, context): |
Similar patch was already applied. Taken from here: https://github.com/karesansui/karesansui/tree/master/sample/patches . Also, i removed all compiled bytecode in package's directory, but the problem still persists. |
Then, try to debug the problem by following instructions below.
|
Hmm, looks like this is some strange xpath issue. Error occured at this line: guest.py:625 path = pool[0].get_info()["target"]["path"] Error message is: ImportError: 'cannot import name ExpandedNameWrapper' But! If i simply launch python console and say "from xml.xpath import ExpandedNameWrapper" it processes without error. Google says, that this is may be caused by either missing include dir in path, but all looks like normal: (pdb) import sys (pdb) print sys.path ['/usr/share/pyshared/site-packages', '/usr/share/pyshared/', '/usr/share/karesansui/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', ' (Both pyxml and karesansui locates in '/usr/share/pyshared/') or it may be some name conflict. `grep -r -n ExpandedNameWrapper karesansui.git/` gives nothing (debugger stopped at buggy line) (pdb) import xml # works (pdb) import xml.xpath # causes error |
Hi, I've installed PyXML by using easy_install command, and then PyXML-0.8.4 has been located in '/usr/local/lib/python2.7/dist-packages'. And Karesansui works well. It seems that ExpandedNameWrapper is imported from 'PyXML-X.X.X/_xmlplus/xpath/CoreFunctions.py'. |
Good question is half of the answer. Change in config: |
karesansui/application.log:
daemon stderr:
output in browser:
Error origin are near this line: karesansui/lib/rest.py:296
libvirt has one test domain, defined via virsh.
How to debug this?
P.S. Now i use latest git version. System is the same: Debian 7.0.
The text was updated successfully, but these errors were encountered: