Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在afp卷错误上使用python创建和写入文件_Python_Linux_Raspbian_Fuse_Afp - Fatal编程技术网

在afp卷错误上使用python创建和写入文件

在afp卷错误上使用python创建和写入文件,python,linux,raspbian,fuse,afp,Python,Linux,Raspbian,Fuse,Afp,使用python(2.7.3)在装入的afp卷上写入是否存在已知问题 这导致 Traceback (most recent call last): File "<stdin>", line 1, in <module> IOError: [Errno 5] Input/output error: '/mnt/foo/test.txt' 回溯(最近一次呼叫最后一次): 文件“”,第1行,在 IOError:[Errno 5]输入/输出错误:'/mnt/foo/test.t

使用python(2.7.3)在装入的afp卷上写入是否存在已知问题

这导致

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 5] Input/output error: '/mnt/foo/test.txt'
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
IOError:[Errno 5]输入/输出错误:'/mnt/foo/test.txt'

python创建了这个文件,但我不能使用file对象。当我尝试与以前相同的操作,但使用现有文件时,一切正常。

请检查
/mnt/foo/test.txt
文件的权限。这将解决问题。

您必须对该文件授予足够的权限才能使用True。读取和写入文件的权限不足。我还拥有执行权:|然后我给出一个答案,将这个问题标记为已解决:)读写权限不足以一次创建和写入文件。如果执行许可被授予,一切都能正常工作。
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 5] Input/output error: '/mnt/foo/test.txt'