Skip to content

[BUG]: ddtrace 3.18.0 breaks python 3.9 with FileNotFoundError: [Errno 2] No usable temporary directory found error #15166

@jonflashFD

Description

@jonflashFD

Tracer Version(s)

3.18.0

Python Version(s)

3.9.22

Pip Version(s)

23.0.1

Bug Report

After updating to 3.18.0 yesterday, our application no longer ran, throwing the following error at startup:

FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/app']

The Python and ddtrace versions are shown below. Downgrading our ddtrace to 3.17 fixed the issue for us for now.

Broken version:

Python 3.9.22 (main, Apr  9 2025, 18:21:49)
[GCC 13.2.1 20240309] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ddtrace
>>> ddtrace.__version__
'3.18.0'

Working version:

Python 3.9.22 (main, Apr  9 2025, 18:21:49)
[GCC 13.2.1 20240309] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ddtrace
>>> ddtrace.__version__
'3.17.2'

Reproduction Code

No code changes related

Error Logs

FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/app']

Libraries in Use

No response

Operating System

alpine3.20

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions