Menu

Python path for module pocketsphinx not found

Help
loek
2016-07-11
2016-07-11
  • loek

    loek - 2016-07-11

    I tried to run an example in Python but I get an error: No module named pocketsphinx
    Now I read in this forum that maybe the pythonpath is wrong so I tried PYTHON_PATH=/usr/local/lib/python3/site-packages/
    But still get the same error No module named pocketsphinx.
    Does somebody have an idee what went wrong.
    I use the raspberry pi and sphinxbase and pocketsphinx in python.
    Thanks

     
    • Nickolay V. Shmyrev

      You can explore the filesystem in /usr/local/lib to understand where pocketsphinx.so is installed. It might be slightly different path, for example python3.4 instead of simple python3.

       
    • loek

      loek - 2016-07-11

      I also looked in /usr/local/lib/python3.4/dist-packages but it is empty.
      also looked in /usr/local/lib/python2.7/dist-sites and dist-packages and that is also empty

       
      • Nickolay V. Shmyrev

        You can check pocketsphinx installation log to see where it installs. Probably you forgot sudo in make install so it didn't install successfully.

         
        • loek

          loek - 2016-07-11

          Thanks for the reply.
          I did not compile it but install it with sudo apt-get install
          I use the raspberry pi

           
          • loek

            loek - 2016-07-11

            I found pocketsphinx.so it is in usr/lib/python2.7/dist-packages

             
            • loek

              loek - 2016-07-11

              I search the internet for python 2.7 examples for pocketsphinx but could not find anything.
              Maybe someone knows where to find python 2.7 examples it is only for testing write now.

              Thanks

               

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.