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

Add support for Windows (WSL is already supported) #41

Closed
samj1912 opened this issue Aug 12, 2020 · 10 comments
Closed

Add support for Windows (WSL is already supported) #41

samj1912 opened this issue Aug 12, 2020 · 10 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@samj1912
Copy link
Member

With #36 and cruft 2.0 we officially dropped support for Windows. See #39 for the reasoning behind this change.

Creating this issue to track interest for adding back Windows support and to discuss how to implement the same.

@samj1912 samj1912 added enhancement New feature or request help wanted Extra attention is needed labels Aug 12, 2020
@samj1912 samj1912 changed the title Add support for Windows Add support for Windows (WSL is already supported) Aug 12, 2020
@juhuebner
Copy link

1st: cruft: Great tool!

I managed some of the WIN problems get to work here: #85

@juhuebner juhuebner mentioned this issue Feb 7, 2021
@jonzarecki
Copy link
Contributor

Just wanted to note that I'll be testing @juhuebner implementation for windows in the following days.

The fork that I'm working from is in here.
It has @juhuebner updates + a merge from the current cruft state.

ATM it seems to work perfectly. I'll update if any issues pop up.

@jonzarecki
Copy link
Contributor

Added a new PR with a continuation of @juhuebner's work from #85 in #125.

Seems to be working fine for my team for the last 2 weeks, and the changes he made seem reasonable.

@sharadpattanshetti
Copy link

I tried setting up Cruft v2.9.0 in Ubuntu WSL and then run cruft update command. But it still fails with below error.
Python v 3.8.10

Any help will be appreciated.
Thanks,

Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/cookiecutter/generate.py", line 352, in generate_files generate_file(

@jonzarecki
Copy link
Contributor

Can you post the entire trace?
Are you able to run a normal cookiecutter create? (Without cruft)

@sharadpattanshetti
Copy link

Hi @jonzarecki, please find below entire trace:

Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/cookiecutter/generate.py", line 352, in generate_files generate_file( File "/home/user/.local/lib/python3.8/site-packages/cookiecutter/generate.py", line 175, in generate_file rendered_file = tmpl.render(**context) File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/user/.local/bin/cruft", line 8, in <module> sys.exit(app())

@jonzarecki
Copy link
Contributor

Weird, I don't see, however cruft in the trace, did you try to just use cookiecutter create?

@samj1912
Copy link
Member Author

samj1912 commented Nov 7, 2021

Closed in #125

@samj1912 samj1912 closed this as completed Nov 7, 2021
@sharadpattanshetti
Copy link

@jonzarecki yes used cookiecutter create but still get above error. Tried it with cruft v2.10.1 as well.
Python 3.8.10
Is there any specific python to be used?

@jonzarecki
Copy link
Contributor

Not that I'm aware. Can you give us the steps to reproduce the error from scratch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants