I tried to install module by Drush, but required dependencied does not exist.

user@mattesreal /www/ttm/ttmos.cz/dev $ drush dl oauthconnector
Project oauthconnector (7.x-1.0-beta1) downloaded to                      [success]
/www/ttm/ttmos.cz/dev/sites/all/modules/oauthconnector.
Project oauthconnector contains 2 modules: oauth2_common, oauthconnector.
user@mattesreal /www/ttm/ttmos.cz/dev $ drush en oauthconnector
No release history was found for the requested project                    [warning]
(http_client_oauth).
No release history available for oauth_common 7.x.                        [warning]
The following projects have unmet dependencies:
oauthconnector requires connector
Would you like to download them? (y/n): y
Project connector (7.x-1.0-beta1) downloaded to                           [success]
/www/ttm/ttmos.cz/dev/sites/all/modules/connector.
Project connector contains 2 modules: connector_action_default_register_form, connector.
No release history was found for the requested project                    [warning]
(http_client_oauth).
No release history available for oauth_common 7.x.                        [warning]
Module oauthconnector cannot be enabled because it depends on the         [error]
following modules which could not be found: http_client_oauth,oauth_common
user@mattesreal /www/ttm/ttmos.cz/dev $
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Honza Pobořil’s picture

Btw, manual install of dependencies works:

user@mattesreal /www/ttm/ttmos.cz/dev $ drush dl http_client
Project http_client (7.x-2.3) downloaded to                               [success]
/www/ttm/ttmos.cz/dev/sites/all/modules/http_client.
Project http_client contains 2 modules: http_client_oauth, http_client.
user@mattesreal /www/ttm/ttmos.cz/dev $ drush dl oauth
Project oauth (7.x-3.0) downloaded to                                     [success]
/www/ttm/ttmos.cz/dev/sites/all/modules/oauth.
Project oauth contains 2 modules: oauth_common, oauth_common_providerui.
user@mattesreal /www/ttm/ttmos.cz/dev $ drush en oauthconnector
The following extensions will be enabled: oauthconnector, http_client, http_client_oauth, oauth2_common, oauth_common, connector
Do you really want to continue? (y/n): y
connector was enabled successfully.                                       [ok]
http_client was enabled successfully.                                     [ok]
http_client_oauth was enabled successfully.                               [ok]
oauth2_common was enabled successfully.                                   [ok]
oauthconnector was enabled successfully.                                  [ok]
oauth_common was enabled successfully.                                    [ok]
user@mattesreal /www/ttm/ttmos.cz/dev $
Frans’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Status: Active » Fixed

http_client added as dependency

Status: Fixed » Closed (fixed)

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

brenda003’s picture

Status: Closed (fixed) » Needs review
FileSize
334 bytes

The http_client_oauth dependency is still incorrect. That module doesn't exist.

Patch attached.

Frans’s picture

It does exist. It is a submodule of http_client
http://drupalcode.org/project/http_client.git/tree/refs/heads/7.x-2.x

brenda003’s picture

Hm, ok. drush complains it doesn't exist when it tries to download it. Since it's a submodule that would explain it.

Frans’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

Sutharsan’s picture

Issue summary: View changes
Status: Closed (fixed) » Active

I need to re-open again :(
oath_common is a submodule of oauth (not of http_client as mentioned in #5). Should oauthconnector also depend on oauth?

imyaro’s picture

FileSize
386 bytes

Sutharsan is absolutelly right.
If you are trying to enable this module via drush you just cannot understand why this module requires https://www.drupal.org/project/oauth_common module which is deprecated and does not have 7.x branch.

New patch should fix this problem.

imyaro’s picture

Status: Active » Needs review
eiriksm’s picture

Status: Needs review » Reviewed & tested by the community