Hello,

I'm trying to enable module using drush and get this error:

Project appointment_calendar (8.x-1.x-dev) downloaded to ...
No release history was found for the requested project (period_field).
Module appointment_calendar cannot be enabled because it depends on the following modules which could not be found: period_field

I tried to find any reference to "period_field" module, but I couldn't.
Any help is appreciated.

Thanks in advance.

Comments

antroxim created an issue. See original summary.

antroxim’s picture

Title: Can't enable module on D8 » Can't enable module on Drupal 8
MaskyS’s picture

Assigned: Unassigned » MaskyS

It seems that the .info.yml states an invalid dependency. I'm going to put out a few patches to fix this.

ajay_reddy’s picture

StatusFileSize
new275 bytes

Hope this fixes issue.
And module is still in development stage.

MaskyS’s picture

L

MaskyS’s picture

StatusFileSize
new1.54 KB

Here is a patch which corrects the dependencies. Now you shouldn't get that problem again.

MaskyS’s picture

StatusFileSize
new406 bytes

Sorry, uploaded the wrong patch.

MaskyS’s picture

Status: Active » Needs review
StatusFileSize
new496 bytes

Previous patch had an extra whitespace at EOL. Here is a patch that has been tested with simplytest.me and git. Patch applied cleanly in both cases.

git apply -v edited_dependencies-2841487-8.patch
Checking patch appointment_calendar.info.yml...
Applied patch appointment_calendar.info.yml cleanly.
MaskyS’s picture

L

MaskyS’s picture

Priority: Normal » Major
MaskyS’s picture

StatusFileSize
new166.59 KB

This was a mistake from my side. ajay_reddy's patch is good. I thought that his patch removed all dependencies when it removed only one. I'm going to RTBC this.

MaskyS’s picture

Priority: Major » Normal
Status: Needs review » Reviewed & tested by the community

ajay_reddy’s picture

Assigned: MaskyS » Unassigned
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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