Thread: [Flickrfs-users] Version 1.1. released
Brought to you by:
manishrjain
From: Manish R. J. <man...@gm...> - 2005-11-08 21:16:02
|
Hi all Version 1.1 is out. Changes are as follows: v1.1 - - fixed bug if photo title=3D=3D'', then flickrfs crashes. - Including API Key - Support for spaces in tags while uploading - Permissions support while Uploading (mode=3Dabc -a=3D7(always), b=3D(friends=3D5 | family=3D6 | none=3D4), c=3D(5=3Dpublic | 4=3Dprivate) More abt it online at: http://flickrfs.sf.net Regards Manish |
From: Paul P. <pe...@ee...> - 2005-11-10 05:35:15
|
On Wed, Nov 09, 2005 at 05:15:52AM +0800, Manish Rai Jain wrote: > Hi all > Version 1.1 is out. I am still seeing the "short read on fuse device" error that I reported the other day. The log file does not show any errors; the last line reads Creating file:/sets/Michigan football game/naptime:with id:1156242 which corresponds to the last photo in the last set. Not having much luck with debugging so far, but then again I don't know much about FUSE. Any debugging suggestions you have would be very helpful. Also, I couldn't help but notice that flickrfs.py has a whole lot of indentation that mixes tabs and spaces. That's a dangerous thing to do in Python; there's a note about it here: http://www.python.org/peps/pep-0008.html I'd be happy to submit a patch that uses spaces for all indentation. It takes about 2 seconds to fix in Vim. Paul |
From: Manish R. J. <man...@gm...> - 2005-11-10 05:45:30
|
On 11/10/05, Paul Pelzl <pe...@ee...> wrote: > > On Wed, Nov 09, 2005 at 05:15:52AM +0800, Manish Rai Jain wrote: > > Hi all > > Version 1.1 is out. > > I am still seeing the "short read on fuse device" error that I reported > the other day. The log file does not show any errors; the last line > reads > > Creating file:/sets/Michigan football game/naptime:with id:1156242 > > which corresponds to the last photo in the last set. Not having much > luck with debugging so far, but then again I don't know much about FUSE. > Any debugging suggestions you have would be very helpful. Some checks: 1. ls -al /dev/fuse -> does it show a character device? (Though, this shd b= e fine, otherwise flickrfs won't mount) 2. Try out flickr account of your friend, on the same installation, and see if the prob remains. You'll need to remove ~/.flickr directory containing the authentication information, so that flickrfs will show the login prompt again. 3. Add some debugging statements to sets_thread, and see if the thread returns before the error shows up. Also, I couldn't help but notice that flickrfs.py has a whole lot of > indentation that mixes tabs and spaces. That's a dangerous thing to do > in Python; there's a note about it here: > http://www.python.org/peps/pep-0008.html > I'd be happy to submit a patch that uses spaces for all indentation. It > takes about 2 seconds to fix in Vim. Thanks for the suggestion. I will identate it properly in the next version according to python style. Paul > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Flickrfs-users mailing list > Fli...@li... > https://lists.sourceforge.net/lists/listinfo/flickrfs-users > |
From: Paul P. <pe...@ee...> - 2005-11-10 06:53:00
|
On Thu, Nov 10, 2005 at 01:45:28PM +0800, Manish Rai Jain wrote: > > which corresponds to the last photo in the last set. Not having much > > luck with debugging so far, but then again I don't know much about FUSE. > > Any debugging suggestions you have would be very helpful. > > > Some checks: > 1. ls -al /dev/fuse -> does it show a character device? (Though, this shd be > fine, otherwise flickrfs won't mount) crw-rw-rw- 1 root root 10, 229 Nov 8 00:43 /dev/fuse > 2. Try out flickr account of your friend, on the same installation, and see > if the prob remains. You'll need to remove ~/.flickr directory containing > the authentication information, so that flickrfs will show the login prompt > again. I registered a new account and uploaded a couple of photos. Same problem. However, I did uncover another bug: if the user has no sets, then the main for loop in sets_thread fails because rsp.photosets[0] has no 'photoset' attr. I guess you can fix it with something like if hasattr(rsp.photosets[0], "photoset"): for a in rsp.photosets[0].photoset: ... > 3. Add some debugging statements to sets_thread, and see if the thread > returns before the error shows up. sets_thread does return. However, I'm not sure whether the "short read" error occurs before or after sets_thread returns. The error message doesn't show up until I hit enter. If I don't touch the keyboard then the flickrfs process just sits there doing nothing after iterating through all the tags and sets (and the mount point remains empty), so I assume the error has already occurred even though the message is not printed until I hit enter. Must be some weird multithreading thing. Paul |
From: Manish R. J. <man...@gm...> - 2005-11-10 07:04:43
|
On 11/10/05, Paul Pelzl <pe...@ee...> wrote: > > On Thu, Nov 10, 2005 at 01:45:28PM +0800, Manish Rai Jain wrote: > > > which corresponds to the last photo in the last set. Not having much > > > luck with debugging so far, but then again I don't know much about > FUSE. > > > Any debugging suggestions you have would be very helpful. > > > > > > Some checks: > > 1. ls -al /dev/fuse -> does it show a character device? (Though, this > shd be > > fine, otherwise flickrfs won't mount) > > crw-rw-rw- 1 root root 10, 229 Nov 8 00:43 /dev/fuse > > > 2. Try out flickr account of your friend, on the same installation, and > see > > if the prob remains. You'll need to remove ~/.flickr directory > containing > > the authentication information, so that flickrfs will show the login > prompt > > again. > > I registered a new account and uploaded a couple of photos. Same > problem. However, I did uncover another bug: if the user has no sets, > then the main for loop in sets_thread fails because rsp.photosets[0] has > no 'photoset' attr. I guess you can fix it with something like > > if hasattr(rsp.photosets[0], "photoset"): > for a in rsp.photosets[0].photoset: > ... Someone else reported this as well. Will fix it asap. > 3. Add some debugging statements to sets_thread, and see if the thread > > returns before the error shows up. > > sets_thread does return. However, I'm not sure whether the "short read" > error occurs before or after sets_thread returns. The error message > doesn't show up until I hit enter. If I don't touch the keyboard then > the flickrfs process just sits there doing nothing after iterating > through all the tags and sets (and the mount point remains empty), so I > assume the error has already occurred even though the message is not > printed until I hit enter. Must be some weird multithreading thing. While mounting flickrfs, don't do it as a background process. # ./flickrfs /mnt/flickrfs (no &) You shd be able to see the error msg. Also, you may use the 'print' statement inside the code, instead of the log.info <http://log.info> so as to print it on the same terminal (on which you mounted). Paul > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Flickrfs-users mailing list > Fli...@li... > https://lists.sourceforge.net/lists/listinfo/flickrfs-users > |
From: Paul P. <pe...@ee...> - 2005-11-10 08:36:48
|
Problem solved. Turns out I had a year-old copy of fuse-python installed, and flickrfs was loading that version instead of the current one. Sorry for the confusion. Thanks for a great little program. This looks like the perfect unixy interface to flickr. I look forward to seeing what other features you have in mind. Paul |
From: Manish R. J. <man...@gm...> - 2005-11-10 08:38:35
|
Great Paul ! That's really good news. Do check out features-request list on sourceforge main page. Manish On 11/10/05, Paul Pelzl <pe...@ee...> wrote: > > > Problem solved. Turns out I had a year-old copy of fuse-python > installed, and flickrfs was loading that version instead of the current > one. Sorry for the confusion. > > Thanks for a great little program. This looks like the perfect unixy > interface to flickr. I look forward to seeing what other features you > have in mind. > > Paul > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Flickrfs-users mailing list > Fli...@li... > https://lists.sourceforge.net/lists/listinfo/flickrfs-users > |