scancode-toolkit
scancode-toolkit copied to clipboard
Mac install problem: conflicting dependencies
Description
configure script throws error:
Cannot install scancode-toolkit==30.1.0 because these package versions have conflicting dependencies.
The conflict is caused by:
scancode-toolkit 30.1.0 depends on lxml<5.0.0 and >=4.6.3
The user requested (constraint) lxml==4.6.3
How To Reproduce
See log.txt
- Download "scancode-toolkit-30.1.0" (latest at this moment).
- Unpack tarball, cd into it
- vi PYTHON_EXECUTABLE and set python version (in my case
python
means Python 3.9.9) - ./scancode --help
- Get error "ERROR: Cannot install scancode-toolkit==30.1.0 because these package versions have conflicting dependencies."
System configuration
Mac OS X Monterey v12.1
scancode-toolkit-30.1.0
Python 3.9.9
Installation method: downloaded scancode-toolkit-30.1.0_py36-macos.tar.xz
Thank for the report . Sorry for this bug! There is likely some heisenbug-like condition in Python pip which I am tracking down.... Unless this is a macOS 12 issue? or just a macOS issue. This is really weird as I just tracked a similar issue on macOS 11 on Friday with @DennisClark
I was just filling this https://github.com/pypa/pip/issues/10824
It might be related that the system I'm using is noticeably slow. It's a 2017 Air running Monterey and Docker. This tends to trigger race conditions.
So try running something which overloads your hardware.
I have encountered the same problem on a MacBook Pro (16-inch, 2019) with a 2.6 GHz 6-Core Intel Core I7, and 16 GB RAM.
@DennisClark Thanks
@lucasgonze the short term workaround should be this, once the ./scancode --help
above failed:
- run
source bin/activate
- run
pip install --editable .
(This will fetch wheels live from PyPI though)
@pombredanne i confirmed that the short term workaround is helpful in my installation, thanks. And it means that I can now report other issues :-)
@pombredanne i confirmed that the short term workaround is helpful in my installation, thanks. And it means that I can now report other issues :-)
Ditto. Ibid. What he said.
@lucasgonze I want to keep this open until we have a proper fix with pip
I tried it is not working for me . @pombredanne

ERROR [6/6] RUN ./scancode --reindex-licenses 19.8s
[6/6] RUN ./scancode --reindex-licenses:
#11 0.212 * Configuring ScanCode for first use...
#11 19.45 ERROR: Cannot install scancode-toolkit[packages]==31.0.0rc2 because these package versions have conflicting dependencies. #11 19.45 ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
executor failed running [/bin/sh -c ./scancode --reindex-licenses]: exit code: 1
source bin/activate
there is no source directory , I user docker installation instruction , running on MAC
This is solved in https://github.com/nexB/scancode-toolkit/pull/3053 and will be released with v31. Thanks!