Skip to content Skip to sidebar Skip to footer

Undefined Symbol: Pyfpe_jbuf Error While Using 'lxml' On Ubuntu

I am trying to import 'lxml' library into my python program as follows. from lxml import etree However, I am getting an error as 'undefined symbol: PyFPE_jbuf'. Here is the entir

Solution 1:

I had this same issue, and was able to get past it reinstalling lxml with:

pip install lxml --no-use-wheel

Depending on your version of pip, you may also use:

pip install lxml --no-binary :all:

Solution 2:

I've just come across this on one of my systems. On my system this comes from switching from system Python to a custom one but keeping the wheels around.

To fix this:

pip uninstall lxml
cd 
find .cache -name 'lxml*cp34*.whl'# check there is a wheel 
find .cache -name 'lxml*cp34*.whl' -delete # remove it
pip install lxml

Thanks to @moo-_- for solving this in another context. See https://stackoverflow.com/a/6893563/2385133 for further details.

Post a Comment for "Undefined Symbol: Pyfpe_jbuf Error While Using 'lxml' On Ubuntu"