Shruti Agarwal
Shruti Agarwal

Reputation: 897

Error while importing LXML

I was importing "from docx import Document". This gave an error

File "", line 1, in File "/usr/local/lib/python2.7/site-packages/docx.py", line 17, in from lxml import etree ImportError: /usr/local/lib/python2.7/site-packages/lxml-3.7.0-py2.7-linux-i686.egg/lxml/etree.so: undefined symbol: gcry_check_version

Same error I am getting while trying to install lxml.

Python Version: 2.7, OS: CentOS release 5.8

Upvotes: 1

Views: 527

Answers (1)

Vinay
Vinay

Reputation: 962

Libcrypt Issue

Try:

LD_PRELOAD=/usr/lib/libgcrypt.so
export LD_PRELOAD

This should fix it

Upvotes: 2

Related Questions