Hello, i'm trying to enable the submodule video_embed_media but it return:

Module video_embed_media cannot be enabled because it depends on entity (>=8.x-1.0-alpha3) but is available

In my composer.json I've:

"drupal/video_embed_field": "1.x-dev",
"drupal/media_entity": "1.x-dev",
"drupal/entity": ">=1.0-alpha3"

I've cleared all the caches multiple time without results...

Comments

CRY_X2 created an issue. See original summary.

dev22.addweb’s picture

I tried with drupal 8.0.3 and 8.1.5 both version. In Drupal 8.0.3 version, Video Embed Field can be installed but
Video Embed Media can not be enabled because of system is incompatible with incompatible with version 8.0.3.

Drupal version should be >=8.1.0.

In Drupal 8.1.5 version, It can be installed. Please try with Drupal 8.1.5 version.

I hope it will help you.

csedax90’s picture

I'm currently running Drupal 8.1.8

Sam152’s picture

Status: Active » Postponed (maintainer needs more info)

It sounds like you have the right version of everything. If composer has cloned the repo and the info file doesn't actually contain the version string, it won't install from the UI. Oddly enough running something like \Drupal::service('module_installer')->install(['video_embed_media']); will still work.

I'd add the version string "version: 8.x-1.0-alpha3" to the info file, install the module and go from there. I have that line of code in my checked out version for my own testing.

Can you confirm this is indeed the issue?

Sam152’s picture

csedax90’s picture

I've added the string: version: 8.x-1.0-alpha3 into modules/entity/entity.info.yml and now it works...

Sam152’s picture

Yeah, that is added by the packager, but not when modules are cloned directly. I suspect that's what composer is doing, or the d.org composer facade doesn't add this information.

Sam152’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)