Bauble / bauble.classic

this is how Bauble and Ghini both started
GNU General Public License v2.0
10 stars 34 forks source link

New connection does not create pictures root or thumbs, preventing saving pictures #157

Closed sehrgut closed 8 years ago

sehrgut commented 8 years ago

After being unable to save pictures to a newly-created SQLite database using default paths under Windows 8.1, I checked the pictures root. I found that the image was being saved as the pictures root path "C:\Users\Owner\AppData\Roaming\Bauble\Beckman Conservatory", since no directory existed at that path. I deleted the file, and again attempted to save an image. It still failed to associate the image, but the picture was saved in the manually-created directory. In the log, I found:

2015-10-25 21:34:22,829 - bauble.editor - DEBUG - about to set current folder - C:\Users\Owner\AppData\Roaming\Bauble\Beckman Conservatory
2015-10-25 21:34:24,638 - bauble.editor - DEBUG - new current folder is: C:\Users\Owner\AppData\Roaming\Bauble\Beckman Conservatory
2015-10-25 21:34:24,638 - bauble.editor - DEBUG - copying C:\Users\Owner\AppData\Roaming\Bauble\Beckman Conservatory\titanum 2015-10-01 17.40.14.jpg to C:\Users\Owner\AppData\Roaming\Bauble\Beckman Conservatory\thumbs\titanum 2015-10-01 17.40.14.jpg
2015-10-25 21:34:24,638 - bauble.editor - WARNING - unhandled exception in editor.py: [Errno 2] No such file or directory: 'C:\\Users\\Owner\\AppData\\Roaming\\Bauble\\Beckman Conservatory\\thumbs\\titanum 2015-10-01 17.40.14.jpg'
2015-10-25 21:34:30,766 - bauble.editor - DEBUG - remove_problem(<bauble.editor.PicturesPresenter object at 0x061E4690>, BAD_DATE, <gtk.Entry object at 0x64e9be8 (GtkEntry at 0x7c32b58)>)

This led me to also create the "thumbs" directory manually. After I did so, adding pictures worked as expected.

sehrgut commented 8 years ago

I should add that I reproduced this in a clean connection, and no errors were written to the log during setup. I'm working with 1.0.52 under Windows 8.1.