ModuleNotFoundError: No module named 'past'

See original GitHub issue

fix: pip install future

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

8reactions
xanderladdcommented, Sep 21, 2021

It’s weird how you can solve an issue with the past using the future

0reactions
pbloemcommented, Aug 23, 2019

Yep, just reproduced. Full stacktrace:

Traceback (most recent call last):
  File "experiments/classify.py", line 16, in <module>
    from torch.utils.tensorboard import SummaryWriter
  File "/Users/Peter/anaconda/envs/former/lib/python3.7/site-packages/torch/utils/tensorboard/__init__.py", line 6, in <module>
    from .writer import FileWriter, SummaryWriter  # noqa F401
  File "/Users/Peter/anaconda/envs/former/lib/python3.7/site-packages/torch/utils/tensorboard/writer.py", line 18, in <module>
    from ._convert_np import make_np
  File "/Users/Peter/anaconda/envs/former/lib/python3.7/site-packages/torch/utils/tensorboard/_convert_np.py", line 12, in <module>
    from caffe2.python import workspace
  File "/Users/Peter/anaconda/envs/former/lib/python3.7/site-packages/caffe2/python/workspace.py", line 15, in <module>
    from past.builtins import basestring
ModuleNotFoundError: No module named 'past'

For now, importing future seems like a quick fix. I’ll try to see later if there’s a better solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named 'past' when installing tensorboard with ...
The command tensorboard --logdir=runs starts ok. But the line self.writer = SummaryWriter(). Gives the following error: ModuleNotFoundError: No ...
Read more >
ModuleNotFoundError: No module named 'past'
Hello, I have the WeatherRack2, and using an RPi 4, I am able to get the raw data feed from the unit to...
Read more >
ModuleNotFoundError: No module named 'past'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'past' How to remove the ModuleNotFoun.
Read more >
ModuleNotFoundError: No module named 'past' : r/cs231n
I am running assignment1 on ubuntu 18.04. Most solutions mentions installing "future" package but it's installed already.
Read more >
No module named past error
File "/Users/ps/software/eman2/bin/e2proc3d.py", line 35, in <module> from past.utils import old_div ModuleNotFoundError: No module named ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found