Skip to content

ImportError: no module named 'functools.wraps' #974

Open
@jadencodes

Description

@jadencodes

I have been importing some stdlibs by hand and most are working fine (collections/datetime/etc). However after a lot of attempts I can't get code such as the following to work:

from functools import wraps

The error is: ImportError: no module named 'functools.wraps'

The test partial file does this, so it should be possible. I have tried with multiple versions and used mip as well which throws the same error. It is the same when attempting to import the partial function as well.

I am building this for the esp32 port and have tried esp-idf 5.2.2 and 5.4. I see no recent changes to the functools.py file in years so I'm not sure what else could've changed.

Thank you.

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