Compilation/Installation problems with Mac 10.6 and 10.7
Hi all, My latest attempt at installing lxml on Mac is on Mac OSX Lion 10.7.3 I installed with `pip install lxml`. When I open up a python prompt and run: `from lxml import etree` I get the _htmlParseChunk error message: "ImportError: dlopen(/Users/jacob/code/gc/crawler/env/lib/python2.7/site-packages/lxml/etree.so, 2): Symbol not found: _htmlParseChunk Referenced from: /Users/jacob/code/gc/crawler/env/lib/python2.7/site-packages/lxml/etree.so Expected in: flat namespace in /Users/jacob/code/gc/crawler/env/lib/python2.7/site-packages/lxml/etree.so" Any pointers would be welcome. Thanks! -Jake
On Thu, Mar 15, 2012 at 5:40 PM, Jake Lyles
Hi all,
My latest attempt at installing lxml on Mac is on Mac OSX Lion 10.7.3
I installed with `pip install lxml`. When I open up a python prompt and run:
`from lxml import etree`
I get the _htmlParseChunk error message:
"ImportError: dlopen(/Users/jacob/code/gc/crawler/env/lib/python2.7/site-packages/lxml/etree.so, 2): Symbol not found: _htmlParseChunk Referenced from: /Users/jacob/code/gc/crawler/env/lib/python2.7/site-packages/lxml/etree.so Expected in: flat namespace in /Users/jacob/code/gc/crawler/env/lib/python2.7/site-packages/lxml/etree.so"
I recommend you install from source, it can sound stupid but i download from site then, python setup.py install and works ok. Regards,
Any pointers would be welcome.
Thanks! -Jake _________________________________________________________________ Mailing list for the lxml Python XML toolkit - http://lxml.de/ lxml@lxml.de https://mailman-mail5.webfaction.com/listinfo/lxml
-- Cristian Salamea @ovnicraft
Jake Lyles, 15.03.2012 23:40:
My latest attempt at installing lxml on Mac is on Mac OSX Lion 10.7.3
I installed with `pip install lxml`. When I open up a python prompt and run:
`from lxml import etree`
I get the _htmlParseChunk error message:
"ImportError: dlopen(/Users/jacob/code/gc/crawler/env/lib/python2.7/site-packages/lxml/etree.so, 2): Symbol not found: _htmlParseChunk Referenced from: /Users/jacob/code/gc/crawler/env/lib/python2.7/site-packages/lxml/etree.so Expected in: flat namespace in /Users/jacob/code/gc/crawler/env/lib/python2.7/site-packages/lxml/etree.so"
Any pointers would be welcome.
Does this help? https://github.com/lxml/lxml/blob/master/INSTALL.txt Stefan
participants (3)
-
Jake Lyles
-
Ovnicraft
-
Stefan Behnel