Issues installing the module with composer

Created on 13 September 2024, 2 months ago
Updated 16 September 2024, 2 months ago

Problem/Motivation

When installing the module through composer using the command "composer require 'drupal/augmentor_google_cloud_text_to_speech-augmentor_google_cloud_text_to_speech:^1.0' " given in the module page we get the following error when trying to create a new Augmentor:
Drupal\Component\Plugin\Exception\PluginException: Plugin (augmentor_google_cloud_text_to_speech) instance class "Drupal\augmentor_google_cloud_text_to_speech\Plugin\Augmentor\TextToSpeech" does not exist. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 97 of /app/docroot/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php).

Also tried to install the module using the machine name with the command "composer require drupal/augmentor_google_cloud_text_to_speech" but that seems to install the old deprecated module https://www.drupal.org/project/google_cloud_text_to_speech_augmentor

We would appreciate some help solving the problem.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇵🇹Portugal imoraisp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India naveenvalecha New Delhi

    It's because the composer require command is special for this project by drupalorg.

    Here's the composer command copied from the project page.

    composer require 'drupal/augmentor_google_cloud_text_to_speech-augmentor_google_cloud_text_to_speech:^1.0'
    

    Let me know if you still face any difficulty.

  • 🇵🇹Portugal imoraisp

    We tried to install the module through composer command from the project page:

    composer require 'drupal/augmentor_google_cloud_text_to_speech-augmentor_google_cloud_text_to_speech:^1.0'
    

    and we get the following error when trying to create a new Augmentor:

    Drupal\Component\Plugin\Exception\PluginException: Plugin (augmentor_google_cloud_text_to_speech) instance class "Drupal\augmentor_google_cloud_text_to_speech\Plugin\Augmentor\TextToSpeech" does not exist. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 97 of /app/docroot/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php).
    

    We would appreciate some help.

  • 🇮🇳India Raveen Kumar

    @imoraisp, Can you please elaborate the steps in details. Because when i am going to add Augmentor, It is allowing me to add properly.
    I am using drupal 10.3 version in my website.
    1) After installing the module through composer using below command
    - composer require 'drupal/augmentor_google_cloud_text_to_speech-augmentor_google_cloud_text_to_speech:^1.0'

    2) When i tried to add augmentor, it was added successfully as you can see my attached screenshot (screenshot.png) for reference.

    3) Could You please elaborate more here so that i can assist you properly with this ticket.

    Please & Thank You!!

  • 🇵🇹Portugal imoraisp

    We were using the old module, and probably there was some problem with the uninstall of the old one that may have conflicted with the installation of the new module.
    We redid the steps, and it's working as expected now.
    Thank you for the help!

Production build 0.71.5 2024