IndexError: list index out of range

Bug #173033 reported by Brett Michael
2
Affects Status Importance Assigned to Milestone
PHImage
New
Undecided
Unassigned

Bug Description

Hello,

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__
    self.main()
  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
user@opensusedev:~/Sandbox/_External/PHImage/devel>

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.

Regards,
Brett

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.