Skip to content

Missing-requirements error shows an empty directory ("does not exist in ''") for a bare notebook filename #896

Closed

Description

@tdstein

🤖 When a notebook is given as a bare filename (relative path, no directory), the missing-requirements error shows an empty directory.

Repro

mkdir p && cd p
echo '{"cells":[],"metadata":{},"nbformat":4,"nbformat_minor":5}' > nb.ipynb
rsconnect write-manifest notebook nb.ipynb      # same for deploy notebook / deploy quarto with a bare filename
Error: The requirements file 'requirements.txt' does not exist in ''.

The directory comes from os.path.dirname("nb.ipynb"), which is ''. With an absolute path, the message shows the correct directory.

Expected

... does not exist in '.' or the absolute directory.

Found during live QA of #892 against Posit Connect. Reproduced on 1.32.0 and current main (0287aca3).

Activity

  1. added
    bugSomething isn't working
    ready-for-agentFully specified, ready for an autonomous coding agent
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingready-for-agentFully specified, ready for an autonomous coding agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions