exportiphoto icon indicating copy to clipboard operation
exportiphoto copied to clipboard

Unable to export

Open cwebberOps opened this issue 11 years ago • 1 comments

I keep hitting an exception:

Traceback (most recent call last):
  File "exportiphoto.py", line 635, in <module>
    library.walk([copyImage])
  File "exportiphoto.py", line 304, in walk
    func(imageId, targetFileDir, folderDate)
  File "exportiphoto.py", line 629, in copyImage
    library.copyImage(imageId, folderName, folderDate)
  File "exportiphoto.py", line 359, in copyImage
    basename = os.path.basename(mFilePath)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 112, in basename
AttributeError: 'NoneType' object has no attribute 'rfind'

After a bit of digging, mFilePath on line 359 comes up as None. I would like to just skip these entries but I am not really sure how. Any suggestions on how to cleanly move on to the next image from this point in the code would be super helpful.

Thanks.

cwebberOps avatar Feb 07 '14 04:02 cwebberOps

Good news, @cwebberOps. I learned a couple days ago that the newer versions of iPhoto have made it possible for you to export your pictures to a folder hierarchy right from within iPhoto.

Please give it a try. If it works, please close this issue.

BMorearty avatar Feb 07 '14 17:02 BMorearty