zendframework / ZF2Package

27 stars 17 forks source link

Unable to install ZF2 packages via composer #17

Closed piscis closed 11 years ago

piscis commented 11 years ago

I`m having a problem installing zf2 packages via composer. I´m getting the following error:

Error

itiny2:n3f alex$ composer update -v
Loading composer repositories with package information
Updating dependencies

  [RuntimeException]                                                                                                                
  Could not load package zendframework/zend-http in http://packages.zendframework.com: [ErrorException] Undefined index: reference  

Exception trace:
 () at phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:410
 Composer\Repository\ComposerRepository->createPackage() at phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:155
 Composer\Repository\ComposerRepository->loadPackage() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:344
 Composer\DependencyResolver\Pool->ensurePackageIsLoaded() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:272
 Composer\DependencyResolver\Pool->computeWhatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:226
 Composer\DependencyResolver\Pool->whatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:158
 Composer\DependencyResolver\RuleSetGenerator->addRulesForPackage() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:247
 Composer\DependencyResolver\RuleSetGenerator->addRulesForJobs() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:278
 Composer\DependencyResolver\RuleSetGenerator->getRulesFor() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php:166
 Composer\DependencyResolver\Solver->solve() at phar:///usr/local/bin/composer/src/Composer/Installer.php:392
 Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:187
 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:82
 Composer\Command\UpdateCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:240
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:193
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:109
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:106
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:82
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:39
 require() at /usr/local/bin/composer:15

  [ErrorException]            
  Undefined index: reference  

Exception trace:
 () at phar:///usr/local/bin/composer/src/Composer/Package/Loader/ArrayLoader.php:83
 Composer\Util\ErrorHandler::handle() at phar:///usr/local/bin/composer/src/Composer/Package/Loader/ArrayLoader.php:83
 Composer\Package\Loader\ArrayLoader->load() at phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:408
 Composer\Repository\ComposerRepository->createPackage() at phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:155
 Composer\Repository\ComposerRepository->loadPackage() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:344
 Composer\DependencyResolver\Pool->ensurePackageIsLoaded() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:272
 Composer\DependencyResolver\Pool->computeWhatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:226
 Composer\DependencyResolver\Pool->whatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:158
 Composer\DependencyResolver\RuleSetGenerator->addRulesForPackage() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:247
 Composer\DependencyResolver\RuleSetGenerator->addRulesForJobs() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:278
 Composer\DependencyResolver\RuleSetGenerator->getRulesFor() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php:166
 Composer\DependencyResolver\Solver->solve() at phar:///usr/local/bin/composer/src/Composer/Installer.php:392
 Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:187
 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:82
 Composer\Command\UpdateCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:240
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:193
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:109
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:106
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:82
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:39
 require() at /usr/local/bin/composer:15

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]

PHP Version

php -v
PHP 5.4.11 (cli) (built: Feb 20 2013 12:20:10) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

Composer version

itiny2:n3f alex$ composer self-update
You are using the latest composer version.
itiny2:n3f alex$ composer --version
Composer version b4c2347b2482d1e4e44dbccbabcdf1b1f5a85018
itiny2:n3f alex$ 

Composer Config

{
    "name": "symfony/framework-standard-edition",
    "description": "The \"Symfony Standard Edition\" distribution",
    "minimum-stability":"dev",
    "autoload": {
        "psr-0": { "": "src/" }
    },
    "require": {

        "php": ">=5.3.3",
        "symfony/symfony": "2.1.7",
        "doctrine/orm": ">=2.2.3,<2.4-dev",
        "doctrine/doctrine-bundle": "1.0.*",
        "doctrine/mongodb-odm-bundle": "*",
        "twig/extensions": "1.0.*@dev",
        "symfony/assetic-bundle": "2.1.*",
        "symfony/swiftmailer-bundle": "2.1.*",
        "symfony/monolog-bundle": "2.1.*",
        "sensio/distribution-bundle": "2.1.*",
        "sensio/framework-extra-bundle": "2.1.*",
        "sensio/generator-bundle": "2.1.*",
        "jms/security-extra-bundle": "1.4.*@dev",
        "jms/di-extra-bundle": "1.3.*@dev",
        "kriswallsmith/assetic": "1.1.*@dev",

        "jms/serializer": "1.0.*@dev",
        "jms/serializer-bundle": "1.0.*@dev",
        "misd/guzzle-bundle": "dev-master",
        "gregwar/captcha-bundle": "dev-master",
        "excelwebzone/recaptcha-bundle": "dev-master",
        "liip/doctrine-cache-bundle": "dev-master",
        "friendsofsymfony/user-bundle": "*",
        "friendsofsymfony/rest-bundle": "0.10.0",
        "snc/redis-bundle": "2.1.x-dev",
        "predis/predis":"0.8",
        "hwi/oauth-bundle": "dev-master",
        "zendframework/zendframework": "2.0.*",
        "zendframework/zendgdata": "2.0.*",

        "cybernox/amazon-webservices-bundle": "dev-master",

        "behat/behat": "2.4.*@stable",
        "behat/mink-extension": "*",
        "behat/mink-selenium2-driver": "*",
        "behat/symfony2-extension": "*",
        "behat/mink-browserkit-driver": "*"
    },
    "repositories": [{
        "type": "composer",
        "url": "http://packages.zendframework.com/"
    }],
    "scripts": {
        "post-install-cmd": [
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
        ],
        "post-update-cmd": [
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
        ]
    },
    "config": {
        "bin-dir": "bin"
    },
    "extra": {
        "symfony-app-dir": "app",
        "symfony-web-dir": "web"
    }
}
weierophinney commented 11 years ago

This is a composer issue; packagist has been having issues for the past 6-8 hours. Please raise an issue on the packagist or composer repositories.

On Wednesday, February 20, 2013, Alexander Pirsig wrote:

I`m having a problem installing zf2 packages via composer. I´m getting the following error:

Error

itiny2:n3f alex$ composer update -v Loading composer repositories with package information Updating dependencies

[RuntimeException] Could not load package zendframework/zend-http in http://packages.zendframework.com: [ErrorException] Undefined index: reference

Exception trace: () at phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:410 Composer\Repository\ComposerRepository->createPackage() at phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:155 Composer\Repository\ComposerRepository->loadPackage() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:344 Composer\DependencyResolver\Pool->ensurePackageIsLoaded() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:272 Composer\DependencyResolver\Pool->computeWhatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:226 Composer\DependencyResolver\Pool->whatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:158 Composer\DependencyResolver\RuleSetGenerator->addRulesForPackage() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:247 Composer\DependencyResolver\RuleSetGenerator->addRulesForJobs() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:278 Composer\DependencyResolver\RuleSetGenerator->getRulesFor() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php:166 Composer\DependencyResolver\Solver->solve() at phar:///usr/local/bin/composer/src/Composer/Installer.php:392 Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:187 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:82 Composer\Command\UpdateCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:240 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:193 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:109 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:106 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:82 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:39 require() at /usr/local/bin/composer:15

[ErrorException] Undefined index: reference

Exception trace: () at phar:///usr/local/bin/composer/src/Composer/Package/Loader/ArrayLoader.php:83 Composer\Util\ErrorHandler::handle() at phar:///usr/local/bin/composer/src/Composer/Package/Loader/ArrayLoader.php:83 Composer\Package\Loader\ArrayLoader->load() at phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:408 Composer\Repository\ComposerRepository->createPackage() at phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:155 Composer\Repository\ComposerRepository->loadPackage() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:344 Composer\DependencyResolver\Pool->ensurePackageIsLoaded() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:272 Composer\DependencyResolver\Pool->computeWhatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:226 Composer\DependencyResolver\Pool->whatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:158 Composer\DependencyResolver\RuleSetGenerator->addRulesForPackage() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:247 Composer\DependencyResolver\RuleSetGenerator->addRulesForJobs() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:278 Composer\DependencyResolver\RuleSetGenerator->getRulesFor() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php:166 Composer\DependencyResolver\Solver->solve() at phar:///usr/local/bin/composer/src/Composer/Installer.php:392 Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:187 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:82 Composer\Command\UpdateCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:240 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:193 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:109 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:106 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:82 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:39 require() at /usr/local/bin/composer:15

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]

PHP Version

php -v PHP 5.4.11 (cli) (built: Feb 20 2013 12:20:10) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

Composer version

itiny2:n3f alex$ composer self-update You are using the latest composer version. itiny2:n3f alex$ composer --version Composer version b4c2347b2482d1e4e44dbccbabcdf1b1f5a85018 itiny2:n3f alex$

Composer Config

{ "name": "symfony/framework-standard-edition", "description": "The \"Symfony Standard Edition\" distribution", "minimum-stability":"dev", "autoload": { "psr-0": { "": "src/" } }, "require": {

    "php": ">=5.3.3",
    "symfony/symfony": "2.1.7",
    "doctrine/orm": ">=2.2.3,<2.4-dev",
    "doctrine/doctrine-bundle": "1.0.*",
    "doctrine/mongodb-odm-bundle": "*",
    "twig/extensions": "1.0.*@dev",
    "symfony/assetic-bundle": "2.1.*",
    "symfony/swiftmailer-bundle": "2.1.*",
    "symfony/monolog-bundle": "2.1.*",
    "sensio/distribution-bundle": "2.1.*",
    "sensio/framework-extra-bundle": "2.1.*",
    "sensio/generator-bundle": "2.1.*",
    "jms/security-extra-bundle": "1.4.*@dev",
    "jms/di-extra-bundle": "1.3.*@dev",
    "kriswallsmith/assetic": "1.1.*@dev",

    "jms/serializer": "1.0.*@dev",
    "jms/serializer-bundle": "1.0.*@dev",
    "misd/guzzle-bundle": "dev-master",
    "gregwar/captcha-bundle": "dev-master",
    "excelwebzone/recaptcha-bundle": "dev-master",
    "liip/doctrine-cache-bundle": "dev-master",
    "friendsofsymfony/user-bundle": "*",
    "friendsofsymfony/rest-bundle": "0.10.0",
    "snc/redis-bundle": "2.1.x-dev",
    "predis/predis":"0.8",
    "hwi/oauth-bundle": "dev-master",
    "zendframework/zendframework": "2.0.*",
    "zendframework/zendgdata": "2.0.*",

    "cybernox/amazon-webservices-bundle": "dev-master",

    "behat/behat": "2.4.*@stable",
    "behat/mink-extension": "*",
    "behat/mink-selenium2-driver": "*",
    "behat/symfony2-extension": "*",
    "behat/mink-browserkit-driver": "*"
},
"repositories": [{
    "type": "composer",
    "url": "http://packages.zendframework.com/"
}],
"scripts": {
    "post-install-cmd": [
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
    ],
    "post-update-cmd": [
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
    ]
},
"config": {
    "bin-dir": "bin"
},
"extra": {
    "symfony-app-dir": "app",
    "symfony-web-dir": "web"
}}

— Reply to this email directly or view it on GitHubhttps://github.com/zendframework/ZF2Package/issues/17.

Matthew Weier O'Phinney matthew@weierophinney.net http://mwop.net/

piscis commented 11 years ago

okay thanks will do.

piscis commented 11 years ago

I think the problem is with the zend package mirror because if I remove the repository from composer and fetch the packages from packagist its working. Anyway I opend a issue with composer as suggested.

weierophinney commented 11 years ago

Now that packagist is responding, I was able to verify the error, and based on the issue you raised with composer, found a solution. All is now working.