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

NameError: name 'xrange' is not defined #79

Open
sbhakat opened this issue May 27, 2022 · 2 comments
Open

NameError: name 'xrange' is not defined #79

sbhakat opened this issue May 27, 2022 · 2 comments

Comments

@sbhakat
Copy link

sbhakat commented May 27, 2022

Seems like the insane installation is dependent on Python version. As NameError: name 'xrange' is not defined is a Python 2 vs Python3 problem. Does insane require Python 2.7?

@WangLiguo-kyrie
Copy link

Met the same problem. I replaced the 'xrange' with 'range'.
But after that, another 'zip' function problem existed. I also seemed like a python version problem

@JP-Xu
Copy link

JP-Xu commented Sep 19, 2022

For those who also encountered this zip issue, try to convert zip() to list(zip(*self.coords))[1:] as described here.
https://stackoverflow.com/questions/27431390/typeerror-zip-object-is-not-subscriptable

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

3 participants