为了解决错误[OSError]:设备上没有剩余空间,我已经卸载并重新安装/ dev / shm。我以为这可能会释放内存,但是令我惊讶的是,尽管它释放了内存,但它阻止了我的文件运行。我无法通过命令提示符运行任何python文件,甚至无法保存任何文件。它说“设备上没有剩余空间”。另外,如果我运行程序,则无论文件如何,它始终会给我以下错误。在卸载之前,所有这些文件都在运行。
重新安装后会丢失任何数据吗?如果是这样,有什么选择可以让我重新执行重新安装的操作。我已经在根目录中运行了以下命令:
umount /dev/shm
mount -o remount /dv/shm
我想环境文件可能存在问题,必须运行该环境文件来设置配置。这就是为什么会出现此错误的原因。但是我无法追踪到底缺少了什么,需要修复什么。我也尝试增加/ dev / shm的内存。它显示了新增加的内存,但仍然给我错误,说如果我执行任何操作都没有空间。我无法弄清楚这个“序列化错误”。
''''
/home/niyathipriya/flow/flow/utils/flow_warnings.py:20: UserWarning: The attribute minGap in SumoCarFollowingParams is deprecated, use min_gap instead.
dep_from, obj.__class__.__name__, dep_to))
Traceback (most recent call last):
File "cooperative_merge_PPO_multi_Centralized.py", line 260, in <module>
alg_run, gym_name, config = setup_exps()
File "cooperative_merge_PPO_multi_Centralized.py", line 235, in setup_exps
test_env = create_env()
File "/home/niyathipriya/flow/flow/utils/registry.py", line 108, in create_env
return gym.envs.make(env_name)
File "/home/niyathipriya/anaconda3/envs/flow/lib/python3.5/site-packages/gym/envs/registration.py", line 167, in make
return registry.make(id)
File "/home/niyathipriya/anaconda3/envs/flow/lib/python3.5/site-packages/gym/envs/registration.py", line 119, in make
env = spec.make()
File "/home/niyathipriya/anaconda3/envs/flow/lib/python3.5/site-packages/gym/envs/registration.py", line 86, in make
env = cls(**self._kwargs)
File "/home/niyathipriya/flow/flow/envs/base_env.py", line 125, in __init__
self.k.scenario.generate_network(scenario)
File "/home/niyathipriya/flow/flow/core/kernel/scenario/traci.py", line 144, in generate_network
connections
File "/home/niyathipriya/flow/flow/core/kernel/scenario/traci.py", line 425, in generate_net
printxml(x, self.net_path + self.nodfn)
File "/home/niyathipriya/flow/flow/core/util.py", line 23, in printxml
fn, pretty_print=True, encoding='UTF-8', xml_declaration=True)
File "src/lxml/etree.pyx", line 2039, in lxml.etree._ElementTree.write
File "src/lxml/serializer.pxi", line 735, in lxml.etree._tofilelike
File "src/lxml/serializer.pxi", line 199, in lxml.etree._raiseSerialisationError
lxml.etree.SerialisationError: unknown error -1
[![Serialisation Error[![Available memory][1]][1]][1]
可用内存错误: