Skip to content

OSError: [Errno 26] Text file busy: 'print'

Hi there.

I'm using version mdslides 1.6 on this environment:

  • Linux Mint 20.3 MATE 64-bit (virtual machine)
  • Python 3.9.5 (tried first with Python 3.8, then upgraded to using Python 3.9 under the suspicion the error might be caused by Python version, but I'm getting the same error)
  • Virtualenv (env created this way: virtualenv -p $(which python3.9) .venv-mdslides)

I even get the error when running the samples that come with mdslides (presentation.md and simple.md).

mdslides presentation.md --include media

mdslides simple

Error:

Traceback (most recent call last):
  File "/home/osboxes/Public/.venv-mdslides/bin/mdslides", line 8, in <module>
    sys.exit(main())
  File "/home/osboxes/Public/.venv-mdslides/lib/python3.9/site-packages/mdslides/__main__.py", line 265, in main
    build_slides(
  File "/home/osboxes/Public/.venv-mdslides/lib/python3.9/site-packages/mdslides/__main__.py", line 211, in build_slides
    shutil.rmtree(path)
  File "/usr/lib/python3.9/shutil.py", line 718, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.9/shutil.py", line 659, in _rmtree_safe_fd
    onerror(os.rmdir, fullname, sys.exc_info())
  File "/usr/lib/python3.9/shutil.py", line 657, in _rmtree_safe_fd
    os.rmdir(entry.name, dir_fd=topfd)
OSError: [Errno 26] Text file busy: 'print'