botman / studio

Ready to use BotMan + Laravel framework
331 stars 90 forks source link

Not Being Able to Install Slack Drivers #43

Closed jorgemudry closed 6 years ago

jorgemudry commented 6 years ago

I've just created a clean install of botman studio using the botman installer and I've got this error when I tried to install the Slack driver:

❯ artisan botman:install-driver slack
Installing driver "Slack"
Using version ^2.1 for botman/driver-slack
./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
    - botman/driver-slack 2.1.1 requires mpociot/slack-client ~1.0 -> satisfiable by mpociot/slack-client[1.0] but these conflict with your requirements or minimum-stability.
    - botman/driver-slack 2.1.0 requires mpociot/slack-client ~1.0 -> satisfiable by mpociot/slack-client[1.0] but these conflict with your requirements or minimum-stability.
    - Installation request for botman/driver-slack ^2.1 -> satisfiable by botman/driver-slack[2.1.0, 2.1.1].

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

Error installing driver "Slack"

Could this be something local?

mpociot commented 6 years ago

Hi,

there was an issue that now has been fixed. Please update your composer.json dependencies, to look like this: https://github.com/botman/studio/blob/43b818f06b13addf890fd23cda121e6148fb0e09/composer.json#L13-L20

Then you can install and use the latest Slack driver version.

jorgemudry commented 6 years ago

It worked as expected!

Thanks for the fix! 👍 😄

shuramita commented 6 years ago

I'm facing with this issue when run php artisan botman:install-driver slack after fresh install by running botman new weatherbot.

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

  Problem 1
    - Installation request for react/event-loop (locked at v0.5.2) -> satisfiable by react/event-loop[v0.5.2].
    - botman/driver-slack 2.1.0 requires mpociot/slack-client ~1.0 -> satisfiable by mpociot/slack-client[1.0].
    - botman/driver-slack 2.1.1 requires mpociot/slack-client ~1.0 -> satisfiable by mpociot/slack-client[1.0].
    - botman/driver-slack 2.1.2 requires mpociot/slack-client ~1.0 -> satisfiable by mpociot/slack-client[1.0].
    - botman/driver-slack 2.1.3 requires mpociot/slack-client ~1.0 -> satisfiable by mpociot/slack-client[1.0].
    - Conclusion: don't install mpociot/slack-client 1.0
    - Installation request for botman/driver-slack ^2.1 -> satisfiable by botman/driver-slack[2.1.0, 2.1.1, 2.1.2, 2.1.3].

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

Error installing driver "Slack"
Arnau3ip commented 6 years ago

I had exactly the same problem after a fresh botman install , I fixed it by installing version 1.0 manually via composer, then editing composer.json to 2.1 and calling 'composer update' . Hope this helps.

cbanbury commented 5 years ago

Just had the same issue with a fresh install. Workaround suggested by @ArnauMe fixed it for me, but this really shouldn't be closed as an issue.

Iyata commented 5 years ago

Hi, I have Slack Driver 1.0 installed. I try: composer require mpociot/slack-client 1.0

Error: Problem 1

Please help.