python-fuse icon indicating copy to clipboard operation
python-fuse copied to clipboard

hello.py returns -22 on read

Open sundhaug92 opened this issue 5 years ago • 2 comments

sundhaug92 avatar Jan 23 '20 23:01 sundhaug92

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

sundhaug92 avatar Jan 23 '20 23:01 sundhaug92

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

sdelafond avatar Jan 24 '20 14:01 sdelafond

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

sdelafond avatar Nov 12 '23 09:11 sdelafond

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

sundhaug92 avatar Nov 12 '23 19:11 sundhaug92

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!

glensc avatar Jan 15 '24 01:01 glensc