scancode-toolkit icon indicating copy to clipboard operation
scancode-toolkit copied to clipboard

Mac install problem: conflicting dependencies

Open lucasgonze opened this issue 3 years ago • 10 comments

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

image

How To Reproduce

See log.txt

  1. Download "scancode-toolkit-30.1.0" (latest at this moment).
  2. Unpack tarball, cd into it
  3. vi PYTHON_EXECUTABLE and set python version (in my case python means Python 3.9.9)
  4. ./scancode --help
  5. 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

lucasgonze avatar Jan 24 '22 19:01 lucasgonze

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

pombredanne avatar Jan 24 '22 22:01 pombredanne

I was just filling this https://github.com/pypa/pip/issues/10824

pombredanne avatar Jan 24 '22 22:01 pombredanne

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.

lucasgonze avatar Jan 25 '22 01:01 lucasgonze

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 avatar Jan 25 '22 01:01 DennisClark

@DennisClark Thanks

@lucasgonze the short term workaround should be this, once the ./scancode --help above failed:

  1. run source bin/activate
  2. run pip install --editable . (This will fetch wheels live from PyPI though)

pombredanne avatar Jan 25 '22 17:01 pombredanne

@pombredanne i confirmed that the short term workaround is helpful in my installation, thanks. And it means that I can now report other issues :-)

DennisClark avatar Jan 25 '22 17:01 DennisClark

@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 avatar Jan 25 '22 19:01 lucasgonze

@lucasgonze I want to keep this open until we have a proper fix with pip

pombredanne avatar Jan 25 '22 22:01 pombredanne

I tried it is not working for me . @pombredanne

image earlier the error was at the end of installation as

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

usmankhanisb avatar Jun 28 '22 12:06 usmankhanisb

  • source bin/activate

there is no source directory , I user docker installation instruction , running on MAC

usmankhanisb avatar Jun 28 '22 13:06 usmankhanisb

This is solved in https://github.com/nexB/scancode-toolkit/pull/3053 and will be released with v31. Thanks!

pombredanne avatar Aug 17 '22 13:08 pombredanne