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

Unable to install providers #1163

Closed
mrelliot69 opened this issue Sep 29, 2022 · 4 comments
Closed

Unable to install providers #1163

mrelliot69 opened this issue Sep 29, 2022 · 4 comments
Labels

Comments

@mrelliot69
Copy link

Heyy, im trying to install the providers like
composer require geocoder-php/nominatim-provider
but i allways get an error and i'm unable to procced

Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-sup
port/
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - geocoder-php/common-http 4.5.0 requires php-http/client-implementation ^1.0 -> no matching package found.
    - geocoder-php/common-http 4.4.0 requires php-http/client-implementation ^1.0 -> no matching package found.
    - geocoder-php/common-http 4.3.0 requires php-http/client-implementation ^1.0 -> no matching package found.
    - geocoder-php/common-http 4.2.0 requires php-http/client-implementation ^1.0 -> no matching package found.
    - geocoder-php/common-http 4.1.0 requires php-http/client-implementation ^1.0 -> no matching package found.
    - geocoder-php/nominatim-provider 5.6.0 requires geocoder-php/common-http ^4.1 -> satisfiable by geocoder-php/common-http[4.1.0, 4.2.0, 4.3.0, 4.4.0, 4.5.0].
    - Installation request for geocoder-php/nominatim-provider ^5.6 -> satisfiable by geocoder-php/nominatim-provider[5.6.0].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

anyone know how i can fix this?

@jbelien
Copy link
Member

jbelien commented Sep 30, 2022

Hello @mrelliot69 ,

According to the following warning, it seems that you're still using Composer version 1.

Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-sup
port/

Could you try to upgrade to Composer version 2 and give it another try?

composer self-update --2

@jbelien
Copy link
Member

jbelien commented Sep 30, 2022

Also, you seem to run the following command:

composer require geocoder-php/nominatim-provider

But Composer indicates that you miss a php-http/client-implementation.

You indeed need to specify which library you want to use (Guzzle, cUrl, ...)!

Check the main documentation here: https://github.com/geocoder-php/Geocoder#summary-just-give-me-the-command

@mrelliot69
Copy link
Author

Thanks @jbelien , another question:
is it possible to get the address id also when the provider list the results ..

For example arcgis have an id to identify that address, its possible to get that info also on the result array?

@jbelien
Copy link
Member

jbelien commented Oct 1, 2022

is it possible to get the address id also when the provider list the results ..

For example arcgis have an id to identify that address, its possible to get that info also on the result array?

See #1164

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

No branches or pull requests

2 participants