Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beats 7.9.3 and [email protected] migration #63381

Closed
wants to merge 4 commits into from

Conversation

fxcoudert
Copy link
Member

Let's try this out…

@BrewTestBot BrewTestBot added go Go use is a significant feature of the PR or issue python Python use is a significant feature of the PR or issue labels Oct 23, 2020
@fxcoudert
Copy link
Member Author

Fails to build with: ImportError: cannot import name 'Feature' from 'setuptools'

2020-10-23T22:17:02.9604380Z �[34m==>�[0m �[1mmake PIP_INSTALL_PARAMS=--no-binary :all python-env�[0m
2020-10-23T22:17:02.9604940Z     ERROR: Command errored out with exit status 1:
2020-10-23T22:17:02.9608360Z      command: /private/tmp/filebeat-20201023-90682-umj0yl/src/github.com/elastic/beats/filebeat/build/python-env/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-aw54l4y6/markupsafe/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-aw54l4y6/markupsafe/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/tmp/pip-pip-egg-info-ygjnvriy
2020-10-23T22:17:02.9611460Z          cwd: /private/tmp/pip-install-aw54l4y6/markupsafe/
2020-10-23T22:17:02.9612020Z     Complete output (5 lines):
2020-10-23T22:17:02.9612450Z     Traceback (most recent call last):
2020-10-23T22:17:02.9612870Z       File "<string>", line 1, in <module>
2020-10-23T22:17:02.9613990Z       File "/private/tmp/pip-install-aw54l4y6/markupsafe/setup.py", line 6, in <module>
2020-10-23T22:17:02.9614770Z         from setuptools import setup, Extension, Feature
2020-10-23T22:17:02.9616760Z     ImportError: cannot import name 'Feature' from 'setuptools' (/private/tmp/filebeat-20201023-90682-umj0yl/src/github.com/elastic/beats/filebeat/build/python-env/lib/python3.9/site-packages/setuptools/__init__.py)
2020-10-23T22:17:02.9618260Z     ----------------------------------------
2020-10-23T22:17:02.9618900Z ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
2020-10-23T22:17:02.9619970Z make: *** [python-env] Error 1

@fxcoudert
Copy link
Member Author

Pillow wants jpeg and freetype

@fxcoudert
Copy link
Member Author

The basic problem is that Pillow is finding stuff (this time, some freetype headers) in /opt/X11. Other formulas patch this in the Pillow resource, setting ZLIB_ROOT, JPEG_ROOT, and FREETYPE_ROOT inside setup.py, which is crude but effective; but here I don't know how to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Go use is a significant feature of the PR or issue python Python use is a significant feature of the PR or issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants