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

ERROR: Cannot install extractcode[full]==31.0.0 because these package versions have conflicting dependencies.

Open arnav-mandal1234 opened this issue 2 years ago • 7 comments

Description

Getting the following error while setting up dev env for scancode-toolkit.

Error

ERROR: Cannot install 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" The user requested (constraint) extractcode-7z==16.5.210531

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

How To Reproduce

  • clone the project
  • run ./configure --dev

System configuration

  • What OS are you running on? MacOS M1
  • What version of scancode-toolkit was used to generate the scan file? latest develop branch
  • What installation method was used to install/run scancode? git clone

arnav-mandal1234 avatar Apr 03 '23 15:04 arnav-mandal1234

Ran into the same issue, tried to workaround this bug by changing line 20 in requirements.txt from extractcode-7z>=16.5.210531 to extractcode-7z>=16.5.210525 extractcode-7z>=16.5.210525 but still getting below error message. Happy to help debug the issue if someone can from the ScanCode team can assist me.

ERROR: Cannot install 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"
    The user requested (constraint) extractcode-7z>=16.5.210525

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

tsteenbe avatar Aug 14 '23 13:08 tsteenbe

Issue seems to be same as https://github.com/nexB/scancode-toolkit/issues/3141

tsteenbe avatar Aug 14 '23 13:08 tsteenbe

@tsteenbe @arnav-mandal1234 are you both running an ARM on Apple?

pombredanne avatar Aug 14 '23 15:08 pombredanne

Could you try to install v31.2.6 in the 31 range?

pombredanne avatar Aug 14 '23 18:08 pombredanne

@pombredanne I've tried this with 31.2.6 and 32.0.6 and still get the same error as posted above.

lumaxis avatar Sep 12 '23 15:09 lumaxis

Any progress on this? I still cannot use the latest dev branch.

Telshin avatar May 22 '24 23:05 Telshin

@Telshin Maybe my workaround described https://github.com/nexB/scancode-toolkit/issues/3626#issuecomment-2084527200 will work for you as well.

tsteenbe avatar May 23 '24 07:05 tsteenbe