# \`make setup\` fails on new generated beat

**URL:** https://discuss.elastic.co/t/make-setup-fails-on-new-generated-beat/67582
**Category:** Beats
**Created:** [November 30, 2016, 6:47am UTC](https://discuss.elastic.co/t/make-setup-fails-on-new-generated-beat/67582 "2016-11-30T06:47:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![phenomenes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phenomenes/32/13489_2.png) [@phenomenes](https://discuss.elastic.co/u/phenomenes)
#### Post date: [November 30, 2016, 6:47am UTC](https://discuss.elastic.co/t/make-setup-fails-on-new-generated-beat/67582/1 "2016-11-30T06:47:25Z")

</div>

Hi there,

When generating a new beat `make setup` fails with the following error:

```auto
$ cookiecutter $GOPATH/src/github.com/elastic/beats/generate/beat
$ cd foobar/
$ make setup
mkdir -p vendor/github.com/elastic/
cp -R /home/vagrant/workdir/go/src/github.com/elastic/beats vendor/github.com/elastic/
rm -rf vendor/github.com/elastic/beats/.git
make update
make[1]: Entering directory `/home/vagrant/workdir/go/src/github.com/phenomenes/foobar'
bash: /home/vagrant/workdir/go/src/github.com/phenomenes/foobar/build/python-env/bin/activate: No such file or directory
bash: line 2: /home/vagrant/workdir/go/src/github.com/phenomenes/foobar/build/python-env/bin/activate: No such file or directory
make[1]: *** [python-env] Error 1
make[1]: Leaving directory `/home/vagrant/workdir/go/src/github.com/phenomenes/foobar'
make: *** [setup] Error 2

```

Python = 2.7.9  
elastic/beats = HEAD is now at 7d3adfe

I've got a fix, let me know and I'll send a PR.

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [November 30, 2016, 7:47am UTC](https://discuss.elastic.co/t/make-setup-fails-on-new-generated-beat/67582/2 "2016-11-30T07:47:54Z")

</div>

A PR with a fix would be great. Looks like virtualenv is missing?

---

<div class="post-metadata">

### Author: ![phenomenes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phenomenes/32/13489_2.png) [@phenomenes](https://discuss.elastic.co/u/phenomenes)
#### Post date: [November 30, 2016, 8:05am UTC](https://discuss.elastic.co/t/make-setup-fails-on-new-generated-beat/67582/3 "2016-11-30T08:05:07Z")

</div>

Yes, that's right.  
Cool, I'll send it soon.

---

<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: [December 21, 2016, 6:47am UTC](https://discuss.elastic.co/t/make-setup-fails-on-new-generated-beat/67582/4 "2016-12-21T06:47:50Z")

</div>

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