Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac install problem: conflicting dependencies #2808

Closed
lucasgonze opened this issue Jan 24, 2022 · 14 comments
Closed

Mac install problem: conflicting dependencies #2808

lucasgonze opened this issue Jan 24, 2022 · 14 comments

Comments

@lucasgonze
Copy link

lucasgonze commented Jan 24, 2022

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 lucasgonze added the bug label Jan 24, 2022
@pombredanne
Copy link
Member

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
Copy link
Member

I was just filling this pypa/pip#10824

@lucasgonze
Copy link
Author

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.

@DennisClark
Copy link
Member

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.

@pombredanne
Copy link
Member

pombredanne commented Jan 25, 2022

@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)

@DennisClark
Copy link
Member

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

@lucasgonze
Copy link
Author

@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.

@pombredanne
Copy link
Member

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

@usmankhanisb
Copy link

usmankhanisb commented Jun 28, 2022

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
Copy link

usmankhanisb commented Jun 28, 2022

  • source bin/activate

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

@pombredanne
Copy link
Member

This is solved in #3053 and will be released with v31.
Thanks!

@swastkk
Copy link
Collaborator

swastkk commented Apr 22, 2024

Getting this error

ERROR: Could not find a version that satisfies the requirement extractcode-7z>=16.5.210525; extra == "full" (from extractcode[full]) (from versions: none)
ERROR: No matching distribution found for extractcode-7z>=16.5.210525; extra == "full"

System configuration

macOS 14.4.1 23E224 arm64

scancode-toolkit-32.1.0

Python 3.12.2

Installed via cloning scancode-toolkit with --depth=1

@pombredanne
Copy link
Member

@swastkk can you move this comment to a new issue? Your issue is likely different. You may also need to run in rosetta x86 mode?

@swastkk
Copy link
Collaborator

swastkk commented Apr 24, 2024

@swastkk can you move this comment to a new issue? Your issue is likely different. You may also need to run in rosetta x86 mode?

Ya sure, :")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants