Problem about create a own beats

when I used cookiecutter follow the instructions to create the exaplebeat,but it seems losing some files.

when do like this:make setup,problem comed:

mkdir -p vendor/github.com/elastic/
cp -R /opt/bobo/work/src/github.com/elastic/beats vendor/github.com/elastic/
rm -rf vendor/github.com/elastic/beats/.git
make update
make[1]: Entering directory `/opt/bobo/work/src/github.com/examplebeat'
New python executable in /opt/bobo/work/src/github.com/examplebeat/build/python-env/bin/python
Installing setuptools, pip, wheel...
Complete output from command /opt/bobo/work/src/g...ython-env/bin/python - setuptools pip wheel:
Traceback (most recent call last):
File "", line 7, in
File "/usr/local/lib/python2.7/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/init.py", line 28, in
File "/usr/local/lib/python2.7/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/vcs/subversion.py", line 9, in
File "/usr/local/lib/python2.7/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/index.py", line 33, in
File "/usr/local/lib/python2.7/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/html5lib/init.py", line 16, in
File "/usr/local/lib/python2.7/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/html5lib/html5parser.py", line 11, in
File "/usr/local/lib/python2.7/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/html5lib/_inputstream.py", line 13, in
File "/usr/local/lib/python2.7/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/html5lib/_utils.py", line 11, in
ImportError: No module named xml.etree.ElementTree

...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
File "/usr/local/bin/virtualenv", line 8, in
load_entry_point('virtualenv==15.1.0', 'console_scripts', 'virtualenv')()
File "/usr/local/lib/python2.7/site-packages/virtualenv.py", line 713, in main
symlink=options.symlink)
File "/usr/local/lib/python2.7/site-packages/virtualenv.py", line 945, in create_environment
download=download,
File "/usr/local/lib/python2.7/site-packages/virtualenv.py", line 901, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "/usr/local/lib/python2.7/site-packages/virtualenv.py", line 797, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /opt/bobo/work/src/g...ython-env/bin/python - setuptools pip wheel failed with error code 1
make[1]: *** [python-env] Error 1
make[1]: Leaving directory `/opt/bobo/work/src/github.com/examplebeat'
make: *** [setup] Error 2

how should I deal with it?
thanks.

Can you tell what exact version of python2.7 you are using?

thanks Glen
here is version of python 2.7 I'm using:

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them. :slight_smile:

I'm not sure what the problem is, but it does seem related to python or virtualenv versions.

Do you get an error when calling virtualenv /tmp/env?

If yes, and if you have virtualenv installed as a system package, I recommend trying to uninstall it and install it back using easy_install virtualenv.

Our minimal requirement for python is 2.7.9: https://github.com/elastic/beats/blob/master/CONTRIBUTING.md I remember there were some issues with prior versions. Can you updated your python version?

This topic was automatically closed after 21 days. New replies are no longer allowed.