Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
when enabling color box with drush (which by the way doesn't work as per the README.txt)..
the following error is generated.
Module colorbox cannot be enabled because it depends on libraries (2.x) but 7.x-2.0 is available
Enabling via the modules page succeeds.
It seems that the dependency line in colorbox.info should probably be patched to:
-dependencies[] = libraries (2.x)
+dependencies[] = libraries (>2.0)
Not sure that's the problem, since I can enable the module via the UI. I'm moving on.
Comments
Comment #1
frjo CreditAttribution: frjo commentedI just tested and with Drush version 5.8 it works. Maybe a bug in an earlier version of Drush?
Comment #2
okokokok CreditAttribution: okokokok commentedGetting the same error, with drush 4.5.
Comment #3
frjo CreditAttribution: frjo commentedSince it seems to work in the latest Drush version (5.8) I conclude that this was a Drush bug and that it's fixed now.
Comment #5
Eric Chapuis CreditAttribution: Eric Chapuis commentedI couldn't even get it to show in the UI with 7x-2.0, but fixing the colorbox.info as suggested did it. I could enable it via drush after that. Thanks guys!
Comment #6
dooug CreditAttribution: dooug commentedAlso experienced this. Something is weird with the Libraries branches/tags: #1939850: The latest release (7.x-2.1) is in 'detached HEAD' state. .
Comment #7
a.ross CreditAttribution: a.ross commentedYeah I'm also getting this error, using git submodules. If you put this in the libraries.info file the error message is gone:
That is simply because Drupal gets version information by parsing the info files of projects, so when there is no version information, any comparisons on the version don't work. Using git deploy the version information is handed to Drupal from the git repo, but this doesn't seem to work in every scenario. I think it makes sense to move this over to the Git Deploy project.
I don't think it has anything to do with the branch issue in libraries, because I experience this problem with libraries 2.0 as well.
Comment #8
jwilson3what about changing this to:
This worked for me using a git submodule version, as mentioned in #7.
Update: hrm... maybe not. If i checkout the libraries 7.x-1.0 tag, drush lets me enable the colorbox module... so i guess yeah, this really is a problem with the git deploy module's drush integration.
Comment #9
xeiter CreditAttribution: xeiter commented-dependencies[] = libraries (2.x)
+dependencies[] = libraries (>=2.0)
fixed the same issue for me
Comment #10
hass CreditAttribution: hass commentedComment #11
dooug CreditAttribution: dooug commented#1953316: Update dependency version check for libraries in info file