Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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