Error Message:
flickrfs-1.2.9 $ python2.4 flickrfs.py ~/flickr
Authorizing with flickr...
Authorization complete.
fuse: warning: buffer size too small: 4
Populating sets...
Sets population complete.
Populating photostream
Photostream population finished.
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/fuse.py", line 40, in __call__
return apply(self.func, args, kw)
File "flickrfs.py", line 1105, in write
id = self.transfl.uploadfile(path, taglist, inode.buf, inode.mode)
File "flickrfs.py", line 183, in uploadfile
bufData = self.imageResize(bufData)
File "flickrfs.py", line 146, in imageResize
cmd = 'identify -format "%w" %s'%(im,)
ValueError: unsupported format character 'w' (0x77) at index 19
Solution:
Escape the '%' in identify's format specification.
Patch:
--- flickrfs-1.2.9-orig/flickrfs.py 2006-05-28 08:07:25.000000000 +0100
+++ flickrfs-1.2.9/flickrfs.py 2006-06-18 18:05:30.000000000 +0100
@@ -143,7 +143,7 @@
f = open(im, 'w')
f.write(bufData)
f.close()
- cmd = 'identify -format "%w" %s'%(im,)
+ cmd = 'identify -format "%%w" %s'%(im,)
status,ret = commands.getstatusoutput(cmd)
if status!=0:
print "identify command not found. Install Imagemagick"
Cheers,
Joe <joe.milbourn@gmail.com>