Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ModuleNotFoundError: No module named 'past' when installing tensorboard with pytorch 1.2

I'm trying out tensorboard with pytorch by following this: https://pytorch.org/docs/stable/tensorboard.html

I've installed tensorboard with pip install tb-nightly

The command tensorboard --logdir=runs starts ok.

But the line self.writer = SummaryWriter()

Gives the following error:

ModuleNotFoundError: No module named 'past'

How do I fix this?

like image 319
Benjamin Crouzier Avatar asked Aug 21 '19 21:08

Benjamin Crouzier


1 Answers

Following this issue: https://github.com/pytorch/pytorch/issues/22389,

Adding future to the list of requirements solved the problem

# requirements.txt:
tb-nightly
future

pip install -r requirements.txt

like image 178
Benjamin Crouzier Avatar answered Sep 23 '22 02:09

Benjamin Crouzier