aboutcode-org / aboutcode-org/scancode-plugins

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

未关闭
#52 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
HTML
星标
2
派生
11
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。