Ne-Lexa / google-play-scraper

PHP scraper to get data from Google Play
MIT License
78 stars 38 forks source link

Error on add lib to project #16

Closed Porshe closed 2 years ago

Porshe commented 2 years ago

Error on add lib to project


  Problem 1
    - nelexa/http-client-simple-cache[1.0.1, ..., 1.1.1] require guzzlehttp/guzzle ^6.5 -> found guzzlehttp/guzzle[6.5.0, ..., 6.5.x-dev] but it conflicts with your root composer.json require (^7.0.1).
    - nelexa/google-play-scraper 0.2.1 requires nelexa/http-client-simple-cache ^1.0.1 -> satisfiable by nelexa/http-client-simple-cache[1.0.1, 1.1, 1.1.1].
    - Root composer.json requires nelexa/google-play-scraper ^0.2.1 -> satisfiable by nelexa/google-play-scraper[0.2.1].

Please, update versions in your required "nelexa" libs.

debadaracco commented 2 years ago

+1

Ne-Lexa commented 2 years ago

You can't just go to guzzle 7 by changing just the version. The code became incompatible because of strict typing. We need to rework it, keeping the caching. Maybe switch to Symfony HTTP-Client. I will do this when I have some free time. PRs are welcome.

debadaracco commented 2 years ago

Error on add lib to project


  Problem 1
    - nelexa/http-client-simple-cache[1.0.1, ..., 1.1.1] require guzzlehttp/guzzle ^6.5 -> found guzzlehttp/guzzle[6.5.0, ..., 6.5.x-dev] but it conflicts with your root composer.json require (^7.0.1).
    - nelexa/google-play-scraper 0.2.1 requires nelexa/http-client-simple-cache ^1.0.1 -> satisfiable by nelexa/http-client-simple-cache[1.0.1, 1.1, 1.1.1].
    - Root composer.json requires nelexa/google-play-scraper ^0.2.1 -> satisfiable by nelexa/google-play-scraper[0.2.1].

Please, update versions in your required "nelexa" libs.

you can test the following solution. Update your composer file with this:

"guzzlehttp/guzzle": "^6.5|^7.0.1",

Ne-Lexa commented 2 years ago

The problem has been fixed. Update the library.