Python中文
首页
教程
问答
标签
搜索
登录
注册
Python-causing:IOError:[Errno 28]设备上没有剩余空间:'../results/32766.html'在具有大量sp的磁盘上
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我正在运行一个导致上述错误的Python脚本。不寻常的是,这个脚本运行在不同的机器上,没有问题。</p> <p>不同的是,在导致我写入外部硬盘时出现问题的计算机上。更奇怪的是,这个脚本在问题机器上运行,已经写了30000多个文件。</p> <p>一些相关信息(导致错误的代码):</p> <pre><code>nPage = 0 while nPage != -1: for d in data: if len(d.contents) > 1: if '<script' in str(d.contents): l = str(d.contents[1]) start = l.find('http://') end = l.find('>',start) out = get_records.openURL(l[start:end]) print COUNT with open('../results/'+str(COUNT)+'.html','w') as f: f.write(out) COUNT += 1 nPage = nextPage(mOut,False) </code></pre> <p>我要写的目录是:</p> <pre><code>10:32@lorax:~/econ/estc/bin$ ll ../ total 56 drwxr-xr-x 3 boincuser boincuser 4096 2011-07-31 14:29 ./ drwxr-xr-x 3 boincuser boincuser 4096 2011-07-31 14:20 ../ drwxr-xr-x 2 boincuser boincuser 4096 2011-08-09 10:38 bin/ lrwxrwxrwx 1 boincuser boincuser 47 2011-07-31 14:21 results -> /media/cavalry/server_backup/econ/estc/results// -rw-r--r-- 1 boincuser boincuser 44759 2011-08-09 10:32 test.html </code></pre> <p>证明有足够的空间:</p> <pre><code>10:38@lorax:~/econ/estc/bin$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 9.0G 5.3G 3.3G 63% / none 495M 348K 495M 1% /dev none 500M 164K 500M 1% /dev/shm none 500M 340K 500M 1% /var/run none 500M 0 500M 0% /var/lock none 9.0G 5.3G 3.3G 63% /var/lib/ureadahead/debugfs /dev/sdc10 466G 223G 244G 48% /media/cavalry </code></pre> <p>我试过的一些事情:</p> <ul> <li>将写入路径更改为直接位置,而不是通过链接</li> <li>重新启动机器</li> <li>卸下并重新安装驱动器</li> </ul>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>对我来说最好的解决办法就是重新格式化硬盘。一旦重新格式化,所有这些问题就不再是问题了。</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
无法使用Django/mongoengine连接到MongoDB(身份验证失败)
9 回答
无法使用Django\u mssql\u后端迁移到外部hos
8 回答
无法使用Django&Python3.4连接到MySql
7 回答
无法使用Django+nginx上载媒体文件
9 回答
无法使用Django1.6导入名称模式
1 回答
无法使用Django1.7和mongodb登录管理站点
4 回答
无法使用Djangoadmin创建项目,进程使用了错误的路径,因为我事先安装了错误的Python
4 回答
无法使用Djangockedi验证CBV中的字段
3 回答
无法使用Djangocketditor上载图像(错误400)
7 回答
无法使用Djangocron进行函数调用
4 回答
无法使用Djangofiler djang上载文件
6 回答
无法使用Djangokronos
10 回答
无法使用Djangomssql provid
9 回答
无法使用Djangomssql连接到带有Django 1.11的MS SQL Server 2016
9 回答
无法使用Djangomssq迁移Django数据库
7 回答
无法使用Djangonox创建用户
2 回答
无法使用Djangopyodb从Django查询SQL Server
9 回答
无法使用Djangopython3ldap连接到ldap
1 回答
无法使用Djangoredis连接到redis
7 回答
无法使用Django中的FK创建新表
8 回答