No module named 'past'
See original GitHub issue- Cookiecutter version: 1.7.0 (note: running
cookiecutter -v
doesnβt work) - Template project url: https://github.com/napari/cookiecutter-napari-plugin
- Python version: 3.6.8 (v3.6.8:3c6b436a57, Dec 24 2018, 02:04:31)
- Operating System: macOS Version 10.15.4 (19E258a)
Description:
The cookiecutter command-line interface does not work due to missing module named past
.
What Iβve run:
What I ran:
python3 -m pip install cookiecutter # successful
cookiecutter https://github.com/napari/cookiecutter-napari-plugin # failed
cookiecutter -V # failed
cookiecutter # failed
All three of the lines that failed had the same error output:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/bin/cookiecutter", line 5, in <module>
from cookiecutter.__main__ import main
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cookiecutter/__main__.py", line 5, in <module>
from .cli import main
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cookiecutter/cli.py", line 14, in <module>
from cookiecutter.main import cookiecutter
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cookiecutter/main.py", line 15, in <module>
from .generate import generate_context, generate_files
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cookiecutter/generate.py", line 27, in <module>
from .hooks import run_hook
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cookiecutter/hooks.py", line 13, in <module>
from cookiecutter import utils
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cookiecutter/utils.py", line 14, in <module>
from .prompt import read_user_yes_no
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cookiecutter/prompt.py", line 9, in <module>
from past.builtins import basestring
ModuleNotFoundError: No module named 'past'
Running python3 -m pip install past
results in:
ERROR: Could not find a version that satisfies the requirement past (from versions: none)
ERROR: No matching distribution found for past
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
ModuleNotFoundError: No module named 'past' #1 - GitHub
This happens if you run python 2, right (or maybe anything below 3.7)? I've added some version information to the readme, plus your...
Read more >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' - RoseIndia.Net
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'past' How to remove the ModuleNotFoun.
Read more >past.builtins ImportError - Code Yarns
past.builtins ImportError ... line 9, in <module> from past.builtins import basestring ImportError: No module named past.builtinsΒ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We need to make a new release on cookiecutter, this would solve the issue. Sadly I did not get any feedback yet on https://github.com/cookiecutter/cookiecutter/issues/1337 which blocks me from making a release.
@ssbarnea @sumanthratna This dependency comes from other packages. Tested today, cannot confirm issue. Closed.
Test log: