aboutcode-org / aboutcode-org/scancode-toolkit

scancode-toolkit-mini 30.1.0 - missing dependency

Offen
#2,752 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug installation and packaging os support
Vorherrschende Sprache
Python
Sterne
2.6k
Forks
791
Ø Merge
1 T. 12 Std.
Gemergte PRs (30 T.)
5

Beschreibung

### Description

When installing scancode-toolkit-mini in a clean system using pip it installs successfully, but produces this error when trying to execute it:

File "/Users/egans/PycharmProjects/scanoss.py/venv/lib/python3.8/site-packages/typecode/magic2.py", line 103, in load_lib_failover
ctypes.util.find_library('magic')
AttributeError: module 'ctypes' has no attribute 'util'

### How To Reproduce

Install on a clean system where scancode has not been installed before.

`pip install scancode-toolkit-mini
scancode --help
`

If you install the full version (pip install scancode-toolkit), uninstall and then re-install mini (pip install scancode-toolkit-mini), it will work. When you do this, the following extra packages get installed:

extractcode-30.0.0 extractcode-7z-16.5.210531 extractcode-libarchive-3.5.1.210531 patch-1.16 scancode-toolkit-30.1.0 typecode-libmagic-5.39.210531

I believe the "mini" install is missing "typecode-libmagic" package dependency.

### System configuration

* What OS are you running on? - MacOS & Linux
* What version of scancode-toolkit was used to generate the scan file? - 30.1.0, 21.8.4
* What installation method was used to install/run scancode? - pip

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.