aboutcode-org / aboutcode-org/scancode-toolkit
scancode can't be installed on arm64 through pip due invalid requirements
- Lenguaje dominante
- Python
- Estrellas
- 2.6k
- Forks
- 791
- Merge medio
- 1 d 12 h
- PR fusionados (30 d)
- 5
Descripción
### Description
Attempt to install scancode-toolkit on arm64 platform using PIP lead to a invalid chek of requirements, and breaking the instalation.
At a moment during dependency resolution without pinned version, system try to install intbitset < 3.0.0 with forced core2 architechture, breaking binding wheel compilation.
With pinned version, error point out to extractcode conflicts
# Tested version
Version 30.1.0 - Tested or both Apple Silicon and Linux/Arm64
### How To Reproduce
```pip install scancode-toolkit==30.1.0```
Easy process, with any arm64 machine with docker:
```docker run --platform linux/arm64 -it --rm pip install scancode-toolkit```
Output of attempt install:
```shell
> docker run --platform linux/arm64 -it --rm python pip install scancode-toolkit==30.1.0
Collecting scancode-toolkit==30.1.0
Downloading scancode_toolkit-30.1.0-py3-none-any.whl (67.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.2/67.2 MB 5.1 MB/s eta 0:00:00
Collecting attrs!=20.1.0,>=18.1
Downloading attrs-22.1.0-py2.py3-none-any.whl (58 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.8/58.8 kB 14.4 MB/s eta 0:00:00
Collecting Beautifulsoup4<5.0.0,>=4.0.0
Downloading beautifulsoup4-4.11.1-py3-none-any.whl (128 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.2/128.2 kB 16.8 MB/s eta 0:00:00
Collecting bitarray<3.0.0,>=0.8.1
Downloading bitarray-2.6.0.tar.gz (102 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 102.8/102.8 kB 2.3 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting boolean.py<4.0,>=3.5
Downloading boolean.py-3.8-py2.py3-none-any.whl (23 kB)
Collecting chardet>=3.0.0
Downloading chardet-5.0.0-py3-none-any.whl (193 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 193.6/193.6 kB 5.8 MB/s eta 0:00:00
Collecting click!=7.0,>=6.7
Downloading click-8.1.3-py3-none-any.whl (96 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 kB 157.7 kB/s eta 0:00:00
Collecting colorama>=0.3.9
Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting commoncode>=30.0.0
Downloading commoncode-31.0.0-py3-none-any.whl (88 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 88.7/88.7 kB 1.3 MB/s eta 0:00:00
Collecting debian-inspector>=30.0.0
Downloading debian_inspector-31.0.0-py3-none-any.whl (45 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.3/45.3 kB 772.8 kB/s eta 0:00:00
Collecting dparse>=0.5.1
Downloading dparse-0.6.2-py3-none-any.whl (12 kB)
Collecting fasteners
Downloading fasteners-0.18-py3-none-any.whl (18 kB)
Collecting fingerprints>=0.6.0
Downloading fingerprints-1.0.3-py2.py3-none-any.whl (13 kB)
Collecting ftfy>=4.0.0
Downloading ftfy-6.1.1-py3-none-any.whl (53 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.1/53.1 kB 12.1 MB/s eta 0:00:00
Collecting gemfileparser>=0.7.0
Downloading gemfileparser-0.8.0-py2.py3-none-any.whl (19 kB)
Collecting html5lib
Downloading html5lib-1.1-py2.py3-none-any.whl (112 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.2/112.2 kB 7.7 MB/s eta 0:00:00
Collecting intbitset<3.0,>=2.3.0
Downloading intbitset-2.4.1.tar.gz (152 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 152.9/152.9 kB 1.5 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting jaraco.functools
Downloading jaraco.functools-3.5.2-py3-none-any.whl (7.3 kB)
Collecting javaproperties>=0.5
Downloading javaproperties-0.8.1-py3-none-any.whl (23 kB)
Collecting jinja2<4.0.0,>=2.7.0
Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 1.9 MB/s eta 0:00:00
Collecting jsonstreams>=0.5.0
Downloading jsonstreams-0.6.0-py2.py3-none-any.whl (10 kB)
Collecting license-expression>=21.6.14
Downloading license_expression-30.0.0-py3-none-any.whl (86 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 86.4/86.4 kB 6.1 MB/s eta 0:00:00
Collecting lxml<5.0.0,>=4.6.3
Downloading lxml-4.9.1.tar.gz (3.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 4.8 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting MarkupSafe>=1.0
Downloading MarkupSafe-2.1.1.tar.gz (18 kB)
Preparing metadata (setup.py) ... done
Collecting packageurl-python>=0.9.0
Downloading packageurl_python-0.10.4-py3-none-any.whl (28 kB)
Collecting packaging>20
Downloading packaging-21.3-py3-none-any.whl (40 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.8/40.8 kB 786.9 kB/s eta 0:00:00
Collecting parameter-expansion-patched>=0.2.1b4
Downloading parameter_expansion_patched-0.3.1-py3-none-any.whl (11 kB)
Collecting pdfminer.six>=20200101
Downloading pdfminer.six-20221105-py3-none-any.whl (5.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.6/5.6 MB 4.3 MB/s eta 0:00:00
Collecting pefile>=2020.1.1
Downloading pefile-2022.5.30.tar.gz (72 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.9/72.9 kB 6.7 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting pkginfo>=1.7.0
Downloading pkginfo-1.8.3-py2.py3-none-any.whl (26 kB)
Collecting pluggy<1.0,>=0.12.0
Downloading pluggy-0.13.1-py2.py3-none-any.whl (18 kB)
Collecting plugincode>=21.1.21
Downloading plugincode-31.0.0-py3-none-any.whl (18 kB)
Collecting publicsuffix2
Downloading publicsuffix2-2.20191221-py2.py3-none-any.whl (89 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.0/89.0 kB 16.4 MB/s eta 0:00:00
Collecting pyahocorasick<1.5,>=1.4.0
Downloading pyahocorasick-1.4.4.tar.gz (95 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 95.1/95.1 kB 14.6 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting pygmars>=0.7.0
Downloading pygmars-0.7.0-py3-none-any.whl (28 kB)
Collecting pygments
Downloading Pygments-2.13.0-py3-none-any.whl (1.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 6.1 MB/s eta 0:00:00
Collecting pymaven-patch>=0.2.8
Downloading pymaven_patch-0.3.0-py2.py3-none-any.whl (23 kB)
Collecting requests<3.0.0,>=2.7.0
Downloading requests-2.28.1-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 13.9 MB/s eta 0:00:00
Collecting saneyaml>=0.5.2
Downloading saneyaml-0.5.2-py3-none-any.whl (11 kB)
Collecting spdx-tools>=0.7.0a3
Downloading spdx_tools-0.7.0a3-py3-none-any.whl (227 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 227.1/227.1 kB 14.6 MB/s eta 0:00:00
Collecting text-unidecode<2.0,>=1.0
Downloading text_unidecode-1.3-py2.py3-none-any.whl (78 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.2/78.2 kB 1.6 MB/s eta 0:00:00
Collecting toml>=0.10.0
Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting urlpy
Downloading urlpy-0.5-py2.py3-none-any.whl (9.1 kB)
Collecting xmltodict>=0.11.0
Downloading xmltodict-0.13.0-py2.py3-none-any.whl (10.0 kB)
Collecting typecode[full]>=21.6.1
Downloading typecode-30.0.0-py3-none-any.whl (1.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 7.8 MB/s eta 0:00:00
Collecting extractcode[full]>=21.7.23
Downloading extractcode-31.0.0-py3-none-any.whl (56 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.7/56.7 kB 753.7 kB/s eta 0:00:00
Collecting soupsieve>1.2
Downloading soupsieve-2.3.2.post1-py3-none-any.whl (37 kB)
Collecting six
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting extractcode[full]>=21.7.23
Downloading extractcode-30.0.0-py3-none-any.whl (54 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.7/54.7 kB 2.1 MB/s eta 0:00:00
Collecting patch>=1.16
Downloading patch-1.16.zip (12 kB)
Preparing metadata (setup.py) ... done
Collecting extractcode[full]>=21.7.23
Downloading extractcode-21.7.23-py3-none-any.whl (54 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.5/54.5 kB 1.1 MB/s eta 0:00:00
INFO: pip is looking at multiple versions of dparse to determine which version is compatible with other requirements. This could take a while.
Collecting dparse>=0.5.1
Downloading dparse-0.6.1-py3-none-any.whl (12 kB)
INFO: pip is looking at multiple versions of debian-inspector to determine which version is compatible with other requirements. This could take a while.
Collecting debian-inspector>=30.0.0
Downloading debian_inspector-30.0.0-py3-none-any.whl (43 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.3/43.3 kB 9.7 MB/s eta 0:00:00
INFO: pip is looking at multiple versions of commoncode to determine which version is compatible with other requirements. This could take a while.
Collecting commoncode>=30.0.0
Downloading commoncode-30.2.0-py3-none-any.whl (84 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.4/84.4 kB 6.4 MB/s eta 0:00:00
INFO: pip is looking at multiple versions of colorama to determine which version is compatible with other requirements. This could take a while.
Collecting colorama>=0.3.9
Downloading colorama-0.4.5-py2.py3-none-any.whl (16 kB)
INFO: pip is looking at multiple versions of click to determine which version is compatible with other requirements. This could take a while.
Collecting click!=7.0,>=6.7
Downloading click-8.1.2-py3-none-any.whl (96 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 kB 7.6 MB/s eta 0:00:00
INFO: pip is looking at multiple versions of chardet to determine which version is compatible with other requirements. This could take a while.
Collecting chardet>=3.0.0
Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 178.7/178.7 kB 17.5 MB/s eta 0:00:00
INFO: pip is looking at multiple versions of boolean-py to determine which version is compatible with other requirements. This could take a while.
Collecting boolean.py<4.0,>=3.5
Downloading boolean.py-3.7-py2.py3-none-any.whl (22 kB)
INFO: pip is looking at multiple versions of bitarray to determine which version is compatible with other requirements. This could take a while.
Collecting bitarray<3.0.0,>=0.8.1
Downloading bitarray-2.5.1.tar.gz (102 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 102.5/102.5 kB 12.9 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
INFO: pip is looking at multiple versions of beautifulsoup4 to determine which version is compatible with other requirements. This could take a while.
Collecting Beautifulsoup4<5.0.0,>=4.0.0
Downloading beautifulsoup4-4.11.0-py3-none-any.whl (71 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.0/72.0 kB 1.5 MB/s eta 0:00:00
INFO: pip is looking at multiple versions of attrs to determine which version is compatible with other requirements. This could take a while.
Collecting attrs!=20.1.0,>=18.1
Downloading attrs-21.4.0-py2.py3-none-any.whl (60 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.6/60.6 kB 9.6 MB/s eta 0:00:00
INFO: pip is looking at multiple versions of to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of scancode-toolkit to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install extractcode[full]==21.7.23, extractcode[full]==30.0.0 and extractcode[full]==31.0.0 because these package versions have conflicting dependencies.
The conflict is caused by:
extractcode[full] 31.0.0 depends on extractcode-7z>=16.5.210525; extra == "full"
extractcode[full] 30.0.0 depends on extractcode-7z>=16.5.210525; extra == "full"
extractcode[full] 21.7.23 depends on extractcode-7z>=16.5.210525; extra == "full"
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
```
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.