Skip to content

ImportError: cannot import name 'xxx' from 'math' - How to resolve? #2

Description

@go2maxi

I'm trying to import a function from the math module but getting an ImportError.

Not sure if it's a typo or version issue.

Solution:
Turned out it was just a wrong function name.

Working example:
https://github.com/go2maxi/common-python-errors/tree/main/importerror-cannot-import-name-specific

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions