Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another fork. Upgraded to 2022 #669

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mishamsk
Copy link

Hey, great work on the cookiecutter and all of the forks! Found the popular ones mentioned in the docs being somewhat outdated, so created a clean newer one. Will soon add gitlab CI option to it as well as I am working on a couple projects on gitlab too.

@jeevu94
Copy link

jeevu94 commented Jan 7, 2023

Getting Error in your cookiecutter.

newest_deps [n]:
Traceback (most recent call last):
  File "C:\Users\main user\AppData\Local\Temp\tmp6cqut0_i.py", line 8, in <module>
    import pwd
ModuleNotFoundError: No module named 'pwd'
ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
Hook script failed (exit status: 1)

@mishamsk
Copy link
Author

mishamsk commented Jan 8, 2023

Getting Error in your cookiecutter.

newest_deps [n]:
Traceback (most recent call last):
  File "C:\Users\main user\AppData\Local\Temp\tmp6cqut0_i.py", line 8, in <module>
    import pwd
ModuleNotFoundError: No module named 'pwd'
ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
Hook script failed (exit status: 1)

ah, Windows...thanks for spotting this. I can't figure out why I added the pwd in the first place. Will remove it & also add windows tests to CI.

if you are in a hurry - you can clone my repo locally, remove

import pwd


def get_username():
    return pwd.getpwuid(os.getuid())[0]

from hooks/post_gen_project.py and run cookie cutter against local repo (just path the path to folder instead of git)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants