Re: [Flickrfs-users] Flickfs
Brought to you by:
manishrjain
From: Manish R. J. <man...@gm...> - 2006-07-20 19:18:36
|
Hi Kai TypeError: cannot concatenate 'str' and 'NoneType' objects This is a bug, which I cudn't/haven't fixed yet. As you noticed, the photos do get uploaded, but they're not added to the sets. Annoying! I just tried killing it and restarting it. More obscure messages: perry$ python flickrfs/flickrfs.py /home/hendry/f Authorizing with flickr... Authorization complete. fusermount: failed to access mountpoint /home/hendry/f: Permission denied fuse: reading device: Bad file descriptor perry$ ls -al f ls: f: Transport endpoint is not connected This is a problem with fuse, and not flickrfs. When you killed the process, fuse module was still being used, and hence generated errors. The way arnd is to use fusermount which shd automatically unmount flickrfs. This shd work, as the previous bug doesn't hang the software. Though it shows errors, its still handled by flickrfs internally. If you have to kill flickrfs, even then you can use fusermount, to decrease the use count of fuse. You can proceed then use 'rmmod fuse', followed by 'modprobe fuse'. A "bad file descriptor" message is generally occured by these causes 1. no read/write permission in /dev/fuse. 2. fuse not added as module to kernel (use modprobe) The easy way to check for these to be okay is to follow these commands and not get an error: $ sudo modprobe fuse $ sudo chmod 755 /usr/bin/fusermount $ sudo chmod u+s /usr/bin/fusermount $ sudo chmod 666 /dev/fuse flickrfs shd mount okay if these were fine. -Manish P.S. Ccing to flickrfs-users. On 7/20/06, Kai Hendry <he...@ik...> wrote: > > I am trying to upload a couple of files into sets/ to a newly created > directory "maps". I found a couple of errors: > > Populating sets... > Sets population complete. > 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/flickrfs.py", line 1140, in write > self.transfl.put2Set(pinode.setId, id) > File "flickrfs/flickrfs.py", line 206, in put2Set > log.info("Uploading photo:"+photo_id+":to set_id:"+set_id) > TypeError: cannot concatenate 'str' and 'NoneType' objects > 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/flickrfs.py", line 1140, in write > self.transfl.put2Set(pinode.setId, id) > File "flickrfs/flickrfs.py", line 206, in put2Set > log.info("Uploading photo:"+photo_id+":to set_id:"+set_id) > TypeError: cannot concatenate 'str' and 'NoneType' objects > > > perry$ mkdir maps > perry$ cd maps > perry$ ls > perry$ cp /home/hendry/pictures/maps/*.jpg . > cp: writing `./asia.jpg': Invalid argument > cp: writing `./kazcorrect.jpg': Invalid argument > perry$ ls > asia.jpg kazcorrect.jpg > perry$ > > > The files do get uploaded, but they're not in a "maps" set. > > Attached is a log. > > Be good is this was working. I am using wth CVS version on Ubuntu. > > > I just tried killing it and restarting it. More obscure messages: > > perry$ python flickrfs/flickrfs.py /home/hendry/f > Authorizing with flickr... > Authorization complete. > fusermount: failed to access mountpoint /home/hendry/f: Permission denied > fuse: reading device: Bad file descriptor > perry$ ls -al f > ls: f: Transport endpoint is not connected > > > Best wishes, > > > -- Engg. Intern, Google HQ Comp. Engg. Final Year NTU, Singapore |