Cannot install on fresh Drupal 10 site

Created on 20 February 2024, 9 months ago
Updated 21 February 2024, 9 months ago

Problem/Motivation

Hello!

When attempting to install this module via composer on the latest release of Drupal 10 (core-recommended) I am met with the following error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires drupal/core-recommended 10.2.3 -> satisfiable by drupal/core-recommended[10.2.3].
    - drupal/virustotal[2.0.0, ..., 2.0.x-dev] require guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.3.0, ..., 6.5.x-dev].
    - You can only install one version of a package, so only one of these can be installed: guzzlehttp/guzzle[4.0.0-rc.1, ..., 4.x-dev, 5.0.0, ..., 5.3.x-dev, 6.0.0, ..., 6.5.x-dev, 7.0.0-beta.1, ..., 7.9.x-dev].
    - drupal/core-recommended 10.2.3 requires guzzlehttp/guzzle ~7.8.1 -> satisfiable by guzzlehttp/guzzle[7.8.1, 7.8.x-dev].
    - Root composer.json requires drupal/virustotal ^2.0 -> satisfiable by drupal/virustotal[2.0.0, 2.0.x-dev].

Steps to reproduce

  1. Create a new Drupal 10 core-recommended project
  2. Try to include this module with composer

Proposed resolution

I believe the reason for this is Drupal 10 installs with guzzle ~7.8.1 - https://packagist.org/packages/drupal/core-recommended

Remaining tasks

  1. Determine if this module still functions with Guzzle 7
  2. If so, update composer.json to allow multiple versions

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇺🇸United States dan612 Portland, Maine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @dan612
  • Status changed to Needs review 9 months ago
  • 🇮🇳India sarwan_verma

    Hi @dan612,
    I have fixed this issue "Cannot install on fresh Drupal 10 site" and also attached patch,
    please review and verify.

Production build 0.71.5 2024