Traceback (most recent call last):


 "/home/yms23/.conda/envs/spyder4beta/lib/python3.7/site-packages/spyder/plugins/editor/widgets/editor.py", line 1818, in save

self._write_to_file(finfo, finfo.filename)


 "/home/yms23/.conda/envs/spyder4beta/lib/python3.7/site-packages/spyder/plugins/editor/widgets/editor.py", line 1777, in _write_to_file

fileinfo.encoding = encoding.write(txt, filename, fileinfo.encoding)


 "/home/yms23/.conda/envs/spyder4beta/lib/python3.7/site-packages/spyder/utils/encoding.py", line 251, in write

textfile.write(text)


 "/home/yms23/.conda/envs/spyder4beta/lib/python3.7/contextlib.py", line 119, in __exit__

next(self.gen)


 "/home/yms23/.conda/envs/spyder4beta/lib/python3.7/site-packages/atomicwrites/__init__.py", line 159, in _open

self.commit(f)


 "/home/yms23/.conda/envs/spyder4beta/lib/python3.7/site-packages/atomicwrites/__init__.py", line 192, in commit

replace_atomic(f.name, self._path)


 "/home/yms23/.conda/envs/spyder4beta/lib/python3.7/site-packages/atomicwrites/__init__.py", line 93, in replace_atomic

return _replace_atomic(src, dst)


 "/home/yms23/.conda/envs/spyder4beta/lib/python3.7/site-packages/atomicwrites/__init__.py", line 50, in _replace_atomic

_sync_directory(os.path.normpath(os.path.dirname(dst)))


 "/home/yms23/.conda/envs/spyder4beta/lib/python3.7/site-packages/atomicwrites/__init__.py", line 44, in _sync_directory

_proper_fsync(fd)
OSError: [Errno 22] Invalid argument

Traceback (most recent call last):


 "/cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/python/3.6.3/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap

self.run()


 "/cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/python/3.6.3/lib/python3.6/multiprocessing/process.py", line 93, in run

self._target(*self._args, **self._kwargs)


 "/home/bmazoure/rlpyt/rlpyt/samplers/parallel/worker.py", line 37, in sampling_process

initialize_worker(w.rank, w.seed, w.cpus, c.torch_threads)


 "/home/bmazoure/rlpyt/rlpyt/samplers/parallel/worker.py", line 17, in initialize_worker

p.cpu_affinity(cpu)


 "/home/bmazoure/pytorch_gpu/lib/python3.6/site-packages/psutil/__init__.py", line 937, in cpu_affinity

self._proc.cpu_affinity_set(list(set(cpus)))


 "/home/bmazoure/pytorch_gpu/lib/python3.6/site-packages/psutil/_pslinux.py", line 1507, in wrapper

return fun(self, *args, **kwargs)


 "/home/bmazoure/pytorch_gpu/lib/python3.6/site-packages/psutil/_pslinux.py", line 1944, in cpu_affinity_set

cext.proc_cpu_affinity_set(self.pid, cpus)
OSError: [Errno 22] Invalid argument
