Insane icon indicating copy to clipboard operation
Insane copied to clipboard

NameError: name 'xrange' is not defined

Open sbhakat opened this issue 2 years ago • 2 comments

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?

sbhakat avatar May 27 '22 16:05 sbhakat

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

WangLiguo-kyrie avatar Jul 24 '22 02:07 WangLiguo-kyrie

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

JP-Xu avatar Sep 19 '22 19:09 JP-Xu