I've read the other questions here about problems installing lxml, but the solutions aren't working for me. The problem is that I can't import etree: [
Here is what I did.
The install of the libxml2 and libxslt seemed to go fine. All the installation did -- there were no errors reported anyway. Any ideas on what I need to do? thanks, --Tim asked 21 Sep '14, 17:34 tiarno |
Did you build the latest versions? Did you build stable or trunk versions? The error is related to how the code is written, this is shown in a stack overflow article which explains how to fix it, if it is happening in code you did not write you should check with the developers to see why or if there is a version which does not have the issue. answered 21 Sep '14, 21:46 johns hi, thanks. I installed the latest stable version (lxml-3.4.0.tar.gz). I have already tried adding -lrt to my CFLAGS, but that had no effect; maybe I need to edit the Makefile to get it the correct position (according to the StackOverflow answer). I will try that and then try a lower version of lxml. However, lxml is extensively tested, and it looks like other users on webfaction (using a different host) have had no problems since the libxml2 and libxslt libraries were already installed. Mine is web49. thanks, --Tim
(21 Sep '14, 21:55)
tiarno
manually adding -lrt inside the makefile results in much the same but not identical results. The build goes fine, no errors, but
so the error is different. I'm thinking this is a problem with the machine's installed libs. Should this be a ticket instead of a thread here?
(21 Sep '14, 22:27)
tiarno
|
I did get this to work finally. And then realized I needed to install it so my web app can use it. So after I got it working the first time, I uninstalled from my root lib, and gave the following command in my app root directory.
answered 04 Oct '14, 19:47 tiarno Hi, can you please provide more details on how you got this to work? I tried running
(28 Feb '15, 11:56)
mike
|
Hi Mike, Sorry I do not know anything other than what worked for me, but I do see this question and answer which is almost the same as yours: https://community.webfaction.com/questions/3859/problem-installing-lxml-etree --Tim answered 28 Feb '15, 19:00 tiarno Thanks anyways.
(01 Mar '15, 11:46)
mike
|