After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 784327 - jedi won't load because of an lxml exception
jedi won't load because of an lxml exception
Status: RESOLVED FIXED
Product: gnome-builder
Classification: Other
Component: plugins
3.25.x
Other Linux
: Normal major
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-06-29 09:07 UTC by Alexandre Franke
Modified: 2017-07-01 04:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
jedi: silence xml parser warning (1.28 KB, patch)
2017-07-01 04:21 UTC, Christian Hergert
committed Details | Review

Description Alexandre Franke 2017-06-29 09:07:06 UTC
$ jhbuild run gnome-builder
jedi not found, python auto-completion not possible.
Exception in thread Thread-1:
Traceback (most recent call last):
  • File "/usr/lib64/python3.5/threading.py", line 914 in _bootstrap_inner
    self.run()
  • File "/usr/lib64/python3.5/threading.py", line 862 in run
    self._target(*self._args, **self._kwargs)
  • File "/home/afranke/src/jhbuild/install/lib/gnome-builder/plugins/jedi_plugin.py", line 301 in update
    namespace = tree.find('core:namespace', namespaces=ns)
  • File "src/lxml/lxml.etree.pyx", line 2191 in lxml.etree._ElementTree.find
  • File "src/lxml/lxml.etree.pyx", line 1874 in lxml.etree._ElementTree._assertHasRoot
AssertionError: ElementTree not initialized, missing root

Comment 1 Christian Hergert 2017-07-01 04:21:21 UTC
Created attachment 354754 [details] [review]
jedi: silence xml parser warning
Comment 2 Christian Hergert 2017-07-01 04:22:01 UTC
You'll certainly run into other jedi issues unless you have Jedi 0.9,
but this fixes the issue in the bug.

Attachment 354754 [details] pushed as 294920f - jedi: silence xml parser warning