devalv / cookiecutter-fastapi

Cookiecutter FastAPI boilerplate.
MIT License
2 stars 0 forks source link

collections.OrderedDict object' has no attribute 'github_username' #1

Open huogerac opened 2 years ago

huogerac commented 2 years ago

The initial command is not working so far...

Error

Error message: 'collections.OrderedDict object' has no attribute 'github_username'

$ cookiecutter gh:devalv/cookiecutter-fastapi
You've downloaded /home/roger/.cookiecutters/cookiecutter-fastapi before. Is it okay to delete and re-download it? [yes]: 
full_name [Aleksei Devyatkin]: 
email [aleksei@devyatkin.dev]: 
version [0.1.0]: 
project_name [YAFApi]: 
project_slug [yafapi]: 
project_short_description [Cookiecutter FastAPI boilerplate.]: 
Unable to render variable 'github_username'

Error message: 'collections.OrderedDict object' has no attribute 'github_username'

Context: {
    "cookiecutter": {
        "_copy_without_render": [
            "*lint.yml",
            "*github/workflows/codeql-analysis.yml",
            "*github/workflows/lint.yml",
            "*github/workflows/tests.yml"
        ],
        "email": "aleksei@devyatkin.dev",
        "full_name": "Aleksei Devyatkin",
        "github_username": "{{ cookiecutter.github_username }}",
        "project_name": "YAFApi",
        "project_short_description": "Cookiecutter FastAPI boilerplate.",
        "project_slug": "yafapi",
        "pypi_username": "{{ cookiecutter.github_username }}",
        "version": "0.1.0"
    }
}
devalv commented 2 years ago

@huogerac Can you try again?

huogerac commented 2 years ago

Hey thanks for the quickly answer. I think the error is not present in the 1.7.2 cookiecutter version. However, after updating to the 1.7.3 I got the error above.

Anyway, I'll test again.

Cheers

devalv commented 2 years ago

@huogerac I've updated README. It worked before, but on my current set-up, I`ve had some issues then testing the post-installation hook. I believe that the current version of post-install may be more stable. Thank you for your attention.