Drupal 10.2.x compatibility

Created on 9 January 2024, 11 months ago
Updated 6 February 2024, 11 months ago

Problem/Motivation

I hope I'm not mistaken, but composer won't let me install the module citing a list of problems but this seems to be the main one:

sudo -u www-data composer depends guzzlehttp/guzzle

drupal/core 10.2.1 requires guzzlehttp/guzzle (^7.5)
drupal/core-recommended 10.2.1 requires guzzlehttp/guzzle (~7.8.1)
drush/drush 12.4.3 requires guzzlehttp/guzzle (^7.0)
php-http/guzzle7-adapter 1.0.0 requires guzzlehttp/guzzle (^7.0)

The full list of problems composer outputs:

Problem 1

  • drupal/ai_interpolator_simple_crawler 1.0.0-alpha1 requires scotteh/php-goose ^1.0 → satisfiable by scotteh/php-goose[1.0.0, ..., 1.1.1].
  • drupal/ai_interpolator_simple_crawler[dev-1.0.x, 1.0.0-alpha2, ..., 1.0.x-dev] requires fivefilters/readability.php dev-master → satisfiable by fivefilters/readability.php[dev-master].
  • scotteh/php-goose[1.0.x-dev, ..., 1.1.1] requires scotteh/php-dom-wrapper ^2.0 → satisfiable by scotteh/php-dom-wrapper[2.0.0, ..., 2.0.5].
  • fivefilters/readability.php dev-master requires league/uri ~6.7.2 → satisfiable by league/uri[6.7.2, 6.7.x-dev].
  • scotteh/php-dom-wrapper[2.0.0, ..., 2.0.1] requires symfony/css-selector ^4.0 || ^5.0 → found symfony/css-selector[v4.0.0-BETA1, ..., 4.4.x-dev, v5.0.0-BETA1, ..., 5.4.x-dev], but the package is fixed to v7.0.0 (lock file version) by a partial update, and that version does not match. Make sure you list it as an argument for the update command.
  • scotteh/php-dom-wrapper[2.0.2, ..., 2.0.5] requires symfony/css-selector ^4.0 || ^5.0 || ^6.0 → found symfony/css-selector[v4.0.0-BETA1, ..., 4.4.x-dev, v5.0.0-BETA1, ..., 5.4.x-dev, v6.0.0-BETA1, ..., 6.4.x-dev], but the package is fixed to v7.0.0 (lock file version) by a partial update, and that version does not match. Make sure you list it as an argument for the update command.
  • scotteh/php-goose[1.0.0, ..., 1.0.10] requires guzzlehttp/guzzle ^6.0 → found guzzlehttp/guzzle[6.0.0, ..., 6.5.x-dev], but the package is fixed to 7.8.1 (lock file version) by a partial update, and that version does not match. Make sure you list it as an argument for the update command.
  • league/uri[6.7.2, ..., 6.7.x-dev] requires psr/http-message ^1.0 → found psr/http-message[1.0, 1.0.1, 1.1], but the package is fixed to 2.0 (lock file version) by a partial update, and that version does not match. Make sure you list it as an argument for the update command.
  • Root composer.json requires drupal/ai_interpolator_simple_crawler * → satisfiable by drupal/ai_interpolator_simple_crawler[dev-1.0.x, 1.0.0-alpha1, 1.0.0-alpha2, 1.0.0-alpha3, 1.0.x-dev].

Hope this helps :)

Steps to reproduce

Try use composer to add the module to a Drupal 10.2.x codebase.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇹🇭Thailand AlfTheCat

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

Comments & Activities

  • Issue created by @AlfTheCat
  • 🇮🇳India samir_shukla bareilly

    Hi, I installed the module with composer without any issues. U can doing composer update , or in specific update the specific packages mentioned in the issue,example:
    composer update scotteh/php-goose guzzlehttp/guzzle league/uri symfony/css-selector

    I hope it helps.

  • 🇹🇭Thailand AlfTheCat

    Hi Samir, thanks for the guidance. I tried running those update commands but composer reports with a straight face that there is nothing to update. Only interesting thing I got back from the terminal is: "Package "league/uri" listed for update is not locked.

    Running 'composer update' also does not update any of the listed packages.

    I manually downloaded and installed the module, I'll see if it works.

  • 🇩🇪Germany marcus_johansson

    Hi AlfTheCat,

    It could be that you have installed something that requires a higher version of Guzzle than @samir_shukla, thus getting different results.

    The problem is that since there is not stable version, it gets alpha1 for some reason.

    What you can do until the beta versions are released is to:

    1. Follow instructions here: https://www.drupal.org/project/ai_interpolator_simple_crawler
    2. Run composer require 'drupal/ai_interpolator_simple_crawler:^1.0.0-alpha3'

  • 🇹🇭Thailand AlfTheCat

    Hi Marcus, thanks, I've found the updated guidance and will test when I get a chance. Looking forward to the results!

Production build 0.71.5 2024