Skip to content

Instantly share code, notes, and snippets.

@chiahaoliu
Created January 13, 2017 18:17
Show Gist options
  • Save chiahaoliu/0ee6382200830cc22c06ed31693aa91e to your computer and use it in GitHub Desktop.
Save chiahaoliu/0ee6382200830cc22c06ed31693aa91e to your computer and use it in GitHub Desktop.
 OSError Traceback (most recent call last)
/home/xf28id1/Documents/Milinda/Scripts/aquasition/kapton.py in <module>()
----> 1 _end_beamtime()
/home/xf28id1/src/xpdacq/xpdacq/beamtimeSetup.py in _end_beamtime(base_dir, archive_dir, bto, usr_confirm)
227 _confirm_archive(archive_full_name)
228 # flush
--> 229 _delete_home_dir_tree()
230 # delete bt
231 del ips.ns_table['user_global']['bt']
/home/xf28id1/src/xpdacq/xpdacq/beamtimeSetup.py in _delete_home_dir_tree()
309 def _delete_home_dir_tree():
310 os.chdir(glbl.base) # move out from xpdUser before deletion
--> 311 shutil.rmtree(glbl.home)
312 os.makedirs(glbl.home, exist_ok=True)
313 os.chdir(glbl.home) # now move back into xpdUser
/home/xf28id1/conda_envs/collection-17Q1.0/lib/python3.5/shutil.py in rmtree(path, ignore_errors, onerror)
472 try:
473 if os.path.samestat(orig_st, os.fstat(fd)):
--> 474 _rmtree_safe_fd(fd, path, onerror)
475 try:
476 os.rmdir(path)
/home/xf28id1/conda_envs/collection-17Q1.0/lib/python3.5/shutil.py in _rmtree_safe_fd(topfd, path, onerror)
410 try:
411 if os.path.samestat(orig_st, os.fstat(dirfd)):
--> 412 _rmtree_safe_fd(dirfd, fullname, onerror)
413 try:
414 os.rmdir(name, dir_fd=topfd)
/home/xf28id1/conda_envs/collection-17Q1.0/lib/python3.5/shutil.py in _rmtree_safe_fd(topfd, path, onerror)
430 os.unlink(name, dir_fd=topfd)
431 except OSError:
--> 432 onerror(os.unlink, fullname, sys.exc_info())
433
434 _use_fd_functions = ({os.open, os.stat, os.unlink, os.rmdir} <=
/home/xf28id1/conda_envs/collection-17Q1.0/lib/python3.5/shutil.py in _rmtree_safe_fd(topfd, path, onerror)
428 else:
429 try:
--> 430 os.unlink(name, dir_fd=topfd)
431 except OSError:
432 onerror(os.unlink, fullname, sys.exc_info())
OSError: [Errno 16] Device or resource busy: '.nfs000000000034defe00000001'
 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment