libfuse / python-fuse

Python 2.x/3.x bindings for libfuse 2.x
GNU Lesser General Public License v2.1
286 stars 74 forks source link

hello.py returns -22 on read #23

Closed sundhaug92 closed 9 months ago

sundhaug92 commented 4 years ago

Seems to be because bytes is being returned rather than str, so relates to py3 compat

sdelafond commented 4 years ago

I'm swamped right now but I'll gladly accept a PR fixing that.

sdelafond commented 12 months ago

Could you provide context and minimal reproduction steps for this error?

sundhaug92 commented 12 months ago

I'm sorry, it's been almost 4 years. I was probably running Ubuntu and using python 3.x, but I don't remember a lot

glensc commented 9 months ago

works with python 3.11

$ python example/hello.py tmp 

$ ls -lla tmp 
total 4
drwxr-xr-x  2 root wheel   0 Jan  1  1970 ./
drwxr-xr-x 30 glen staff 960 Jan 15 03:44 ../
-r--r--r--  1 root wheel  13 Jan  1  1970 hello

$ cat tmp/hello
Hello World!