Can't install Aimeos on TYPO3 V10.4.12 with composer v2

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
gizmo
Posts: 24
Joined: 18 Jan 2021, 20:42

Can't install Aimeos on TYPO3 V10.4.12 with composer v2

Post by gizmo » 30 Jan 2021, 15:03

I'm trying to install the Aimeos EXT on a TYPO3 v10.4.12 installation via composer.
The composer is version 2.0.8 and is using PHP 7.4.13. Its running on a Apache Linux Server.

When I require the aimeos package (composer req aimeos/aimeos-typo3) I get the following error:
Problem 1
- aimeos/aimeos-typo3[20.10.2, ..., 20.10.5] require aimeos/ai-gettext 2020.10.* -> satisfiable by aimeos/ai-gettext[2020.10.1, 2020.10.2].
- aimeos/ai-gettext[2020.10.1, ..., 2020.10.2] require composer/installers ^1.0 -> satisfiable by composer/installers[v1.0.0, ..., v1.10.0].
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.10.0.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.9.0.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.21.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.20.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.19.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.18.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.17.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.16.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.15.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.14.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.13.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.12.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.11.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.10.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.9.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.8.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.7.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.6.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.5.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.4.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.3.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.2.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.1.
- typo3/cms-composer-installers v3.0.1 conflicts with composer/installers v1.0.0.
- aimeos/aimeos-typo3 20.10.1 requires composer/installers 1.0.24 -> satisfiable by composer/installers[v1.0.24].
- typo3/cms-core v10.4.12 requires typo3/cms-composer-installers ^2.0 || ^3.0 -> satisfiable by typo3/cms-composer-installers[v3.0.1].
- composer/installers v1.0.22 requires composer-plugin-api 1.0.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- composer/installers[v1.0.23, ..., v1.8.0] require composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- typo3/cms-core is locked to version v10.4.12 and an update of this package was not requested.
- Root composer.json requires aimeos/aimeos-typo3 ^20.10 -> satisfiable by aimeos/aimeos-typo3[20.10.1, ..., 20.10.5].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
Is the newest Version of Aimeos (20.10.5) not compatible with composer version 2?

User avatar
aimeos
Administrator
Posts: 7904
Joined: 01 Jan 1970, 00:00

Re: Can't install Aimeos on TYPO3 V10.4.12 with composer v2

Post by aimeos » 01 Feb 2021, 08:40

It is but TYPO3 limits composer/installers package to 1.0.24 which isn't compatible to composer 2.
The problem is described here: https://github.com/composer/installers/issues/470
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

gizmo
Posts: 24
Joined: 18 Jan 2021, 20:42

Re: Can't install Aimeos on TYPO3 V10.4.12 with composer v2

Post by gizmo » 04 Feb 2021, 17:42

Thanks for the replay. I've read the Github Issue. If i want to install Aimeos right now, I have to downgrade to composer to v1?

gizmo
Posts: 24
Joined: 18 Jan 2021, 20:42

Re: Can't install Aimeos on TYPO3 V10.4.12 with composer v2

Post by gizmo » 06 Feb 2021, 11:03

In the Github Issue (https://github.com/composer/installers/issues/470) it was mentioned, that currently you are only able to install Aimeos if you disable the installer via the root composer.json.

For example:

Code: Select all

{
 "extra": {
      "installer-disable": true
  }
}
But I wasnt able to disable the installer. I'm assuming I have to disable the TYPO3 installer since this is the one that requires composer v1.

I've also tried the following:

Code: Select all

{
 "extra": {
      "installer-disable": "typo3-cms-extension"
  }
}
Unfortunatelly I wasn't able to install the Aimeos EXT with these settings. Was anyone successfull in installing Aimeos since the composer V2 Update?

User avatar
aimeos
Administrator
Posts: 7904
Joined: 01 Jan 1970, 00:00

Re: Can't install Aimeos on TYPO3 V10.4.12 with composer v2

Post by aimeos » 06 Feb 2021, 16:37

No, only composer v1 is working at the moment.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
aimeos
Administrator
Posts: 7904
Joined: 01 Jan 1970, 00:00

Re: Can't install Aimeos on TYPO3 V10.4.12 with composer v2

Post by aimeos » 23 Mar 2021, 12:50

You have missed adding the "scripts" to your composer.json file:
https://github.com/aimeos/aimeos-typo3#composer
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply