New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: Could not find PyAudio; check installation #235
Comments
Not one of the maintainers but you are missing a dependency of pyaudio (libportaudio). On linux just do the following: |
Thanks @gotsanity! Just to add to that, if you get an error like |
Hey guys thanks a lot for the reply. I did get the no installation candidate error and when i tried your solution, it would seem that it is already installed. Following is the message i got Reading package lists... Done |
Hi @sanster9292, How are you installing PyAudio? From source? Using pip? If so, did you do so using the |
I have tried installing it from both. At this point i am not sure which one i used on my latest try. Is there a way where i could remove it completely and star over and see if that might fix it? |
Hi @sanster9292, You'll want to remove the pip version using |
Hey guys sorry for the late reply. I tried your methods and it sorted out the problem. I now have SR working on my system. YAYYYYY. I can run it through terminal but i cant seem to run it in Spyder. In Spyder, it still gives me that very same error. I prefer working in visual debuggers. Does anyone have an idea why it might not be working in Spyder. Or if there are any other visual text editor/debuggers i should try instead. |
Hi @sanster9292, Spyder is likely running a different Python - are you running things in a virtualenv? With the same Python binary each time? |
HI, i tried the method mentioned, to remove and use the command to install. however, i got these while trying to install pyaudio.
Whats wrong and what can I do? @Uberi |
I am not sure what you are doing wrong here. Seems like some intermittent step wasn't done properly. I would suggest you completely remove pyaudio from your system and reinstall using pip install. That is what i did and it worked for me |
Hi I successfully installed Pyaudio, however i need Pyaudio 0.2.9 instead of 0.2.7, how can I upgrade the version? |
Hi @esterrrg, If you installed it using Pip, simply do |
Seems like the issue was resolved! I'll close this now, but feel free to reopen if anything else goes wrong. |
How to download pyaudio for windows? anyone please help me... |
Traceback (most recent call last): |
am on OS X device and this is the error message coming: Traceback (most recent call last): i have already installed PyAudio and it was successfully installed, but this is the message am getting |
Hmmm. I am going off of memory here, because I fixed the same issue a couple of months ago. |
I have done |
@aritra-bhawani Have you installed xcode on your mac os prior to installing pyaudio |
@killerPhoenix @aritra-bhawani I was able to work through this issue by installing . If you happen to be using the distribution, |
AttributeError: Could not find PyAudio; check installation |
@Amithsam where are you downloading your Pyaudio from. Github or pip install? |
@sanster9292 i tried pip install its shows another error about Microsoft visual c++ required... |
I don't think I came across that error. You might want to start a new issue here with steps to reproduce that error. This issue is closed and might not get as much attention from the community. Once you post a new issue, we could all take a look |
https://stackoverflow.com/questions/54998028/how-do-i-install-pyaudio-on-python-3-7 i meet same problem with you |
Follow my step to solve the problem |
Same Problem In Windows 10 Please Help To Install PyAudio |
This worked for me .. CHEERS |
I was having the same problem using Windows 10 and this somehow solved my problem. Thanks! |
Solved my problem for me too after trying for hours (Win 10) . Thanks alot !! |
Solved my problem for me too (Win 10) . |
Its just magical !!!! |
You are a legend, thanks man |
pip install pipwin didn't work returns ERROR: Exception: |
This command works very well on windows 10 pip install pipwin |
it really helped a lot.....Thanks Brother :) |
Really helpful bro |
pip install pipwin File "", line 1 |
Same happened to me. |
got it to work on mac
|
I tried everything from pipwin to unofficial binary file installation and tried everything. please help |
mail your code to me
…On Mon 31 Aug, 2020, 3:22 PM jaydeep-shingala, ***@***.***> wrote:
I tried everything from pipwin to unofficial binary file installation and
tried everything.
still in cmd : import pyaudio is working
but if i write import pyaudio in python IDLE it;s not working.............
please help
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#235 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMNJ7CPKMNNE2T54N5OB3MDSDNXGZANCNFSM4DN33ZXA>
.
|
Thank you for your response...
The code is as below
but also here please note that when i write import pyaudio in cmd it
workes properly.but if i write import pyaudio in python shell than it
is not working and says oduleNotFoundError: No module named 'pyaudio'
Means if i write whole program in text file and run that text file i got output as expected. but if i write same code in pycharm then it's not working. and giving error like,
Traceback (most recent call last):
File "C:\Users\Admin\PycharmProjects\test1\venv\Lib\site-packages\speech_recognition\__init__.py", line 108, in get_pyaudio
import pyaudio
ModuleNotFoundError: No module named 'pyaudio'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/Admin/PycharmProjects/test1/venv/Lib/site-packages/demm.py", line 5, in <module>
with sr.Microphone() as source:
File "C:\Users\Admin\PycharmProjects\test1\venv\Lib\site-packages\speech_recognition\__init__.py", line 79, in __init__
self.pyaudio_module = self.get_pyaudio()
File "C:\Users\Admin\PycharmProjects\test1\venv\Lib\site-packages\speech_recognition\__init__.py", line 110, in get_pyaudio
raise AttributeError("Could not find PyAudio; check installation")
AttributeError: Could not find PyAudio; check installation
here i already installed pyaudio, still getting this error. please have a look and help..............................
import speech_recognition as sr
# Record Audior = sr.Recognizer()with sr.Microphone() as source:
print("Say something!")
audio = r.listen(source)
# Speech recognition using Google Speech Recognitiontry:
# for testing purposes, we're just using the default API key
# to use another API key, use `r.recognize_google(audio,
key="GOOGLE_SPEECH_RECOGNITION_API_KEY")`
# instead of `r.recognize_google(audio)`
print("You said: " + r.recognize_google(audio))except sr.UnknownValueError:
print("Google Speech Recognition could not understand
audio")except sr.RequestError as e:
print("Could not request results from Google Speech Recognition
service; {0}".format(e))
…On Mon, 31 Aug 2020 at 16:03, Vishesht ***@***.***> wrote:
mail your code to me
On Mon 31 Aug, 2020, 3:22 PM jaydeep-shingala, ***@***.***>
wrote:
> I tried everything from pipwin to unofficial binary file installation and
> tried everything.
> still in cmd : import pyaudio is working
> but if i write import pyaudio in python IDLE it;s not
working.............
>
> please help
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#235 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AMNJ7CPKMNNE2T54N5OB3MDSDNXGZANCNFSM4DN33ZXA
>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#235 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQOZCLDGBC6S54XVOCCVV3LSDN4ALANCNFSM4DN33ZXA>
.
|
Why did you commented the second row in the code.It must be in the code to work.And you are not assign the right varible for the microphone.
First get rid of comment symbol #
Next thing is Some indenting of yours are wrong.
|
If pyaudio doesn't work.
Try this in your code.It will show you the error if it is in import pyaudio without Tracebaking. Note: Above lines work in only in windows. |
import speech_recognition as sr (#bu kod'da bu hatayı veriyor) invalid syntax (init.py, line 109) yardımcı olursanız sevinirim |
The pipwin method works try that |
With the shared solutions and my best try with few known libraries on pyaudio installation through, found below error:
|
Hello Everyone, I was working on a youtube project about Building your own Alexa. The problem is none of the advices are working for me. pip install PyAudio I'd love to get the old version of Python 3.6.2 but I could not even find it in the interweb. (I'd love to learn to switch between 2 Python environments but I think I am stuck with the latest version and I couldn't even solve the issue.) Please HELP! :( (venv) C:\Users\USER\PycharmProjects\romanticAlexi>pip install pipwin Thank You in advance. |
I Got this !! |
WINDOWS pip install pipwin |
Steps to reproduce
Hey I am just getting started with speech recignition and i was just checking some basic examples that i had found
It was nothing too complicated, very simple things
The code i am using is below :
Expected behaviour
I expect it to just use my microphone and let me record something.
(What did you expect to happen?)
Actual behaviour
This is the error i get,
When i run import pyauaudio as p;print(p.version)"`.) to check the version of pyaudio installed, i get the following error instead of the library working.
(What happened instead? How is it different from what you expected?)
I am not sure where the error is coming from. It must have something to do with my compilation of the libray maybe and i am not sure what to do from here on. Anyhelp would be appreciated
System information
(Delete all the statements that don't apply.)
My system is Ubuntu 16.04 LTS x64
My Python version is Python 3.6.0 :: Anaconda 4.3.1 (64-bit)
My Pip version is pip 9.0.1
My SpeechRecognition library version is 3.6.5
The text was updated successfully, but these errors were encountered: