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

'raw_input' is not defined #44

Open
timscott opened this issue Dec 18, 2015 · 9 comments
Open

'raw_input' is not defined #44

timscott opened this issue Dec 18, 2015 · 9 comments

Comments

@timscott
Copy link

When I run git-sweep cleanup, the branches to be cleaned up are listed then this:

Delete these branches? (y/n) name 'raw_input' is not defined

And nothing is cleaned up.

@rajat404
Copy link

This issue arises because git-sweep is not compatible with Python 3.
Install it with pip2 install git-sweep

@Thomline
Copy link

Eh?

@fonnesbeck
Copy link

Please consider stating this in your README. It currently says Python >=2.6 as the requirement.

@dfuentes77
Copy link

Got the same. I did --force and it deleted the branches as described

@dfuentes77
Copy link

I'm not a python expert but would love if it was cross compatible with multiple versions, since working with multiple python projects, especially with pyenv, you'd have constantly switch between python versions in order to run this command correctly.

@dkocich
Copy link

dkocich commented Nov 27, 2019

possible fix - change it here

answer = raw_input()
? ... https://stackoverflow.com/a/4915366/4114514

@skywinder
Copy link

skywinder commented Feb 28, 2020

as @dfuentes77 mention:
git-sweep cleanup --force
works as a workaround!


This issue arises because git-sweep is not compatible with Python 3.
Install it with pip2 install git-sweep

I tried.
pip2 install --user git-sweep || easy_install git-sweep
It doesn't helps.

@skywinder
Copy link

possible fix - change it here

answer = raw_input()

? ... https://stackoverflow.com/a/4915366/4114514

in this case, we have to adopt the whole project for py3. not just this line.

@dfuentes77
Copy link

especially since python 2.7 is no longer maintained

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

No branches or pull requests

7 participants