Thanks to visit codestin.com
Credit goes to github.com

Skip to content

web/debugerror.py is throwing file not found error in Ubuntu 22.04 LTS. #811

@bvikrammahadev

Description

@bvikrammahadev

This file, specifically the line os.path.join(os.getcwd(), file), is throwing FileNotFoundError: [Errno 2] No such file or directory. The same seems to be working fine in RHEL 9 though. Seems it is because of the difference in the way these 2 OS handle file paths, relative vs absolute. Changing the same line to os.path.abspath(file) fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions