Skip to content

Instantly share code, notes, and snippets.

@scalaview
Created June 2, 2019 13:45
Show Gist options
  • Save scalaview/29f67ac63c6e0c3b674b2b711a620f43 to your computer and use it in GitHub Desktop.
Save scalaview/29f67ac63c6e0c3b674b2b711a620f43 to your computer and use it in GitHub Desktop.
macOS 10.13.4 lxml does not build with Xcode 9
from lxml import etree
get error:
ImportError: dlopen(/etc/locale/lib/python3.6/site-packages/lxml/etree.cpython-36m-darwin.so, 2): Symbol not found: __PyErr_FormatFromCause
solution:
pip uninstall lxml
python3 -mvenv /tmp/lxml
source /tmp/lxml/bin/activate
pip install lxml --no-binary :all:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment