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

setattr(st, key, val): TypeError: an integer is required #129

Open
diman82 opened this issue Dec 4, 2018 · 0 comments
Open

setattr(st, key, val): TypeError: an integer is required #129

diman82 opened this issue Dec 4, 2018 · 0 comments

Comments

@diman82
Copy link

diman82 commented Dec 4, 2018

When val is None I get the following error message:

ERROR:fuse:Uncaught exception from FUSE operation getattr, returning errno.EINVAL.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/fuse.py", line 735, in _wrapper
    return func(*args, **kwargs) or 0
  File "/usr/lib/python2.7/site-packages/fuse.py", line 775, in getattr
    return self.fgetattr(path, buf, None)
  File "/usr/lib/python2.7/site-packages/fuse.py", line 1029, in fgetattr
    set_st_attrs(st, attrs, use_ns=self.use_ns)
  File "/usr/lib/python2.7/site-packages/fuse.py", line 591, in set_st_attrs
    setattr(st, key, val)
TypeError: an integer is required

It's fixed by changing line 589 in 'fuse.py' to:

elif hasattr(st, key) and val is not None:

@diman82 diman82 changed the title ssetattr(st, key, val): TypeError: an integer is required setattr(st, key, val): TypeError: an integer is required Dec 4, 2018
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

1 participant