# Create metricset failed

**URL:** <https://discuss.elastic.co/t/create-metricset-failed/247162>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [September 2, 2020, 4:44am UTC](https://discuss.elastic.co/t/create-metricset-failed/247162 "2020-09-02T04:44:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![icaruswu](https://avatars.discourse-cdn.com/v4/letter/i/ebca7d/32.png) [@icaruswu](https://discuss.elastic.co/u/icaruswu)\
**Post date:** [September 2, 2020, 4:44am UTC](https://discuss.elastic.co/t/create-metricset-failed/247162/1 "2020-09-02T04:44:45Z")

</div>

Help!! I git clone the beats source codes, and cd into the metricbeat to execute 'make create-metricset', then failed:

icaruswu@icaruswu-B460MDS3H:~/go/src/beats/metricbeat$ make create-metricset  
mage createMetricset  
warn: failed to upgrade pip (ignoring): failed to run "/home/icaruswu/go/src/beats/build/ve/linux/bin/pip install -U pip: fork/exec /home/icaruswu/go/src/beats/build/ve/linux/bin/pip: no such file or directory"Error: failed to run "/home/icaruswu/go/src/beats/build/ve/linux/bin/pip install -U wheel: fork/exec /home/icaruswu/go/src/beats/build/ve/linux/bin/pip: no such file or directory"  
make: \*\*\* [Makefile:8：create-metricset] 错误 1

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [September 2, 2020, 9:41am UTC](https://discuss.elastic.co/t/create-metricset-failed/247162/2 "2020-09-02T09:41:29Z")

</div>

Hi!

Could you please confirm that you use Python 3?  
Also you can remove `/home/icaruswu/go/src/beats/build/ve/` and try again (with python 3 installed).

More about python deps: [https://github.com/elastic/beats/blob/master/docs/devguide/python.asciidoc](https://github.com/elastic/beats/blob/master/docs/devguide/python.asciidoc)

C.

---

<div class="post-metadata">

**Author:** ![icaruswu](https://avatars.discourse-cdn.com/v4/letter/i/ebca7d/32.png) [@icaruswu](https://discuss.elastic.co/u/icaruswu)\
**Post date:** [September 2, 2020, 11:01am UTC](https://discuss.elastic.co/t/create-metricset-failed/247162/3 "2020-09-02T11:01:03Z")

</div>

I got the solution. I use Ubuntu20.04 and I'm surely confirm that I use Python3 cause I checked a lot. Then I executed 'apt-get install python3-venv', the issue solved. Could u pls tell me the reason?

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [September 2, 2020, 11:46am UTC](https://discuss.elastic.co/t/create-metricset-failed/247162/4 "2020-09-02T11:46:32Z")

</div>

The command you were trying to execute seems to has `python3-venv` as a requirement, this is the reason.

It was our fault that python part is not linked to the dev guide. There is an [open patch](https://github.com/elastic/beats/pull/20917) to fix this!

C.

---

<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:** [September 30, 2020, 1:46pm UTC](https://discuss.elastic.co/t/create-metricset-failed/247162/5 "2020-09-30T13:46:34Z")

</div>

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