gateio / gateapi-php

29 stars 34 forks source link

require guzzlehttp/guzzle ^6.2, but it conflicts with your root composer.json require (^7.*) #19

Open destinybravos opened 1 year ago

destinybravos commented 1 year ago

I am trying to install the package but it keeps conflicting with my guzzlehttp/guzzle package which must be version ^7.* due to dependencies from other packages that rely on the guzzle package.

How do I resolve this?

This is the full error below;

Problem 1
    - Root composer.json requires gateio/gateapi-php ^5.40 -> satisfiable by gateio/gateapi-php[5.40.0].
    - gateio/gateapi-php 5.40.0 requires guzzlehttp/guzzle ^6.2 -> found guzzlehttp/guzzle[6.2.0, ..., 6.5.x-dev] but it conflicts with your root composer.json require (^7.2).

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 gateio/gateapi-php:*" to figure out if any version is installable, or "composer require gateio/gateapi-php:^2.1" if you know which you need.

When I ran the command with the -W flag, the result below is what I got;

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

  Problem 1
    - Root composer.json requires gateio/gateapi-php ^5.40 -> satisfiable by gateio/gateapi-php[5.40.0].
    - gateio/gateapi-php 5.40.0 requires guzzlehttp/guzzle ^6.2 -> found guzzlehttp/guzzle[6.2.0, ..., 6.5.x-dev] but it conflicts with your root composer.json require (^7.2).

You can also try re-running composer require with an explicit version constraint, e.g. "composer require gateio/gateapi-php:*" to figure out if any version is installable, or "composer require gateio/gateapi-php:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Wapweb commented 5 months ago

@destinybravos create a fork, upgrade guzzle version, commit, then in your project composer "repositories": [ { "type": "vcs", "url": "https://github.com/Wapweb/gateapi-php" } ], ... "gateio/gateapi-php": "dev-develop",