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

Packages versions conflict during composer installation #1457

Closed
voltel opened this issue Dec 10, 2018 · 17 comments · Fixed by #1474
Closed

Packages versions conflict during composer installation #1457

voltel opened this issue Dec 10, 2018 · 17 comments · Fixed by #1474

Comments

@voltel
Copy link

voltel commented Dec 10, 2018

This is dump from the terminal, it's self explanatory:

D:\WebSites\ctx>composer require hwi/oauth-bundle php-http/guzzle6-adapter php-http/httplug-bundle
Using version ^0.6.3 for hwi/oauth-bundle
Using version ^2.0 for php-http/guzzle6-adapter
Using version ^1.13 for php-http/httplug-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for hwi/oauth-bundle ^0.6.3 -> satisfiable by hwi/oauth-bundle[0.6.3].
- hwi/oauth-bundle 0.6.3 requires php-http/httplug ^1.0 -> satisfiable by php-http/httplug[v1.0.0, v1.1.0].
- Can only install one of: php-http/httplug[v2.0.0, v1.0.0].
- Can only install one of: php-http/httplug[v2.0.0, v1.1.0].
- php-http/guzzle6-adapter v2.0.0 requires php-http/httplug ^2.0 -> satisfiable by php-http/httplug[v2.0.0].
- Installation request for php-http/guzzle6-adapter ^2.0 -> satisfiable by php-http/guzzle6-adapter[v2.0.0].

Installation failed, reverting ./composer.json to its original content.

@Akairis
Copy link

Akairis commented Dec 13, 2018

I have the same problem. I can't install this bundle. I use php7.1 Symfony 4.2

Problem 1

- Conclusion: don't install hwi/oauth-bundle 0.6.x-dev
- Conclusion: don't install hwi/oauth-bundle 0.6.3
- Conclusion: don't install hwi/oauth-bundle 0.6.2
- Conclusion: don't install hwi/oauth-bundle 0.6.1
- Conclusion: remove php-http/httplug v2.0.0
- Installation request for hwi/oauth-bundle ^0.6.0@dev -> satisfiable by hwi/oauth-bundle[0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.x-dev].
- Conclusion: don't install php-http/httplug v2.0.0
- hwi/oauth-bundle 0.6.0 requires php-http/httplug ^1.0 -> satisfiable by php-http/httplug[v1.0.0, v1.0.0-RC1, v1.0.0-alpha, v1.0.0-alpha2, v1.0.0-alpha3, v1.0.0-beta, v1.1.0].
- Can only install one of: php-http/httplug[v1.0.0, v2.0.0].
- Can only install one of: php-http/httplug[v1.0.0-RC1, v2.0.0].
- Can only install one of: php-http/httplug[v1.0.0-alpha, v2.0.0].
- Can only install one of: php-http/httplug[v1.0.0-alpha2, v2.0.0].
- Can only install one of: php-http/httplug[v1.0.0-alpha3, v2.0.0].
- Can only install one of: php-http/httplug[v1.0.0-beta, v2.0.0].
- Can only install one of: php-http/httplug[v1.1.0, v2.0.0].
- Installation request for php-http/httplug (locked at v2.0.0) -> satisfiable by php-http/httplug[v2.0.0].

@filip-polic
Copy link

filip-polic commented Dec 16, 2018

I have the same problem with Symfony 3.4. I thought it was something else in the project and then I installed a new project and tried running composer require hwi/oauth-bundle php-http/guzzle6-adapter php-http/httplug-bundle but came up with the same result as @voltel .

When I run composer install in my real project I get this:

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

Problem 1
    - Conclusion: remove hwi/oauth-bundle 0.6.3
    - Installation request for hwi/oauth-bundle 0.6.3 -> satisfiable by hwi/oauth-bundle[0.6.3].
    - Conclusion: remove symfony/symfony v3.4.17
    - hwi/oauth-bundle 0.6.3 requires symfony/templating ^2.8|^3.0|^4.0 -> satisfiable by symfony/templating[v4.1.6].
    - don't install symfony/symfony v3.4.17|remove symfony/templating v4.1.6
    - don't install symfony/templating v4.1.6|don't install symfony/symfony v3.4.17
    - Installation request for symfony/symfony v3.4.17 -> satisfiable by symfony/symfony[v3.4.17].

However, if I run composer update I get a larger amount of problems. Even though neither one explicitly mentions hwio/auth-bundle as the culprit, I can assume it has something to do with it.

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

  Problem 1
    - Conclusion: don't install symfony/symfony v3.4.20
    - Conclusion: don't install symfony/symfony v3.4.19
    - Conclusion: don't install symfony/symfony v3.4.18
    - Conclusion: remove symfony/symfony v3.4.17
    - Conclusion: don't install symfony/symfony v3.4.17
    - Conclusion: don't install symfony/symfony v3.4.16
    - Conclusion: don't install symfony/symfony v3.4.15
    - Conclusion: don't install symfony/symfony v3.4.14
    - Conclusion: don't install symfony/symfony v3.4.13
    - Conclusion: don't install symfony/symfony v3.4.12
    - Conclusion: don't install symfony/symfony v3.4.11
    - Conclusion: don't install symfony/symfony v3.4.10
    - Conclusion: don't install symfony/symfony v3.4.9
    - Conclusion: don't install symfony/symfony v3.4.8
    - Conclusion: don't install symfony/symfony v3.4.7
    - Conclusion: don't install symfony/symfony v3.4.6
    - Conclusion: don't install symfony/symfony v3.4.5
    - Conclusion: don't install symfony/symfony v3.4.4
    - Conclusion: don't install symfony/symfony v3.4.3
    - Conclusion: don't install symfony/symfony v3.4.2
    - Conclusion: don't install symfony/symfony v3.4.1
    - don't install symfony/templating v4.0.0|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.0.1|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.0.10|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.0.11|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.0.12|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.0.13|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.0.14|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.0.15|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.0.2|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.0.3|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.0.4|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.0.5|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.0.6|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.0.7|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.0.8|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.0.9|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.1.0|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.1.1|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.1.2|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.1.3|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.1.4|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.1.5|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.1.6|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.1.7|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.1.8|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.1.9|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.2.0|don't install symfony/symfony v3.4.0
    - don't install symfony/templating v4.2.1|don't install symfony/symfony v3.4.0
    - don't install symfony/symfony v3.4.0|remove symfony/templating v4.1.6
    - Installation request for symfony/symfony 3.4.* -> satisfiable by symfony/symfony[v3.4.0, v3.4.1, v3.4.10, v3.4.11, v3.4.12, v3.4.13, v3.4.14, v3.4.15, v3.4.16, v3.4.17, v3.4.18, v3.4.19, v3.4.2, v3.4.20, v3.4.3, v3.4.4, v3.4.5, v3.4.6, v3.4.7, v3.4.8, v3.4.9].
    - Installation request for symfony/templating ^4.0 -> satisfiable by symfony/templating[v4.0.0, v4.0.1, v4.0.10, v4.0.11, v4.0.12, v4.0.13, v4.0.14, v4.0.15, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9, v4.1.0, v4.1.1, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9, v4.2.0, v4.2.1].

@Jean85
Copy link
Contributor

Jean85 commented Dec 18, 2018

This would be solved by addressing #1444

@Shockwave-peter
Copy link

Executing this will probably solve the issue. At least it solved it for me :)

composer require php-http/guzzle6-adapter:^1.1
composer require php-http/httplug-bundle
composer require hwi/oauth-bundle

@voltel
Copy link
Author

voltel commented Dec 24, 2018

Executing this will probably solve the issue. At least it solved it for me :)

composer require php-http/guzzle6-adapter:^1.1
composer require php-http/httplug-bundle
composer require hwi/oauth-bundle

First package installed OK.
The second had errors. Here a copied the dump:

D:\WebSites\ctx>composer require php-http/httplug-bundle
Using version ^1.13 for php-http/httplug-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)

Prefetching 9 packages

  • Downloading (100%)

Package operations: 9 installs, 0 updates, 0 removals

  • Installing php-http/message-factory (v1.0.2): Loading from cache
  • Installing clue/stream-filter (v1.4.0): Loading from cache
  • Installing php-http/message (1.7.2): Loading from cache
  • Installing php-http/client-common (1.8.2): Loading from cache
  • Installing php-http/stopwatch-plugin (1.1.0): Loading from cache
  • Installing php-http/logger-plugin (v1.0.0): Loading from cache
  • Installing php-http/discovery (1.4.0): Loading from cache
  • Installing php-http/cache-plugin (v1.5.0): Loading from cache
  • Installing php-http/httplug-bundle (1.13.1): Loading from cache
    Package symfony/lts is abandoned, you should avoid using it. Use symfony/flex instead.
    Writing lock file
    Generating autoload files
    ocramius/package-versions: Generating version class...
    ocramius/package-versions: ...done generating version class
    Symfony operations: 1 recipe (1e6ce2388c49675ab840d01642e6723f)
  • Configuring php-http/httplug-bundle (>=1.6): From github.com/symfony/recipes:master
    Executing script cache:clear [KO]
    [KO]
    Script cache:clear returned with error code 255
    !!
    !! Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Too few arguments to function Http\Adapter\Guzzle6\Client::buildClient(), 0 passed in
    D:\WebSites\ctx\vendor\php-http\guzzle6-adapter\src\Client.php on line 31 and exactly 1 expected in D:\WebSites\ctx\vendor\php-http\guzzle6-adapter\src\Client.php:76

!! Stack trace:
!! #0 D:\WebSites\ctx\vendor\php-http\guzzle6-adapter\src\Client.php(31): Http\Adapter\Guzzle6\Client::buildClient()
!! #1 D:\WebSites\ctx\vendor\php-http\discovery\src\ClassDiscovery.php(196): Http\Adapter\Guzzle6\Client->__construct()
!! #2 D:\WebSites\ctx\vendor\php-http\discovery\src\HttpClientDiscovery.php(34): Http\Discovery\ClassDiscovery::instantiateClass('Http\Adapter\Gu...')
!! #3 D:\WebSites\ctx\var\cache\dev\ContainerYdggd5b\srcDevDebugProjectContainer.php(1145): Http\Discovery\HttpClientDiscovery::find()
!! #4 D:\WebSites\ctx\var\cache\dev\ContainerYdggd5b\srcDevDebugProjectContainer.php(626): ContainerYdggd5b\srcDevDebugProjectContainer->getHttplug_StrategyService()

!! #5 D:\WebSites\ctx\ in D:\WebSites\ctx\vendor\php-http\guzzle6-adapter\src\Client.php on line 76
!! PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Too few arguments to function Http\Adapter\Guzzle6\Client::buildClient(), 0 pass
ed in D:\WebSites\ctx\vendor\php-http\guzzle6-adapter\src\Client.php on line 31 and exactly 1 expected in D:\WebSites\ctx\vendor\php-http\guzzle6-adapter\src\Client.p
hp:76
!! Stack trace:
!! #0 D:\WebSites\ctx\vendor\php-http\guzzle6-adapter\src\Client.php(31): Http\Adapter\Guzzle6\Client::buildClient()
!! #1 D:\WebSites\ctx\vendor\php-http\discovery\src\ClassDiscovery.php(196): Http\Adapter\Guzzle6\Client->__construct()
!! #2 D:\WebSites\ctx\vendor\php-http\discovery\src\HttpClientDiscovery.php(34): Http\Discovery\ClassDiscovery::instantiateClass('Http\Adapter\Gu...')
!! #3 D:\WebSites\ctx\var\cache\dev\ContainerYdggd5b\srcDevDebugProjectContainer.php(1145): Http\Discovery\HttpClientDiscovery::find()
!! #4 D:\WebSites\ctx\var\cache\dev\ContainerYdggd5b\srcDevDebugProjectContainer.php(626): ContainerYdggd5b\srcDevDebugProjectContainer->getHttplug_StrategyService()

!! #5 D:\WebSites\ctx\ in D:\WebSites\ctx\vendor\php-http\guzzle6-adapter\src\Client.php on line 76
!!
Script @auto-scripts was called via post-update-cmd

@alex8444
Copy link

same error as voltel here, is there any workaround?

@filip-polic
Copy link

filip-polic commented Dec 28, 2018

I managed to solve it by modifying my composer.json file like this:

"hwi/oauth-bundle": "^0.6.3",
"php-http/guzzle6-adapter": "~1.1.1",
"php-http/httplug-bundle": "~1.13"

@Liptowin
Copy link

thanks filip-polic, it's work.

@jakobeissler
Copy link

Thar worked indeed.

@MaximePinto
Copy link

for me

Problem 1
    - php-http/guzzle6-adapter v2.0.0 requires php-http/httplug ^2.0 -> satisfiable by php-http/httplug[v2.0.0].
    - php-http/guzzle6-adapter v2.0.1 requires php-http/httplug ^2.0 -> satisfiable by php-http/httplug[v2.0.0].
    - Conclusion: don't install php-http/httplug v2.0.0
    - Installation request for php-http/guzzle6-adapter ^2.0 -> satisfiable by php-http/guzzle6-adapter[v2.0.0, v2.0.1].

@spolischook
Copy link
Contributor

@MaximePinto use this answer #1457 (comment)

@ruudk
Copy link
Contributor

ruudk commented Feb 20, 2019

Created a PR to support HTTPlug 2.0 #1474

@ajax13
Copy link

ajax13 commented Mar 8, 2019

I managed to solve it by modifying my composer.json file like this:

"hwi/oauth-bundle": "^0.6.3",
"php-http/guzzle6-adapter": "~1.1.1",
"php-http/httplug-bundle": "~1.13"

I used this solution instead:

composer require hwi/oauth-bundle php-http/guzzle6-adapter:1.1.1 php-http/httplug-bundle

@aquibbaig
Copy link

I managed to solve it by modifying my composer.json file like this:

"hwi/oauth-bundle": "^0.6.3",
"php-http/guzzle6-adapter": "~1.1.1",
"php-http/httplug-bundle": "~1.13"

I used this solution instead:

composer require hwi/oauth-bundle php-http/guzzle6-adapter:1.1.1 php-http/httplug-bundle

Thanks!

@MansouriHabiba
Copy link

MansouriHabiba commented May 20, 2019

I managed to solve it by modifying my composer.json file like this:

"hwi/oauth-bundle": "^0.6.3",
"php-http/guzzle6-adapter": "~1.1.1",
"php-http/httplug-bundle": "~1.13"

I used this solution instead:
composer require hwi/oauth-bundle php-http/guzzle6-adapter:1.1.1 php-http/httplug-bundle

Thanks!

Thanks, it works 👍 .

@jbalius
Copy link

jbalius commented Aug 1, 2019

I needed to update php-http/guzzle6-adapter to v 2.0, so

composer require php-http/guzzle6-adapter:^2.0 --update-with-dependencies

but it failed with

Problem 1
    - Installation request for php-http/client-common (locked at 1.9.1) -> satisfiable by php-http/client-common[1.9.1].
    - php-http/guzzle6-adapter v2.0.0 requires php-http/httplug ^2.0 -> satisfiable by php-http/httplug[v2.0.0].
    - php-http/guzzle6-adapter v2.0.1 requires php-http/httplug ^2.0 -> satisfiable by php-http/httplug[v2.0.0].
    - Conclusion: don't install php-http/httplug v2.0.0
    - Installation request for php-http/guzzle6-adapter ^2.0 -> satisfiable by php-http/guzzle6-adapter[v2.0.0, v2.0.1].

As all of my other dependencies are compatible with either ^1.0 or ^2.0 of
php-http/guzzle6-adapter php-http/curl-client php-http/client-common php-http/httplug

I did:

composer require php-http/guzzle6-adapter:^2.0 php-http/curl-client:^2.0 php-http/client-common:^2.0 php-http/httplug:^2.0 --update-with-dependencies

and then this to remove these dependencies from being direct dependencies
composer remove php-http/curl-client php-http/client-common php-http/httplug --update-with-dependencies

looks to be fine

@Raghav9888
Copy link

composer require symfony/framework-bundle
Info from https://repo.packagist.org: #StandWithUkraine
Using version ^6.1 for symfony/framework-bundle
./composer.json has been updated
Running composer update symfony/framework-bundle
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- symfony/framework-bundle[v6.1.0, ..., v6.1.6] require symfony/config ^6.1 -> found symfony/config[v6.1.0, v6.1.3] but the package is fixed to v6.0.11 (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 symfony/framework-bundle ^6.1 -> satisfiable by symfony/framework-bundle[v6.1.0, ..., v6.1.6].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

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

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

Successfully merging a pull request may close this issue.