GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Require older lxml version for OSX compatibility · Issue #39 · buriy/python-readability

Require older lxml version for OSX compatibility #39

New issue
Copy link
New issue
Copy link
Closed
Closed
Require older lxml version for OSX compatibility#39
Copy link

Description

@syllog1sm
syllog1sm
opened on Sep 25, 2013
Issue body actions

Currently, the package does not work on OSX, if installed directly via pip, because "pip install lxml" does not currently work on OSX.

I don't know how many programmer-hours have been lost due to frustrations in installing lxml on OSX, due to OSX shipping out-dated libxml libraries. StackOverflow is littered with questions about it, and even the solutions that worked for other people didn't work for me.

What did work for me to use this package was to simply install an older lxml. If you write a requirements.txt in the root of this package, and write the lxml dependency as e.g.

lxml==2.3

The package will work successfully on OSX. It works up to lxml 2.3.5, and doesn't work with lxml 3.0. I'm not sure what the oldest version your package will work with; I haven't tested that sorry.

P.S Thanks for your work on this package. If this wasn't here, I'd have probably written it myself.

P.P.S. After spending hours on this stupid, stupid problem, let me just say: **** developing on OSX sucks.

Activity

  1. buriy commented on Sep 25, 2013

    @buriy
    buriy
    on Sep 25, 2013
    Owner
    More actions

    Thanks a lot for this message, I believe now it will be easier for other users to google the correct solution to the problem (when they will see this page).

    Generally, I suggest to install lxml manually. Also, on OS X, homebrew and virtualenv are better ways to use python.

  2. buriy commented on Oct 9, 2013

    @buriy
    buriy
    on Oct 9, 2013
    Owner
    More actions

    Added conditional dependency in readability-lxml v0.3

  3. buriy
    closed this as completedon Oct 9, 2013
  4. thinxer commented on Apr 2, 2014

    @thinxer
    thinxer
    on Apr 2, 2014
    More actions

    I don't know about other Mac OS X versions. With Mavericks (10.9) I can now successfully compile the lastest lxml library with pip.

    The old lxml 2.3 library has some bugs that affects my code.

  5. buriy commented on Apr 2, 2014

    @buriy
    buriy
    on Apr 2, 2014
    Owner
    More actions

    Thanks, I'll try now on my 10.9 and update requirements to check for OS version as well.

  6. buriy commented on Apr 2, 2014

    @buriy
    buriy
    on Apr 2, 2014
    Owner
    More actions

    On 10.9.2, newest lxml can be installed with
    export CFLAGS=-Qunused-arguments
    export CPPFLAGS=-Qunused-arguments
    sudo -E pip install --upgrade lxml
    It seems to be working fine with readability-lxml.
    Thanks!

  7. thinxer commented on Apr 2, 2014

    @thinxer
    thinxer
    on Apr 2, 2014
    More actions

    Yeah that's it! Basically everything needs compiling in pip will need that
    flag in Mavericks :D.
    Thanks for the quick reply.

    On Wednesday, April 2, 2014, Yuri Baburov [email protected] wrote:

    On 10.9.2, newest lxml can be installed with
    export CFLAGS=-Qunused-arguments
    export CPPFLAGS=-Qunused-arguments
    sudo -E pip install --upgrade lxml
    It seems to be working fine with readability-lxml.
    Thanks!

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/39#issuecomment-39295652
    .

  8. buriy
    added a commit that references this issue on Apr 2, 2014

    Allow latest lxml on Mac OS X 10.9, see issue #39 for comments and se…

    1a4d369
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.