Skip to content

termcap warnings from uv python #35917

@jyoung8607

Description

@jyoung8607

Describe the bug

For some time now we've had annoying termcap warnings from scons, pytest, etc. Today it annoyed me enough to track it down. It traces back to the Python build we're using.

(openpilot) jyoung@jy-workstation-ubuntu:~/openpilot$ strace python
...
stat("/home/jyoung/.terminfo", 0x197f3880) = -1 ENOENT (No such file or directory)
stat("/tools/deps/share/terminfo", 0x197f3880) = -1 ENOENT (No such file or directory)
write(2, "Cannot read termcap database;\n", 30Cannot read termcap database;) = 30
write(2, "using dumb terminal settings.\n", 30using dumb terminal settings.) = 30
...

The UV build of Python just doesn't seem to know where Ubuntu's terminfo database lives. Telling it manually with export TERMINFO=/usr/share/terminfo is sufficient to work around the issue.

That said, this is the second time we've been bitten by weirdness in the UV Python build. Are we getting value from it other than being a downloadable pre-built copy of the particular version we want?

Provide a route where the issue occurs

N/A

openpilot version

master

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions