Latest released version (v7.9.1) python environment fails

When using the latest pinned version (as everyone should be doing in production) the python-dev makefile target fails with setuptools errors

    ImportError: cannot import name 'Feature' from 'setuptools' (/private/tmp/foo/lib/python3.8/site-packages/setuptools/__init__.py)

You can recreate this problem by cloning the repo, checking out v7.9.1 and running

python -m venv myenv
myenv/bin/pip install -r /path/to/beat/libbeat/tests/system/requirements.txt

It appears that this has been fixed on the master branch but the entire python environment seems to have been updated so it's hard to pinpoint exactly which change will fix this as a patch.

The build environment for beats is really, really complicated. Why are there not CI tests for the current release? Is v7.9.1 the current release?

If anyone else needs to get past this problem you can hand-edit libbeat/tests/system/requirements.txt in your modcache and update Markupsafe to 1.1.1

Here's the relevant issue: https://github.com/pallets/markupsafe/issues/116

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.