Skip to content

AttributeError when running typecode-libmagic-system-provided on a Python 3.9 system #52

@anthonyharrison

Description

@anthonyharrison

Installing typecode-libmagic-system-provided on a Python 3.9 system results in Attribnute Error

/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/typecode_libmagic/__init__.py:34: in get_like_distro
    info = platform.freedesktop_os_release()
E   AttributeError: module 'platform' has no attribute 'freedesktop_os_release'

The freedesktop_os_release() was added in Python 3.10

Temporary workaround is to install typecode[full] for Python 3.9

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