Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: getattr() takes exactly 2 arguments (3 given) #5

Open
diman82 opened this issue Oct 16, 2018 · 2 comments
Open

TypeError: getattr() takes exactly 2 arguments (3 given) #5

diman82 opened this issue Oct 16, 2018 · 2 comments

Comments

@diman82
Copy link

diman82 commented Oct 16, 2018

I get this error when I try to copy one file to gridfs-fuse mounted directory:

-bash-4.2$ cp /home/dm57337/input/grid.zip /home/dm57337/output/
2018-10-16 07:13:27,253 - llfuse - INFO - handler raised <type 'exceptions.TypeError'> exception (getattr() takes exactly 2 arguments (3 given)), terminating main loop.
cp: failed to access ‘/home/dm57337/output/’: Input/output error
-bash-4.2$ Traceback (most recent call last):
  File "/usr/bin/gridfs_fuse", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/gridfs_fuse/main.py", line 265, in main
    init(args, configure=configure_parser, validate=validate_options)  # defaults
  File "/usr/lib/python2.7/site-packages/gridfs_fuse/main.py", line 260, in init
    run_fuse_mount(ops, options, mount_opts)
  File "/usr/lib/python2.7/site-packages/gridfs_fuse/main.py", line 209, in run_fuse_mount
    if 'single' in opts and opts['single'] is None:
  File "src/fuse_api.pxi", line 328, in llfuse.main
  File "src/handlers.pxi", line 80, in llfuse.fuse_getattr
  File "src/handlers.pxi", line 81, in llfuse.fuse_getattr
TypeError: getattr() takes exactly 2 arguments (3 given)

I mount the directory with the following command (and it seems to work fine):

gridfs_fuse -m /home/dm57337/output/ -u mongodb://admin_mongodb:p2fzzhYU@someremotehost:37017/admin.ImageFiles -d datasync_aws_poc -c ImageFiles

What can be the problem?

@harutyundermenjyan
Copy link

harutyundermenjyan commented Nov 8, 2018

I have a similar issue too

2018-11-08 07:56:04,770 - llfuse - INFO - handler raised <type 'exceptions.TypeError'> exception (getattr() takes exactly 2 arguments (3 given)), terminating main loop.
Traceback (most recent call last):
File "/usr/local/bin/gridfs_fuse", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/gridfs_fuse/main.py", line 265, in main
init(args, configure=configure_parser, validate=validate_options) # defaults
File "/usr/local/lib/python2.7/dist-packages/gridfs_fuse/main.py", line 260, in init
run_fuse_mount(ops, options, mount_opts)
File "/usr/local/lib/python2.7/dist-packages/gridfs_fuse/main.py", line 223, in run_fuse_mount
llfuse.main(workers) # maintain compatibility with single/workers kwarg
File "src/fuse_api.pxi", line 328, in llfuse.main
File "src/handlers.pxi", line 80, in llfuse.fuse_getattr
File "src/handlers.pxi", line 81, in llfuse.fuse_getattr
TypeError: getattr() takes exactly 2 arguments (3 given)

@instance01
Copy link
Member

That's a discrepancy with the latest llfuse. Fixed with this PR: #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants