Skip to content

On import: ImportError: cannot import name 'gcd' from 'fractions' (/usr/lib/python3.10/fractions.py) #234

@sbenthall

Description

@sbenthall

On import dolo getting error:

ImportError: cannot import name 'gcd' from 'fractions' (/usr/lib/python3.10/fractions.py)

This appears to be due to a deprecated Python feature, removed in Python 3.9, which is still in quantecon:

https://stackoverflow.com/questions/66174862/import-error-cant-import-name-gcd-from-fractions

I don't see a Python version limit in the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No 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