NameError: name 'argparse' is not defined

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/”, line 73, in define_flags
except argparse.ArgumentError:
NameError: name ‘argparse’ is not defined

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/”, line 525, in create_app
return application.standard_tensorboard_wsgi(
AttributeError: module ‘tensorboard.backend.application’ has no attribute ‘standard_tensorboard_wsgi’”

Any thoughts?

TensorBoard 2.3.0 landed and changed their API on us.

This will get you back and running.

pip install tensorboard==2.2.2

I’ll get a patch out for this ASAP.

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.