FileNotFoundError

Open
#6 0 comments 0 reactions 1 assignee View on GitHub

@JarbasAl is already working on this.

Since Jul 9, 2025.

Assessment

This issue has not been assessed yet.

Description

bug

Installed ovos-docs-viewer as described in virtualenv ~/.venvs/ovos. Then I called ovos-docs-viewer technical. After a few seconds of downloading some stuff there was a FileNotFoundError:

(ovos) jz@jz-desktop:~$ ovos-docs-viewer technical
downloading: https://github.com/OpenVoiceOS/status/raw/refs/heads/master/README.md
downloading: https://github.com/OpenVoiceOS/message_spec/archive/refs/heads/master.zip
Traceback (most recent call last):
  File "/usr/lib/python3.11/shutil.py", line 853, in move
    os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: '/home/jz/.local/share/ovos_docs/master-master' -> '/home/jz/.local/share/ovos_docs/messages'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/jz/.venvs/ovos/bin/ovos-docs-viewer", line 8, in <module>
    sys.exit(launch())
             ^^^^^^^^
  File "/home/jz/.venvs/ovos/lib/python3.11/site-packages/click/core.py", line 1442, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jz/.venvs/ovos/lib/python3.11/site-packages/click/core.py", line 1363, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/jz/.venvs/ovos/lib/python3.11/site-packages/click/core.py", line 1226, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jz/.venvs/ovos/lib/python3.11/site-packages/click/core.py", line 794, in invoke
    return callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jz/.venvs/ovos/lib/python3.11/site-packages/ovos_docs_viewer/ovos_docs.py", line 218, in launch
    Documentation(selected_doc=docs).run()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jz/.venvs/ovos/lib/python3.11/site-packages/ovos_docs_viewer/ovos_docs.py", line 168, in __init__
    self.docs_paths = download_docs()
                      ^^^^^^^^^^^^^^^
  File "/home/jz/.venvs/ovos/lib/python3.11/site-packages/ovos_docs_viewer/ovos_docs.py", line 132, in download_docs
    shutil.move(base_path / extracted_name, doc_folder)
  File "/usr/lib/python3.11/shutil.py", line 873, in move
    copy_function(src, real_dst)
  File "/usr/lib/python3.11/shutil.py", line 448, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.11/shutil.py", line 256, in copyfile
    with open(src, 'rb') as fsrc:
         ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/jz/.local/share/ovos_docs/master-master'

Here are the files and directories which are in the ovos_docs:

(ovos) jz@jz-desktop:~/.local/share/ovos_docs$ ls
installer  live-status  message_spec-master  messages.zip  ovos-technical-manual-master  raspOVOS  technical
Dominant language
Python
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenVoiceOS/ovos-docs-viewer

All issues in OpenVoiceOS/ovos-docs-viewer

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.