uoip / monoVO-python

A simple monocular visual odometry project in Python
346 stars 99 forks source link

xrange is not defined #3

Closed k88joshi closed 6 years ago

k88joshi commented 6 years ago

Before running the for loop the variable xrange is not defined.

for img_id in xrange(2000):

The error is as follows:

_(myMONO) C:\Users\KJoshi\OneDrive\Applanix\myPythonExample\myMONO>python test.py
Traceback (most recent call last):
  File "test.py", line 13, in <module>
    for img_id in xrange(2000):
NameError: name 'xrange' is not defined_
k88joshi commented 6 years ago

Never Mind, I am using python version 3.6.2 and according to the documentation, the xrangecommand is no longer available. https://wiki.python.org/moin/ForLoop