Notifications
Clear all

ImportError: No module named pocketsphinx

4 Posts
4 Users
3 Likes
3,307 Views
(@Anonymous)
Joined: 1 second ago
Posts: 0
 

I was ale to get Pocketsphinx to install without error using

sudo apt-get install pocketsphinx

However when I try to use it I get an error of:
ImportError: No Module named pocketsphinx


   
Quote
Qbo Robot
(@nonogrub)
Member Admin
Joined: 8 years ago
Posts: 185
 

Hi Pamela,
This is a #issue from Python, please refer to PIP version and manual. Try with:
sudo -H pip install --upgrade pocketsphinx
After this, should work.
The Thecorpora Team


   
ReplyQuote
(@creigelde)
New Member
Joined: 4 years ago
Posts: 1
 

You need a file named __init__.py (two underscores on each side) in every folder in the hierarchy, so one in src/ and one in model/. This is what python looks for to know that it should access a particular folder. The files are meant to contain initialization instructions but even if you create them empty this will solve it. To get rid of this error “ImportError: No module named”, you just need to create __init__.py in the appropriate directory and everything will work fine.

 


   
ReplyQuote
(@romeo)
Member
Joined: 6 years ago
Posts: 76
 

https://www.amazon.com/ROBOTICS-EDUCATION-CODING-English-version/dp/B0BRMT29KC/ref=sr_1_1?crid=3HLX2FOV83UZV&keywords=qbo+coding+for+stem&qid=1679435736&s=books&sprefix=qbo+coding+for+stem%2Cstripbooks-intl-ship%2C195&sr=1-1

I advise you to read my textbook to implement Q.BO STEM or Q.BO One at the latest version, with which you can also make it play with chat-gpt.


   
ReplyQuote
Share: