{"action":"opened","issue":{"url":"https://api.github.com/repos/audreyr/cookiecutter/issues/1098","repository_url":"https://api.github.com/repos/audreyr/cookiecutter","labels_url":"https://api.github.com/repos/audreyr/cookiecutter/issues/1098/labels{/name}","comments_url":"https://api.github.com/repos/audreyr/cookiecutter/issues/1098/comments","events_url":"https://api.github.com/repos/audreyr/cookiecutter/issues/1098/events","html_url":"https://github.com/audreyr/cookiecutter/issues/1098","id":352908346,"node_id":"MDU6SXNzdWUzNTI5MDgzNDY=","number":1098,"title":"Path longer than 256 characters don't work on Windows 7","user":{"login":"akuntsch","id":4771806,"node_id":"MDQ6VXNlcjQ3NzE4MDY=","avatar_url":"https://avatars0.githubusercontent.com/u/4771806?v=4","gravatar_id":"","url":"https://api.github.com/users/akuntsch","html_url":"https://github.com/akuntsch","followers_url":"https://api.github.com/users/akuntsch/followers","following_url":"https://api.github.com/users/akuntsch/following{/other_user}","gists_url":"https://api.github.com/users/akuntsch/gists{/gist_id}","starred_url":"https://api.github.com/users/akuntsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akuntsch/subscriptions","organizations_url":"https://api.github.com/users/akuntsch/orgs","repos_url":"https://api.github.com/users/akuntsch/repos","events_url":"https://api.github.com/users/akuntsch/events{/privacy}","received_events_url":"https://api.github.com/users/akuntsch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-22T11:16:47Z","updated_at":"2018-08-22T11:16:47Z","closed_at":null,"author_association":"NONE","body":"* Cookiecutter version: 1.6.0\r\n* Python version: 3.7.0\r\n* Operating System: Windows 7\r\n\r\n### Description:\r\n\r\nI'm trying to create a project from a cookiecutter template with long paths on Windows 7.\r\n\r\n### What I've run:\r\n\r\nI've run cookiecutter with a local template which contains very long paths exceeding 256 characters.\r\n\r\n```cookiecutter.exe /path/to/local/template/folder```\r\n\r\nOutput: \r\n\r\n```\r\n[Errno 2] No such file or directory: '{{cookiecutter.repo_name}}-this/is/a/really/long/path/that/exceeds/256/characters/{{cookiecutter.brand_lower}}/{{cookiecutter.brand_upper}}_my_excel_file.xlsx'\r\nTraceback (most recent call last):\r\n  File \"c:\\users\\user\\appdata\\local\\programs\\python\\python37-32\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n    \"__main__\", mod_spec)\r\n  File \"c:\\users\\user\\appdata\\local\\programs\\python\\python37-32\\lib\\runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\cookiecutter.exe\\__main__.py\", line 9, in <module>\r\n  File \"c:\\users\\user\\appdata\\local\\programs\\python\\python37-32\\lib\\site-packages\\click\\core.py\", line 722, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"c:\\users\\user\\appdata\\local\\programs\\python\\python37-32\\lib\\site-packages\\click\\core.py\", line 697, in main\r\n    rv = self.invoke(ctx)\r\n  File \"c:\\users\\user\\appdata\\local\\programs\\python\\python37-32\\lib\\site-packages\\click\\core.py\", line 895, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"c:\\users\\user\\appdata\\local\\programs\\python\\python37-32\\lib\\site-packages\\click\\core.py\", line 535, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"c:\\users\\user\\appdata\\local\\programs\\python\\python37-32\\lib\\site-packages\\cookiecutter\\cli.py\", line 120, in main\r\n    password=os.environ.get('COOKIECUTTER_REPO_PASSWORD')\r\n  File \"c:\\users\\user\\appdata\\local\\programs\\python\\python37-32\\lib\\site-packages\\cookiecutter\\main.py\", line 94, in cookiecutter\r\n    output_dir=output_dir\r\n  File \"c:\\users\\user\\appdata\\local\\programs\\python\\python37-32\\lib\\site-packages\\cookiecutter\\generate.py\", line 364, in generate_files\r\n    generate_file(project_dir, infile, context, env)\r\n  File \"c:\\users\\user\\appdata\\local\\programs\\python\\python37-32\\lib\\site-packages\\cookiecutter\\generate.py\", line 166, in generate_file\r\n    tmpl = env.get_template(infile_fwd_slashes)\r\n  File \"C:\\Users\\user\\AppData\\Roaming\\Python\\Python37\\site-packages\\jinja2\\environment.py\", line 830, in get_template\r\n    return self._load_template(name, self.make_globals(globals))\r\n  File \"C:\\Users\\user\\AppData\\Roaming\\Python\\Python37\\site-packages\\jinja2\\environment.py\", line 804, in _load_template\r\n    template = self.loader.load(self, name, globals)\r\n  File \"C:\\Users\\user\\AppData\\Roaming\\Python\\Python37\\site-packages\\jinja2\\loaders.py\", line 113, in load\r\n    source, filename, uptodate = self.get_source(environment, name)\r\n  File \"C:\\Users\\user\\AppData\\Roaming\\Python\\Python37\\site-packages\\jinja2\\loaders.py\", line 187, in get_source\r\n    raise TemplateNotFound(template)\r\njinja2.exceptions.TemplateNotFound: {{cookiecutter.repo_name}}-this/is/a/really/long/path/that/exceeds/256/characters/{{cookiecutter.brand_lower}}/{{cookiecutter.brand_upper}}_my_excel_file.xlsx\r\n```\r\n\r\n"}}
{"actor":{"display_login":"akuntsch"}}