Cookiecutter: Cookiecutter install seems to be broken due jinja2-time arrow dependency

Created on 22 Mar 2018  路  3Comments  路  Source: cookiecutter/cookiecutter

  • Cookiecutter version:
    1.6.0
  • Python version:
    2.7
  • Operating System:
    Ubuntu 16.04 (in WSL)

Description:

Broken on at least Python 2.7 due to the jinja2-time dependency to arrow, see this issue at arrow and this issue at jinja2-time.

What I've run:

For more logs see my comment in the PR over at arrow and the issue over at jinja2-time


pip install --user cookiecutter

wilmardo@NUC-FLEX-01:/mnt/c/Users/wilmaro/Documents/Ubuntu$ pip install --user cookiecutter
Collecting cookiecutter
  Downloading cookiecutter-1.6.0-py2.py3-none-any.whl (50kB)
    100% |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 51kB 7.9MB/s
Requirement already satisfied: binaryornot>=0.2.0 in /usr/local/lib/python2.7/dist-packages (from cookiecutter)
Requirement already satisfied: jinja2>=2.7 in /home/wilmardo/.local/lib/python2.7/site-packages (from cookiecutter)
Requirement already satisfied: requests>=2.18.0 in /home/wilmardo/.local/lib/python2.7/site-packages (from cookiecutter)
Requirement already satisfied: jinja2-time>=0.1.0 in /home/wilmardo/.local/lib/python2.7/site-packages (from cookiecutter)
Requirement already satisfied: poyo>=0.1.0 in /usr/local/lib/python2.7/dist-packages (from cookiecutter)
Requirement already satisfied: click>=5.0 in /home/wilmardo/.local/lib/python2.7/site-packages (from cookiecutter)
Requirement already satisfied: future>=0.15.2 in /usr/local/lib/python2.7/dist-packages (from cookiecutter)
Requirement already satisfied: whichcraft>=0.4.0 in /usr/local/lib/python2.7/dist-packages (from cookiecutter)
Requirement already satisfied: chardet>=3.0.2 in /home/wilmardo/.local/lib/python2.7/site-packages (from binaryornot>=0.2.0->cookiecutter)
Requirement already satisfied: MarkupSafe>=0.23 in /home/wilmardo/.local/lib/python2.7/site-packages (from jinja2>=2.7->cookiecutter)
Requirement already satisfied: certifi>=2017.4.17 in /home/wilmardo/.local/lib/python2.7/site-packages (from requests>=2.18.0->cookiecutter)
Requirement already satisfied: idna<2.7,>=2.5 in /home/wilmardo/.local/lib/python2.7/site-packages (from requests>=2.18.0->cookiecutter)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /home/wilmardo/.local/lib/python2.7/site-packages (from requests>=2.18.0->cookiecutter)
Requirement already satisfied: arrow in /home/wilmardo/.local/lib/python2.7/site-packages (from jinja2-time>=0.1.0->cookiecutter)
Requirement already satisfied: python-dateutil in /usr/local/lib/python2.7/dist-packages (from arrow->jinja2-time>=0.1.0->cookiecutter)
Collecting backports.functools_lru_cache>=1.2.1 (from arrow->jinja2-time>=0.1.0->cookiecutter)
  Downloading backports.functools_lru_cache-1.5-py2.py3-none-any.whl
Requirement already satisfied: six>=1.5 in /home/wilmardo/.local/lib/python2.7/site-packages (from python-dateutil->arrow->jinja2-time>=0.1.0->cookiecutter)
Installing collected packages: cookiecutter, backports.functools-lru-cache
Successfully installed backports.functools-lru-cache-1.5 cookiecutter-1.6.0



cookiecutter ansible-role-skeleton

wilmardo@NUC-FLEX-01:/mnt/c/Users/wilmaro/Documents/Ubuntu$ cookiecutter ansible-role-skeleton
Unable to load extension: No module named functools_lru_cache



pip install --user backports.functools_lru_cache==1.2.1

wilmardo@NUC-FLEX-01:/mnt/c/Users/wilmaro/Documents/Ubuntu$ pip install --user backports.functools_lru_cache==1.2.1
Collecting backports.functools_lru_cache==1.2.1
  Using cached backports.functools_lru_cache-1.2.1-py2.py3-none-any.whl
Installing collected packages: backports.functools-lru-cache
  Found existing installation: backports.functools-lru-cache 1.5
    Uninstalling backports.functools-lru-cache-1.5:
      Successfully uninstalled backports.functools-lru-cache-1.5
Successfully installed backports.functools-lru-cache-1.2.1



cookiecutter ansible-role-skeleton

wilmardo@NUC-FLEX-01:/mnt/c/Users/wilmaro/Documents/Ubuntu$ cookiecutter ansible-role-skeleton
author [Wilmar den Ouden]: 

Most helpful comment

Looking into this right now.

All 3 comments

Just ran into the same issue on Windows and installing that version works for me too

Looking into this right now.

This seems to be still happening with the most recent version.

Was this page helpful?
0 / 5 - 0 ratings