Status report return this msg since I updated to 7.x-3.3 version
I have spyc.php file in rest_server/lib folder

As soon as I confirm this is not my fault I be grateful in working in a path

Thank you

Comments

kylebrowning’s picture

Status: Active » Closed (works as designed)

You have to install the libraries module.

Its a required dependency

Enxebre’s picture

Status: Closed (works as designed) » Active

Thanks for reply,
I had already installed

Other Libraries (libraries) Module Enabled 7.x-2.0
Services Services (services) Module Enabled 7.x-3.3

I receive the message with this module versions installed

kylebrowning’s picture

Project: Services » Libraries API
Version: 7.x-3.3 » 7.x-2.0

You may have a libraries bug then because we have tests for enabling YAML and they are passing.

jaarong’s picture

I'm having this same issue. Have libraries installed, have services installed, and have spyc.php in the rest_server/lib folder. This is on a relatively new installation with very few modules installed.

kylebrowning’s picture

It needs to be sites/all/libraries.

The Daily’s picture

I have the same issue. I have put it in sites /all/libraries and servers/rest_server/lib. Still says its missing.

Ok I figured it out you have to put the spyc.php in sites/all/libraries/spyc You need to create the folder spyc. Works after that. The error message in Drupal is wrong! Someone should fix that....

devin carlson’s picture

Project: Libraries API » Services
Version: 7.x-2.0 » 7.x-3.3
Status: Active » Closed (works as designed)
ericross’s picture

Title: The spyc library is missing, thus YAML is disabled » FIX: spyc library is missing, thus YAML is disabled - put spyc.php in sites/all/libraries/spyc

The documentation is wrong. The Status Report looks in sites/all/libraries to find the spyc directory.

SamRose’s picture

FWIW I can confirm the approach of placing in sites/all/libraries/spyc works.

If you run:

print libraries_get_path('spyc');

You'll see the path that the libraries module is looking for. There is a fallback in the module to to look in the servers/rest_server/lib dir if the spyc.php lib is not found in the sites/all/libraries/spyc dir

http://drupalcontrib.org/api/drupal/contributions%21services%21servers%2...

function _rest_server_get_spyc_location() {
  if (function_exists('libraries_get_path')) {
    $libraries_spyc_loc = libraries_get_path('spyc') . '/spyc.php';
    if (file_exists($libraries_spyc_loc)) {
      return $libraries_spyc_loc;
    }
  }

  // Libraries not in use fall back to straight look up.
  $services_spyc_loc = dirname(__FILE__) . '/lib/spyc.php';
  return file_exists($services_spyc_loc) ? $services_spyc_loc : false;
}
macmladen’s picture

Issue summary: View changes

Just visit the new project page on Github https://github.com/mustangostang/spyc/ and download the master.zip to your sites/all/libraries folder and expand there.

Do not forget to rename the directory to just spyc so you end up with sites/all/libraries/spyc/spyc.php

Check on the admin/reports/status, there should be no mention of the spyc meaning that it is ok (but it should note that it found the library).

internal’s picture

Version: 7.x-3.3 » 7.x-3.x-dev
Component: Code » Documentation
Category: Bug report » Task
Status: Closed (works as designed) » Needs work

#10 is right. The sites/all/libraries/spyc/spyc.php is the right path for drupal core. If you place spyc.php other where, you will get an error in the site report page. That also works but not pretty. The readme and documentation should be updated.

dan_metille’s picture

Don't know what to say.. with the Rooms module, I had issues with sites/all/libraries/spyc/spyc.php, while /modules/services/servers/rest_server/lib/spyc.php worked (https://www.drupal.org/node/2380777#comment-10836790). Of course, I'm getting the warning in the site report page, but at least my site is working.