Menu

Sphinxtrain '.' is no longer in @INC

Help
Sudomatze
2018-06-14
2022-03-02
  • Sudomatze

    Sudomatze - 2018-06-14

    Hello,

    I installed everything step by step like the tutorial on the CMUSPhinx Website says and it worked. Then I loaded the German "Acoustic and Language Models" Pack and tried it. It worked as well.

    Then I wanted to train and here comes the problem.
    Again I did all the steps but when I run the command:
    sphinxtrain run
    I get this output:

    Sphinxtrain path: /usr/local/lib/sphinxtrain Sphinxtrain binaries path: /usr/local/libexec/sphinxtrain Running the training do "etc/sphinx_train.cfg" failed, '.' is no longer in @INC; did you mean do "./etc/sphinx_train.cfg"? at /usr/local/lib/sphinxtrain/scripts/000.comp_feat/../lib/SphinxTrain/Config.pm line 65. Configuration (e.g. etc/sphinx_train.cfg) not defined Compilation failed in require at /usr/local/lib/sphinxtrain/scripts/000.comp_feat/slave_feat.pl line 51. BEGIN failed--compilation aborted at /usr/local/lib/sphinxtrain/scripts/000.comp_feat/slave_feat.pl line 51.

    I googled for hours but I can't find a solution.
    Hopefully someone here can help me.

     
    • Nickolay V. Shmyrev

      What exact queries did you use in google?

       
      • Sudomatze

        Sudomatze - 2018-06-14

        I searched for the different outputs, for general Sphinxtrain installations and tried to find the issu in the code which is mentiond in the error.
        But I think it doesn't matter what I googled.

         
        • Nickolay V. Shmyrev

          I mean if you use the proper query with the error message the solution would be the first entry. I'm trying to teach you how to use Google so in the future you will not spend "hours". That is why I'm asking - WHAT EXACTY QUERY DID YOU TRY? You can simply provide the keywords or a link.

           
          • Sudomatze

            Sudomatze - 2018-06-14

            Ok, so I tried these:
            do "etc/sphinx_train.cfg" failed
            ' . ' no longer in @INC
            Sphinxtrain no longer in @INC
            sphinxtrain run error
            sphinxtrain run aborted

             
            • Nickolay V. Shmyrev

              Try to google exact error message: http://bfy.tw/IbYv
              and let me know if you still haven't found the solution. Show the google query page then.

               
    • A13X10

      A13X10 - 2019-03-25

      hi!
      i had the same issue, i fixed it by editing file
      /usr/local/lib/sphinxtrain/scripts/000.comp_feat/../lib/SphinxTrain/Config.pm
      and replace line 65 with "do $ST::CFG_FILE;"
      and line 51 with "$ST::CFG_FILE = "./etc/sphinx_train.cfg";"

       
  • Sudomatze

    Sudomatze - 2018-06-27

    Hi again,
    so i googled like you said (and btw thanks for the link -.-) but couldn't find a solution.

    Now i tried it completely new from the beginning, acording to this page: http://www.speech.cs.cmu.edu/sphinx/tutorial.html#train
    this time based on sphinx3 not on pocketsphinx

    and again, the same error appears after executing this command: perl scripts_pl/make_feats.pl -ctl etc/an4_train.fileids

    Here the error:

    perl scripts_pl/make_feats.pl -ctl etc/an4_test.fileids
    do "etc/sphinx_train.cfg" failed, '.' is no longer in @INC; did you mean do "./etc/sphinx_train.cfg"? at scripts_pl/lib/SphinxTrain/Config.pm line 65.
    Configuration (e.g. etc/sphinx_train.cfg) not defined
    Compilation failed in require at scripts_pl/make_feats.pl line 43.
    BEGIN failed--compilation aborted at scripts_pl/make_feats.pl line 43.
    

    I am pretty new to Linux, Python and all these things so please be kind, i try my best not to be dumb.

     
  • Sudomatze

    Sudomatze - 2018-06-27

    Hopefully someone is able to help me

     

    Last edit: Sudomatze 2018-06-27
  • prak

    prak - 2018-07-25

    Same error did u find the solution I downloaded the an4 example file

     
  • Edwin Yeo

    Edwin Yeo - 2018-11-22

    I am facing the same error too.
    Have you managed to find the solution?

     
  • Rati Skhirtladze

    Thanks to A13X10 I could fix this problem:
    I have made change to ...sphinxtrain\scripts\lib\SphinxTrain\Config.pm.
    I changed line 51 with "$ST::CFG_FILE = "./etc/sphinx_train.cfg";"

     
  • Roshni vipi

    Roshni vipi - 2022-03-02

    Sphinxtrain path: /usr/local/lib/sphinxtrain
    Sphinxtrain binaries path: /usr/local/libexec/sphinxtrain
    Running the training
    do "etc/sphinx_train.cfg" failed, '.' is no longer in @INC; did you mean do "./etc/sphinx_train.cfg"? at /usr/local/lib/sphinxtrain/scripts/000.comp_feat/../lib/SphinxTrain/Config.pm line 65.
    Configuration (e.g. etc/sphinx_train.cfg) not defined
    Compilation failed in require at /usr/local/lib/sphinxtrain/scripts/000.comp_feat/slave_feat.pl line 51.
    BEGIN failed--compilation aborted at /usr/local/lib/sphinxtrain/scripts/000.comp_feat/slave_feat.pl line 51.

    i also got this error.. someone pls help me

     
  • Roshni vipi

    Roshni vipi - 2022-03-02

    Sphinxtrain path: /usr/local/lib/sphinxtrain
    Sphinxtrain binaries path: /usr/local/libexec/sphinxtrain
    Running the training
    do "etc/sphinx_train.cfg" failed, '.' is no longer in @INC; did you mean do "./etc/sphinx_train.cfg"? at /usr/local/lib/sphinxtrain/scripts/000.comp_feat/../lib/SphinxTrain/Config.pm line 65.
    Configuration (e.g. etc/sphinx_train.cfg) not defined
    Compilation failed in require at /usr/local/lib/sphinxtrain/scripts/000.comp_feat/slave_feat.pl line 51.
    BEGIN failed--compilation aborted at /usr/local/lib/sphinxtrain/scripts/000.comp_feat/slave_feat.pl line 51.

    i also got this error.. someone pls help me

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.