IndexError: list index out of range

Bug #173033 reported by Brett Michael
Affects Status Importance Assigned to Milestone

Bug Description


I'm excited by the prospect of PHImage and hope it continues to be developed. I may contribute myself if you are looking for extra resource.

I checked out the branch from bzr and installed pyopengl using easy_install (python 2.5).

Initially all I was getting was this:

user@opensusedev:~/Sandbox/_External/PHImage/devel> ./phimage
Traceback (most recent call last):
  File "./phimage", line 519, in <module>
    test = phimage()
  File "./phimage", line 108, in __init__
  File "./phimage", line 516, in main
    self.InitGL(1024, 768)
  File "./phimage", line 299, in InitGL
    test = textureLoader(self.nextFile() ,0, self.buffersize, self.tilesize, self.tilequality)
  File "./phimage", line 461, in nextFile
    return self.workingPath + "/" + self.files[self.counter]
IndexError: list index out of range

It turns out I was running it in a directory that had no photos in it.
It would be good if it returned a nice error message if there were no images in the current directory.


To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.