lxml==4.1.1 fails to build on macos with python3
See original GitHub issueHey,
first of all thanks a lot for this project, very much appreciated.
I favor of changing to python3 I reworked my install and update script. Unfortunately when using on macos 10.13.6 with latest homebrew python 3.7.0 the package lxml==4.1.1 fails to build.
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.13-x86_64-3.7/src/lxml/etree.o -L/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lxslt -lexslt -lxml2 -lz -lm -o build/lib.macosx-10.13-x86_64-3.7/lxml/etree.cpython-37m-darwin.so
ld: file not found: /usr/lib/system/libsystem_containermanager.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
----------------------------------------
Failed building wheel for lxml
When I change it to lxml>=4.1.1 in requirements.txt it pulls lxml 4.2.4 and everything seems to work and build nicely.
I don`t know if it is just the requirements.txt file that has to be updated or if something else is needed.
Thanks for fixing in advance.
Kind regards
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Cannot install Lxml on Mac OS X 10.9 - Stack Overflow
I want to install Lxml so I can then install Scrapy. When I updated my Mac today it wouldn't let me reinstall lxml,...
Read more >scikit-learn fails to build on macOS 11 Big Sur #18861 - GitHub
Describe the bug I just tried to build scikit-learn on the new macOS and ran into a build error. It seems clang does...
Read more >Not Able to Build Some Versions of Python on M1 at 12.3.1
I trying to build older version of python such as 3.6, 3.7, 3.8 using pyenv and having build failures. I am on apple...
Read more >Bug #1969912 “Add support for Python 3.11” - lxml
On Python 3.11, installation fails with the following error. ... Building against libxml2 2.9.4 and libxslt 1.1.29 running install
Read more >lxml - PyPI
Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Those are neat scripts, @tiiiecherle.
I would be happy to entertain a PR that mentions these scripts in the Interesting Applications section of the readme_template.md file.
Closing this issue now. Thanks Nissar @funilrys for handling this.
Oh and one more thing… I put together a script that installs an update-script and and a launchd service that launches every morning and on every reboot to check if x days (in my case 4 days) are over and updates if true.
https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_hosts_file/install_hosts_and_launchdservice.sh
Just be sure when installing, that the directory structure from install script to update script are kept as is is in the repo.
The service and the update file are here: https://github.com/tiiiecherle/osx_install_config/tree/master/09_launchd/9b_hosts_file/launchd_and_script
Just in case it helps anyone 😉