Giter Club home page Giter Club logo

Comments (4)

Fabian-Hofer-Mastertent avatar Fabian-Hofer-Mastertent commented on September 9, 2024 1

Thank you @pierredup
You pointed me in the right direction.
I endet up with the following commands:

composer require payum/payum-bundle league/uri php-http/guzzle7-adapter --no-update composer update --with-all-dependencies

Composer downgraded league/uri to 6.8.0 and everything works fine

from payum.

pierredup avatar pierredup commented on September 9, 2024

@Fabian-Hofer-Mastertent Those constraints should resolve fine. Since ^6.4 means version >=6.4.0 && < 7.0.0, and symfony/html-sanitizer requires ^6.5 (which means any version greater than or equal to 6.5.0, and less than 7.0.0), it means you should be able to at least install any of version 6.5 to 6.8. Can you share the error from composer where it fails to install, then I can have a look

from payum.

Fabian-Hofer-Mastertent avatar Fabian-Hofer-Mastertent commented on September 9, 2024

Thank you for checking my issue @pierredup
Maybe I'm getting composer wrong but ^6.4 means to me that composer can use every version inside the 6.4 range (6.4.1, 6.4.2...) but not above. smyonfy/html-snaitizer requires every version inside the 6.5 range and inside the 7.0 range.
To make Payum allow the 7.0 range, there should be ^6.4|^7.0 as version range in the payum composer.json.

this is the error I'm getting:

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

Problem 1
- payum/core[1.7.2, ..., 1.7.3] require league/uri ^6.4 -> found league/uri[6.4.0, ..., 6.8.0] but the package is fixed to 7.3.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.
- payum/payum-bundle[2.5.0, ..., 2.5.2] require payum/core ^1.7.2 -> satisfiable by payum/core[1.7.2, 1.7.3].
- Root composer.json requires payum/payum-bundle ^2.5 -> satisfiable by payum/payum-bundle[2.5.0, 2.5.1, 2.5.2].`

from payum.

pierredup avatar pierredup commented on September 9, 2024

^6.4 means to me that composer can use every version inside the 6.4 range (6.4.1, 6.4.2...) but not above

^6.4 means anything from 6.4.0 upwards, but less than 7.0.0. So that would include 6.5 as well.

payum/core[1.7.2, ..., 1.7.3] require league/uri ^6.4 -> found league/uri[6.4.0, ..., 6.8.0] but the package is fixed to 7.3.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.

This error means that you already have version 7.3.0 installed, but this is not compatible with payum because it requires versions below 7.0.
The fix is to include league/uri as part of the update (it will then be downgraded to the latest 6.x version).

composer require paym/core --no-update
composer update payum/core -W

The -W flag means to include all dependencies in the update. You can also explicitly list the package as part of the update command

composer update payum/core league/uri -W

from payum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.