# NameError: name 'argparse' is not defined

**URL:** https://guildai.org/t/nameerror-name-argparse-is-not-defined/256
**Category:** Troubleshooting
**Created:** [July 24, 2020, 5:49pm UTC](https://guildai.org/t/nameerror-name-argparse-is-not-defined/256 "2020-07-24T17:49:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hm\_u](https://yyz1.discourse-cdn.com/flex031/user_avatar/guildai.org/hm_u/32/124_2.png) [@hm\_u](https://guildai.org/u/hm_u)
#### Post date: [July 24, 2020, 5:49pm UTC](https://guildai.org/t/nameerror-name-argparse-is-not-defined/256/1 "2020-07-24T17:49:39Z")

</div>

Hi,  
Starting from a fresh environment with python 3.7.3 and doing a `pip install guildai`, when trying to run  
`guild tensorboard`  
I get this error:  
File “/Users/louis-emmanuelmartinet/.pyenv/versions/3.7.3/envs/ds-gathering/lib/python3.7/site-packages/tensorboard\_plugin\_wit/wit\_plugin\_loader.py”, line 73, in define\_flags  
except argparse.ArgumentError:  
NameError: name ‘argparse’ is not defined

---

<div class="post-metadata">

### Author: ![hm\_u](https://yyz1.discourse-cdn.com/flex031/user_avatar/guildai.org/hm_u/32/124_2.png) [@hm\_u](https://guildai.org/u/hm_u)
#### Post date: [July 24, 2020, 5:50pm UTC](https://guildai.org/t/nameerror-name-argparse-is-not-defined/256/2 "2020-07-24T17:50:58Z")

</div>

When I fix this by hand doing `import argparse` then I get:  
“File “/Users/louis-emmanuelmartinet/.pyenv/versions/3.7.3/envs/ds-gathering/lib/python3.7/site-packages/guild/tensorboard.py”, line 525, in create\_app  
return application.standard\_tensorboard\_wsgi(  
AttributeError: module ‘tensorboard.backend.application’ has no attribute ‘standard\_tensorboard\_wsgi’”

Any thoughts?

---

<div class="post-metadata">

### Author: ![garrett](https://yyz1.discourse-cdn.com/flex031/user_avatar/guildai.org/garrett/32/224_2.png) [@garrett](https://guildai.org/u/garrett)
#### Post date: [July 24, 2020, 5:54pm UTC](https://guildai.org/t/nameerror-name-argparse-is-not-defined/256/3 "2020-07-24T17:54:51Z")

</div>

TensorBoard 2.3.0 landed and changed their API on us.

This will get you back and running.

```command
pip install tensorboard==2.2.2

```

I’ll get a patch out for this ASAP.

---

<div class="post-metadata">

### Author: ![garrett](https://yyz1.discourse-cdn.com/flex031/user_avatar/guildai.org/garrett/32/224_2.png) [@garrett](https://guildai.org/u/garrett)
#### Post date: [July 25, 2020, 1:53pm UTC](https://guildai.org/t/nameerror-name-argparse-is-not-defined/256/4 "2020-07-25T13:53:59Z")

</div>

[0.7.0.post1](https://guildai.org/releases/0.7.0.post1) is out which handles this with a version downgrade for TensorBoard. This is a short term solution — 0.7.1 will have proper support for 2.3.
