arendjantetteroo / guzzle-toggl

A Toggl API client based on guzzle
MIT License
88 stars 42 forks source link

Conflict with one of my other dependencies, but I can't figure out which #27

Closed Patabugen closed 5 years ago

Patabugen commented 5 years ago

I'm having some trouble installing this into my Laravel project. I can install it OK in a new composer project so it's a conflict with something I already have installed.

I'm struggling to understand the output - however.

$ composer require ajt/guzzle-toggl
Using version ^1.0 for ajt/guzzle-toggl
./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
    - Conclusion: don't install gimler/guzzle-description-loader v0.0.4|remove symfony/routing v4.3.0|install symfony/config 3.0.x-dev|install symfony/config 3.1.x-dev|install symfony/config 3.2.x-dev|install symfony/config 3.3.x-dev|install symfony/config v3.0.0|install symfony/config v3.0.0-BETA1|install symfony/config v3.0.1|install symfony/config v3.0.2|install symfony/config v3.0.3|install symfony/config v3.0.4|install symfony/config v3.0.5|install symfony/config v3.0.6|install symfony/config v3.0.7|install symfony/config v3.0.8|install symfony/config v3.0.9|install symfony/config v3.1.0|install symfony/config v3.1.0-BETA1|install symfony/config v3.1.0-RC1|install symfony/config v3.1.1|install symfony/config v3.1.10|install symfony/config v3.1.2|install symfony/config v3.1.3|install symfony/config v3.1.4|install symfony/config v3.1.5|install symfony/config v3.1.6|install symfony/config v3.1.7|install symfony/config v3.1.8|install symfony/config v3.1.9|install symfony/config v3.2.0|install symfony/config v3.2.0-BETA1|install symfony/config v3.2.0-RC1|install symfony/config v3.2.0-RC2|install symfony/config v3.2.1|install symfony/config v3.2.10|install symfony/config v3.2.11|install symfony/config v3.2.12|install 
symfony/config v3.2.13|install symfony/config v3.2.14|install symfony/config v3.2.2|install symfony/config v3.2.3|install symfony/config v3.2.4|install symfony/config v3.2.5|install symfony/config v3.2.6|install symfony/config v3.2.7|install symfony/config v3.2.8|install symfony/config v3.2.9|install symfony/config v3.3.0|install symfony/config v3.3.0-BETA1|install symfony/config v3.3.0-RC1|install symfony/config v3.3.1|install symfony/config v3.3.10|install symfony/config v3.3.11|install symfony/config v3.3.12|install symfony/config v3.3.13|install symfony/config v3.3.14|install symfony/config v3.3.15|install 
symfony/config v3.3.16|install symfony/config v3.3.17|install symfony/config v3.3.18|install symfony/config v3.3.2|install symfony/config v3.3.3|install symfony/config v3.3.4|install symfony/config v3.3.5|install symfony/config v3.3.6|install symfony/config v3.3.7|install symfony/config v3.3.8|install symfony/config v3.3.9
    - Conclusion: don't install gimler/guzzle-description-loader v0.0.4|don't install symfony/routing v4.3.0|install symfony/config 3.0.x-dev|install symfony/config 3.1.x-dev|install symfony/config 3.2.x-dev|install symfony/config 3.3.x-dev|install symfony/config v3.0.0|install symfony/config v3.0.0-BETA1|install symfony/config v3.0.1|install symfony/config v3.0.2|install symfony/config v3.0.3|install symfony/config v3.0.4|install symfony/config v3.0.5|install symfony/config v3.0.6|install symfony/config v3.0.7|install symfony/config v3.0.8|install symfony/config v3.0.9|install symfony/config v3.1.0|install symfony/config v3.1.0-BETA1|install symfony/config v3.1.0-RC1|install symfony/config v3.1.1|install symfony/config v3.1.10|install symfony/config v3.1.2|install symfony/config v3.1.3|install symfony/config v3.1.4|install symfony/config v3.1.5|install symfony/config v3.1.6|install symfony/config v3.1.7|install symfony/config v3.1.8|install symfony/config v3.1.9|install symfony/config v3.2.0|install symfony/config v3.2.0-BETA1|install symfony/config v3.2.0-RC1|install symfony/config v3.2.0-RC2|install symfony/config v3.2.1|install symfony/config v3.2.10|install symfony/config v3.2.11|install symfony/config v3.2.12|install symfony/config v3.2.13|install symfony/config v3.2.14|install symfony/config v3.2.2|install symfony/config v3.2.3|install symfony/config v3.2.4|install symfony/config v3.2.5|install symfony/config v3.2.6|install symfony/config v3.2.7|install symfony/config v3.2.8|install symfony/config v3.2.9|install symfony/config v3.3.0|install symfony/config v3.3.0-BETA1|install symfony/config v3.3.0-RC1|install symfony/config v3.3.1|install symfony/config v3.3.10|install symfony/config v3.3.11|install symfony/config v3.3.12|install symfony/config v3.3.13|install symfony/config v3.3.14|install symfony/config v3.3.15|install symfony/config v3.3.16|install symfony/config v3.3.17|install symfony/config v3.3.18|install symfony/config v3.3.2|install symfony/config v3.3.3|install symfony/config v3.3.4|install symfony/config v3.3.5|install symfony/config v3.3.6|install symfony/config v3.3.7|install symfony/config v3.3.8|install symfony/config v3.3.9
    - Installation request for symfony/http-kernel (locked at v4.3.0) -> satisfiable by symfony/http-kernel[v4.3.0].
    - Conclusion: don't install gimler/guzzle-description-loader v0.0.4|remove symfony/routing v4.3.0|install symfony/config 3.0.x-dev|install symfony/config 3.1.x-dev|install symfony/config 3.2.x-dev|install symfony/config 3.3.x-dev|install symfony/config v3.0.0|install symfony/config v3.0.0-BETA1|install symfony/config v3.0.1|install symfony/config v3.0.2|install symfony/config v3.0.3|install symfony/config v3.0.4|install symfony/config v3.0.5|install symfony/config v3.0.6|install symfony/config v3.0.7|install symfony/config v3.0.8|install symfony/config v3.0.9|install symfony/config v3.1.0|install symfony/config v3.1.0-BETA1|install symfony/config v3.1.0-RC1|install symfony/config v3.1.1|install symfony/config v3.1.10|install symfony/config v3.1.2|install symfony/config v3.1.3|install symfony/config v3.1.4|install symfony/config v3.1.5|install symfony/config v3.1.6|install symfony/config v3.1.7|install symfony/config v3.1.8|install symfony/config v3.1.9|install symfony/config v3.2.0|install symfony/config v3.2.0-BETA1|install symfony/config v3.2.0-RC1|install symfony/config v3.2.0-RC2|install symfony/config v3.2.1|install symfony/config v3.2.10|install symfony/config v3.2.11|install symfony/config v3.2.12|install 
symfony/config v3.2.13|install symfony/config v3.2.14|install symfony/config v3.2.2|install symfony/config v3.2.3|install symfony/config v3.2.4|install symfony/config v3.2.5|install symfony/config v3.2.6|install symfony/config v3.2.7|install symfony/config v3.2.8|install symfony/config v3.2.9|install symfony/config v3.3.0|install symfony/config v3.3.0-BETA1|install symfony/config v3.3.0-RC1|install symfony/config v3.3.1|install symfony/config v3.3.10|install symfony/config v3.3.11|install symfony/config v3.3.12|install symfony/config v3.3.13|install symfony/config v3.3.14|install symfony/config v3.3.15|install 
symfony/config v3.3.16|install symfony/config v3.3.17|install symfony/config v3.3.18|install symfony/config v3.3.2|install symfony/config v3.3.3|install symfony/config v3.3.4|install symfony/config v3.3.5|install symfony/config v3.3.6|install symfony/config v3.3.7|install symfony/config v3.3.8|install symfony/config v3.3.9
    - Conclusion: don't install gimler/guzzle-description-loader v0.0.4|don't install symfony/routing v4.3.0|install symfony/config 3.0.x-dev|install symfony/config 3.1.x-dev|install symfony/config 3.2.x-dev|install symfony/config 3.3.x-dev|install symfony/config v3.0.0|install symfony/config v3.0.0-BETA1|install symfony/config v3.0.1|install symfony/config v3.0.2|install symfony/config v3.0.3|install symfony/config v3.0.4|install symfony/config v3.0.5|install symfony/config v3.0.6|install symfony/config v3.0.7|install symfony/config v3.0.8|install symfony/config v3.0.9|install symfony/config v3.1.0|install symfony/config v3.1.0-BETA1|install symfony/config v3.1.0-RC1|install symfony/config v3.1.1|install symfony/config v3.1.10|install symfony/config v3.1.2|install symfony/config v3.1.3|install symfony/config v3.1.4|install symfony/config v3.1.5|install symfony/config v3.1.6|install symfony/config v3.1.7|install symfony/config v3.1.8|install symfony/config v3.1.9|install symfony/config v3.2.0|install symfony/config v3.2.0-BETA1|install symfony/config v3.2.0-RC1|install symfony/config v3.2.0-RC2|install symfony/config v3.2.1|install symfony/config v3.2.10|install symfony/config v3.2.11|install symfony/config v3.2.12|install symfony/config v3.2.13|install symfony/config v3.2.14|install symfony/config v3.2.2|install symfony/config v3.2.3|install symfony/config v3.2.4|install symfony/config v3.2.5|install symfony/config v3.2.6|install symfony/config v3.2.7|install symfony/config v3.2.8|install symfony/config v3.2.9|install symfony/config v3.3.0|install symfony/config v3.3.0-BETA1|install symfony/config v3.3.0-RC1|install symfony/config v3.3.1|install symfony/config v3.3.10|install symfony/config v3.3.11|install symfony/config v3.3.12|install symfony/config v3.3.13|install symfony/config v3.3.14|install symfony/config v3.3.15|install symfony/config v3.3.16|install symfony/config v3.3.17|install symfony/config v3.3.18|install symfony/config v3.3.2|install symfony/config v3.3.3|install symfony/config v3.3.4|install symfony/config v3.3.5|install symfony/config v3.3.6|install symfony/config v3.3.7|install symfony/config v3.3.8|install symfony/config v3.3.9
    - Installation request for symfony/routing (locked at v4.3.0) -> satisfiable by symfony/routing[v4.3.0].
    - ajt/guzzle-toggl 1.0.x-dev requires gimler/guzzle-description-loader ^0.0.4 -> satisfiable by gimler/guzzle-description-loader[v0.0.4].
    - ajt/guzzle-toggl v1.0 requires gimler/guzzle-description-loader ^0.0.4 -> satisfiable by gimler/guzzle-description-loader[v0.0.4].
    - ajt/guzzle-toggl v1.0.1 requires gimler/guzzle-description-loader ^0.0.4 -> satisfiable by gimler/guzzle-description-loader[v0.0.4].
    - ajt/guzzle-toggl v1.0.2 requires gimler/guzzle-description-loader ^0.0.4 -> satisfiable by gimler/guzzle-description-loader[v0.0.4].
    - Conclusion: don't install gimler/guzzle-description-loader v0.0.4
    - Installation request for ajt/guzzle-toggl ^1.0 -> satisfiable by ajt/guzzle-toggl[1.0.x-dev, v1.0, v1.0.1, v1.0.2].

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

This is my composer.json:

{
    "name": "patabugen/db",
    "description": "My Database Stuff",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": "^7.1.3",
        "backpack/backupmanager": "^1.4",
        "backpack/crud": "^3.4",
        "backpack/logmanager": "^2.3",
        "backpack/permissionmanager": "^3.12",
        "backpack/settings": "^2.1",
        "barryvdh/laravel-elfinder": "^0.4.1",
        "coconutcraig/laravel-postmark": "^2.3",
        "codeception/codeception": "^2.4",
        "fideloper/proxy": "^4.0",
        "guzzlehttp/guzzle": "^6.3",
        "khill/lavacharts": "^3.1",
        "laravel/framework": "5.7.*",
        "laravel/tinker": "^1.0",
        "martins-74/artisan-gui": "dev-master",
        "mha/stats": "dev-master",
        "symfony/process": "^4.0",
        "vipnytt/sitemapparser": "^1.0"
    },
    "require-dev": {
        "backpack/generators": "^1.2",
        "barryvdh/laravel-ide-helper": "^2.5",
        "doctrine/dbal": "^2.8",
        "filp/whoops": "^2.0",
        "fzaninotto/faker": "^1.4",
        "laracasts/generators": "dev-master",
        "laravel/homestead": "^7.3",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^2.0",
        "phpunit/phpunit": "^7.0"
    },
    "autoload": {
        "classmap": [
            "database/seeds",
            "database/factories"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "scripts": {
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate"
        ],
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover"
        ],
        "post-install-cmd": [
            "PhantomInstaller\\Installer::installPhantomJS"
        ],
        "post-update-cmd": [
            "PhantomInstaller\\Installer::installPhantomJS"
        ]
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "optimize-autoloader": true,
        "bin-dir": "vendor/bin"
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "repositories": {
        "mha/stats": {
            "type": "path",
            "url" : "packages/mha/stats",
            "options": {
                "symlink": true
            }
        },
        "hooks": {
            "type": "composer",
            "url": "https://larapack.io"
        }
    }
}

Any suggestions?

arendjantetteroo commented 5 years ago

This package depends on gimler/guzzle-description-loader. 0.0.4 which is latest depends on 2 symfony v3 packages. You have symfony 4 deps due to laravel.

Try a ticket or PR on the gimler repo for its composer.json to allow both 3 and 4 for the symfony packages.

arendjantetteroo commented 5 years ago

Looks like there is already an issue open for a while now : https://github.com/gimler/guzzle-description-loader/issues/4 I don't think you can expect this to be fixed soon on gimlers end.

However, there are also a couple forks of this library, where one specificaly mentions symfony 4 support. You might try this fork: https://github.com/bangpound/guzzle-description-loader Add it to your composer repositories and it probably will work.

@Patabugen let me know if this works for you?

Patabugen commented 5 years ago

Thanks @arendjantetteroo!

I've ended up using a different Toggle library which is suiting my needs for now: https://github.com/Morning-Train/toggl-api