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 摘要。