Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install Akeneo Connector on default Magento 2.4.7 & PHP 8.2 #688

Open
nooneelse opened this issue Apr 24, 2024 · 4 comments
Open

Comments

@nooneelse
Copy link

Environment and configuration

 - Default Magento 2.4.7
 - Akeneo Connector Extension 104.3.7
 - PHP 8.2

Steps to reproduce

  1. Install Magento 2.4.7 via composer

Expected result

  1. Normal installation of Akeneo Connector

Actual result

image

`./composer.json has been updated
Running composer update akeneo/module-magento2-connector-community
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- akeneo/module-magento2-connector-community[101.3.0, ..., 101.8.2, 102.1.0, ..., 102.6.0] require php-http/guzzle6-adapter ^2.0 -> satisfiable by php-http/guzzle6-adapter[v2.0.0, v2.0.1, v2.0.2].
- akeneo/module-magento2-connector-community[100.1.0, ..., 100.4.16, 101.0.0, ..., 101.2.0] require akeneo/api-php-client ^3.0 -> satisfiable by akeneo/api-php-client[v3.0.0].
- akeneo/module-magento2-connector-community[103.0.0, ..., 103.3.1, 104.3.1] require symfony/http-client ^5 -> found symfony/http-client[v5.0.0, ..., v5.4.38] but the package is fixed to v7.0.6 (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.
- php-http/guzzle6-adapter[v2.0.0, ..., v2.0.1] require php ^7.1 -> your php version (8.2.18) does not satisfy that requirement.
- php-http/guzzle6-adapter v2.0.2 requires guzzlehttp/guzzle ^6.0 -> found guzzlehttp/guzzle[6.0.0, ..., 6.5.8] 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.
- akeneo/api-php-client v3.0.0 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 akeneo/module-magento2-connector-community * -> satisfiable by akeneo/module-magento2-connector-community[100.1.0, ..., 100.4.16, 101.0.0, ..., 101.8.2, 102.1.0, ..., 102.6.0, 103.0.0, ..., 103.3.1, 104.3.1].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require akeneo/module-magento2-connector-community:*" to figure out if any version is installable, or "composer require akeneo/module-magento2-connector-community:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.`

@zespolit-bj
Copy link

I have the same problem in Magento 2.4.7 + PHP 8.3 setup.

When I indicated that I require a specific version of connector 104.3.7, the message I get indicates a version mismatch for symfony/http-client dependency.

Problem 1
- Root composer.json requires akeneo/module-magento2-connector-community 104.3.7 -> satisfiable by akeneo/module-magento2-connector-community[104.3.7].
- akeneo/module-magento2-connector-community 104.3.7 requires symfony/http-client ^5 -> found symfony/http-client[v5.0.0, ..., v5.4.38] but the package is fixed to v7.0.6 (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.

Connector in its composer.json calls out "symfony/http-client: "^5", and the new Magento installation uses version 7.

Requesting for hint to resolve this issue.

@akosglue
Copy link

It succeeded for me with the -W option but it downgraded a couple of packages of course, for example psr/http-message, symfony/http-client, symfony/http-kernel etc

@nooneelse
Copy link
Author

nooneelse commented May 30, 2024

@akosglue sure but only install version 103.3.1 with error on setup:upgrade
image

@akosglue
Copy link

akosglue commented Jun 3, 2024

how do you mean 'only install version 103.3.1 '?
The composer install is successful with connector 104.3.7, php 8.3.0 and magento 2.4.7
(by using the -W switch and so the aforementioned downgrades of a few packages)
And setup:upgrade doesn't give an error.
On your screenshot it is php 8.2., isn't it the problem maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants