Cannot import etree in debug
Bug #1797445 reported by
CoryKramer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Using a release executable (python.exe) I am able import etree
from lxml import etree
However if I try to do this from a debug executable (python_d.exe) I get the message
ImportError: cannot import name 'etree'
I often need to use the debug executable to step across into, for example, debug C++ code from python.
The following is my system information:
Python : sys.version_
lxml.etree : (4, 2, 4, 0)
libxml used : (2, 9, 5)
libxml compiled : (2, 9, 5)
libxslt used : (1, 1, 30)
libxslt compiled : (1, 1, 30)
To post a comment you must log in.
I don't know what exactly "python_d.exe" is. Does it just contain additional debug symbols or is it a dedicated debug build of CPython, with all the additional debug checks? If the latter, then you also need a corresponding build of lxml for it. We don't provide that on PyPI, because as this ticket seems to suggest, it would almost never be used.