# Trying to create a new beat - pip install functools32 error

**URL:** <https://discuss.elastic.co/t/trying-to-create-a-new-beat-pip-install-functools32-error/130170>\
**Category:** Beats\
**Created:** [May 1, 2018, 10:24pm UTC](https://discuss.elastic.co/t/trying-to-create-a-new-beat-pip-install-functools32-error/130170 "2018-05-01T22:24:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![toravir](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@toravir](https://discuss.elastic.co/u/toravir)\
**Post date:** [May 1, 2018, 10:24pm UTC](https://discuss.elastic.co/t/trying-to-create-a-new-beat-pip-install-functools32-error/130170/1 "2018-05-01T22:24:00Z")

</div>

Hi,  
I am attempting to create a beat, so i am following the steps listed in :  
[https://www.elastic.co/guide/en/beats/devguide/current/newbeat-generate.html](https://www.elastic.co/guide/en/beats/devguide/current/newbeat-generate.html)

And i get this error in the "make setup" step:  
Command "python setup.py egg\_info" failed with error code 1 in /tmp/pip-install-3s2cmdxv/functools32/

Can someone gimme pointers on how to get over this error please ?

My environment and logs:

sprint @ mybeat\>python --version  
Python 2.7.12

sprint @ mybeat\>lsb\_release -a  
No LSB modules are available.  
Distributor ID: Ubuntu  
Description: Ubuntu 16.04.3 LTS  
Release: 16.04  
Codename: xenial

sprint @ mybeat\>make setup  
mkdir -p vendor/github.com/elastic/  
cp -R /home/ravir/go//src/github.com/elastic/beats vendor/github.com/elastic/  
rm -rf vendor/github.com/elastic/beats/.git vendor/github.com/elastic/beats/x-pack  
make update  
make[1]: Entering directory '/home/ravir/go/src/github.com/toravir/mybeat'  
test -d /home/ravir/go/src/github.com/toravir/mybeat/build/python-env || virtualenv /home/ravir/go/src/github.com/toravir/mybeat/build/python-env  
Using base prefix '/usr'  
New python executable in /home/ravir/go/src/github.com/toravir/mybeat/build/python-env/bin/python3  
Also creating executable in /home/ravir/go/src/github.com/toravir/mybeat/build/python-env/bin/python  
Installing setuptools, pip, wheel...done.  
. /home/ravir/go/src/github.com/toravir/mybeat/build/python-env/bin/activate && pip install -q --upgrade pip ; \  
if [-a ./tests/system/requirements.txt] && [! ./vendor/github.com/elastic/beats/libbeat/tests/system/requirements.txt -ef ./tests/system/requirements.txt] ; then \  
. /home/ravir/go/src/github.com/toravir/mybeat/build/python-env/bin/activate && pip install -qUr ./vendor/github.com/elastic/beats/libbeat/tests/system/requirements.txt -Ur ./tests/system/requirements.txt ; \  
else \  
. /home/ravir/go/src/github.com/toravir/mybeat/build/python-env/bin/activate && pip install -qUr ./vendor/github.com/elastic/beats/libbeat/tests/system/requirements.txt ; \  
fi  
Command "python setup.py egg\_info" failed with error code 1 in /tmp/pip-install-ibmhreis/functools32/  
vendor/github.com/elastic/beats/libbeat/scripts/Makefile:231: recipe for target 'python-env' failed  
make[1]: \*\*\* [python-env] Error 1  
make[1]: Leaving directory '/home/ravir/go/src/github.com/toravir/mybeat'  
Makefile:19: recipe for target 'setup' failed  
make: \*\*\* [setup] Error 2  
sprint @ mybeat\>

Thanks!

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [May 2, 2018, 6:54am UTC](https://discuss.elastic.co/t/trying-to-create-a-new-beat-pip-install-functools32-error/130170/2 "2018-05-02T06:54:36Z")

</div>

What is your version of `setuptools`?

With Python `2.7.13` and setuptools `33.1.1` it works on my machine.

---

<div class="post-metadata">

**Author:** ![toravir](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@toravir](https://discuss.elastic.co/u/toravir)\
**Post date:** [May 3, 2018, 12:26am UTC](https://discuss.elastic.co/t/trying-to-create-a-new-beat-pip-install-functools32-error/130170/3 "2018-05-03T00:26:25Z")

</div>

I switched to a different machine - similar env, it worked fine.

my setuptools version: 39.1.0

I am continuing to use the other machine (where it worked).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 31, 2018, 2:26am UTC](https://discuss.elastic.co/t/trying-to-create-a-new-beat-pip-install-functools32-error/130170/4 "2018-05-31T02:26:28Z")

</div>

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