I am new to composer which seems to be required to run guzzle for the flux modules...
how do i fix this?
I tried 2 hours guessing and reading, but still getting errors

I did


php composer.phar require guzzle/guzzle:dev-master
php composer.phar require doctrine/collections:dev-master

in the sites/all/modules/composer_manager folder

I would need a hint in the right direction
thanks

CommentFileSizeAuthor
Bildschirmfoto 2013-08-27 um 14.58.23.png78.72 KBstevenx
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

criz’s picture

Hi,
did you follow the recommendation in the readme?


* Install the module and its module dependencies as usual.
* Then, required libraries must be added in via composer manager - for that run
the following drush commands:

    drush composer-json-rebuild
    drush composer-manager update

stevenx’s picture

Yeah, I did. Where shall I look to get the requirements right?

$ drush composer-json-rebuild
Completed building composer.json file.                               [ok]
$ drush composer-manager update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package guzzle/guzzle dev-master could not be found.
  Problem 2
    - The requested package doctrine/collections dev-master could not be found.

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://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

criz’s picture

Interesting, this works for us...

We have to check, in the meantime you can use the vendor files from the github project: https://github.com/drunomics/fluxkraft_distro/tree/master/sites/all/vendor

stevenx’s picture

Status: Active » Closed (fixed)

Danke.
Solved this issue.

stevenx’s picture

Status: Closed (fixed) » Needs review
$ drush composer-json-rebuild
Completed building composer.json file.                               [ok]
$  drush composer-manager update

Fatal error: Cannot redeclare class Composer\Autoload\ClassLoader in /Users/xx/.drush/composer/vendor/composer/ClassLoader.php on line 44
Drush command terminated abnormally due to an unrecoverable error.   [error]
Error: Cannot redeclare class Composer\Autoload\ClassLoader in
/Users/xx/.drush/composer/vendor/composer/ClassLoader.php, line
44

well I thought it works - but does not

criz’s picture

Please go sure to have the composer files only once in your system. And run drush rr after changes.

SocialNicheGuru’s picture

When I run

drush composer-manager update

I get the following:

[RuntimeException]
The .git directory is missing from /fluxkraft_distro-1.1/sites/all/vendor/guzzle/guzzle, see http://getcomposer.org/commit-deps for more information

criz’s picture

SocialNicheGuru, seems as you are using the packaged distro from github. You don`t need to run these commands in this case.

However, there is currently a bug so you get a missing dependency message: https://drupal.org/node/2086659 But everything should work though.

SocialNicheGuru’s picture

no it says that they are not installed once I enable the distro. that's why I went through all the steps :(

criz’s picture

Yes, this is what I am saying. This message is misleading.

fubhy’s picture

Issue summary: View changes
Status: Needs review » Fixed

The issue you described here ("Your requirements could not be resolved to an installable set of packages.") is caused if you don't have composer-8.x-1.x installed.

Do this in order to solve it:

rm ~/.drush/composer -rf
drush dl composer-8.x-1.x

Yes, it's weird that you have to run composer-8.x-1.x, but that's how it's done ;)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.