handyman5 / acd_fuse

FUSE filesystem driver for Amazon Cloud Drive
Other
187 stars 23 forks source link

AttributeError: 'Session' object has no attribute 'is_valid' #5

Closed marcus-no closed 9 years ago

marcus-no commented 9 years ago

Am I doing something wrong?

user@host:/usr/local/src/acd/acd_fuse$ sudo ./acd /mnt/acd -oemail=email@example.com,password=hackme Trying to login from cached sessionfile /tmp/acd_fuse/sessionfile Traceback (most recent call last): File "./acd", line 464, in fs.main() File "./acd", line 74, in main if not self.session.is_valid() or not self.session.is_logined(): AttributeError: 'Session' object has no attribute 'is_valid'

comptonqc commented 9 years ago

The session file is from a previous version. Delete it and you should be fine.

marcus-no commented 9 years ago

Deleted the session file, made sure the mountpoint exists, gave it 777 just to be sure and tried with and without trailing / in the path. Getting this first run after deleting the session file, the first submitted error if i try again without deleting it.

Trying to login from cached sessionfile /tmp/acd_fuse/sessionfil Cached session failed; trying auth login Login successful; starting filesystem fuse: mount failed: Invalid argument Traceback (most recent call last): File "./acd", line 464, in fs.main() File "./acd", line 89, in main fuse.Fuse.main(self) File "/usr/lib/python2.7/dist-packages/fuse.py", line 757, in main(**d) fuse.FuseError: filesystem initialization failed

On Wed 1 Apr 2015 at 01:43 Adam Compton notifications@github.com wrote:

The session file is from a previous version. Delete it and you should be fine.

— Reply to this email directly or view it on GitHub https://github.com/handyman5/acd_fuse/issues/5#issuecomment-88286332.

comptonqc commented 9 years ago

I'm afraid I'm not familiar with that problem. Perhaps check to make sure the fuse library on your system is working properly, or that the kernel module is loaded? Once the "starting filesystem" line passes, acd_fuse is done and has handed control over to the fuse library.

marcus-no commented 9 years ago

Roger, I'll look into that and report back. Thanks so far! On Wed 1 Apr 2015 at 01:59 Adam Compton notifications@github.com wrote:

I'm afraid I'm not familiar with that problem. Perhaps check to make sure the fuse library on your system is working properly, or that the kernel module is loaded? Once the "starting filesystem" line passes, acd_fuse is done and has handed control over to the fuse library.

— Reply to this email directly or view it on GitHub https://github.com/handyman5/acd_fuse/issues/5#issuecomment-88288594.

tooj commented 9 years ago

@marcus-no I'm running Ubuntu 14.10 64-bit and got the same error you got:

Deleted the session file, made sure the mountpoint exists, gave it 777 just to be sure and tried with and without trailing / in the path. Getting this first run after deleting the session file, the first submitted error if i try again without deleting it.

Trying to login from cached sessionfile /tmp/acd_fuse/sessionfil Cached session failed; trying auth login Login successful; starting filesystem fuse: mount failed: Invalid argument Traceback (most recent call last): File "./acd", line 464, in fs.main() File "./acd", line 89, in main fuse.Fuse.main(self) File "/usr/lib/python2.7/dist-packages/fuse.py", line 757, in main(**d) fuse.FuseError: filesystem initialization failed

Fuse is up-to-date and I installed python-fuse. I also know my FUSE install is working properly because I was able to install python-crypto and run the MegaFS FUSE filesystem wrapper for Mega.co.nz. That wrapper is also written in Python.

tentious commented 9 years ago

I'm having the exact same issue. Found a fix for this, don't run acd as root or sudo it. See here: : issue #8

tooj commented 9 years ago

@tentious Perfect! Deleted the old session file and ran it as myself. That did the trick!

handyman5 commented 9 years ago

Looks like the lessons here are delete the old session file and don't run as root.