Drupal 10 install fails

Created on 25 April 2023, about 1 year ago
Updated 1 November 2023, 8 months ago

Drupal Core 10.0.8
PHP 8.2

Trying to install the patched dev version of drupal/endroid_qr_code, but it fails due to endroid/qr-code-bundle requirements:

$ composer require 'drupal/endroid_qr_code:3.0.x-dev@dev' -W
./composer.json has been updated
Running composer update drupal/endroid_qr_code --with-all-dependencies
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- endroid/qr-code-bundle[3.4.3, ..., 3.x-dev] require symfony/yaml ^3.4||^4.4||^5.0 -> found symfony/yaml[v3.4.0-BETA1, ..., 3.4.x-dev, v4.4.0-BETA1, ..., 4.4.x-dev, v5.0.0-BETA1, ..., 5.4.x-dev] but these were not loaded, likely because it conflicts with another require.
- endroid/qr-code-bundle[3.4.0, ..., 3.4.2] require symfony/yaml ^3.4||^4.0||^5.0 -> found symfony/yaml[v3.4.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev, v5.0.0-BETA1, ..., 5.4.x-dev] but these were not loaded, likely because it conflicts with another require.
- drupal/endroid_qr_code 3.0.x-dev is an alias of drupal/endroid_qr_code dev-3.0.x and thus requires it to be installed too.
- drupal/endroid_qr_code dev-3.0.x requires endroid/qr-code-bundle ^3.4 -> satisfiable by endroid/qr-code-bundle[3.4.0, ..., 3.x-dev].
- Root composer.json requires drupal/endroid_qr_code 3.0.x-dev@dev -> satisfiable by drupal/endroid_qr_code[3

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇸🇦Saudi Arabia ishore

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

Comments & Activities

  • Issue created by @ishore
  • 🇸🇦Saudi Arabia ishore

    $ composer why symfony/yaml
    consolidation/robo 4.0.3 requires symfony/yaml (^6)
    drupal/core 10.0.8 requires symfony/yaml (^6.2)
    drupal/core-recommended 10.0.8 requires symfony/yaml (~v6.2.5)

  • 🇮🇹Italy kopeboy Mainland

    I couldn't install this module either and kind of broken my site multiple times trying.

    Please update dependencies: endroid/qr-code-bundle is at 4.3, not 3.4. But even that wouldn't satisfy the Drupal requirement of yaml 6.2 😅🤔

  • Status changed to Needs review 9 months ago
  • 🇮🇳India harsh.behl

    Hello Guys,

    I have updated the code to have latest libraries. Please check
    composer require 'drupal/endroid_qr_code:4.0.x-dev@dev'

  • 🇺🇸United States fredonia_webteam

    Install of drupal/endroid_qr_code:4.0.x-dev@dev is successful. QR code works on display.

    +1 RTBC

  • 🇨🇿Czech Republic David Urban

    Hi, installing via composer require 'drupal/endroid_qr_code:4.0.x-dev@dev' -W under D9 was successful, codes get generated. Also upgrade to D10 worked ok with QR codes displayed correctly.

Production build 0.69.0 2024