aboutcode-org / aboutcode-org/scancode-plugins

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

Open
#52 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
2
Forks
11
PR merge metrics
No merged PRs in 30d

Description

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](https://docs.python.org/3/library/platform.html#linux-platforms)

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.