aboutcode-org / aboutcode-org/scancode-plugins

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

Abierto
#52 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
HTML
Estrellas
2
Forks
11
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.