-
Notifications
You must be signed in to change notification settings - Fork 73
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: Wave_read instance has no attribute '__exit__' #4
Comments
I am experincing the same issue as @rileycrane @nextthingco commentor advised moving to python 3 instead may help, however when attempting to run main.py with python 3 i get an error that alsaaudio module is not found. I installed pip3 to run the install with pip3 which failed out stating that multiple items were not found. "chip@chip:~/AlexaCHIP$ sudo pip3 install -r requirements.txt
Downloading/unpacking python-memcached>=1.50 (from -r requirements.txt (line 2)) File "", line 17, in File "/tmp/pip-build-dol7oi7b/wsgiref/setup.py", line 5, in
File "/tmp/pip-build-dol7oi7b/wsgiref/ez_setup/init.py", line 170
SyntaxError: Missing parentheses in call to 'print' Cleaning up... |
I have been working on getting a cheap BT speaker/headset to act as the audio out/in, but if you haven't already, you might try switching from the jack to pins 10 and 12 on U14: http://docs.getchip.com/#pin-headers (to see if it's related to the cutting / soldering). |
@tobiasboyd I am using 10 12, I also used the mic in/ hpcom as an attempt. I tried again using python 3, reinstalling everything Alsa & memcache specific for python 3 installation, while I no longer get the wave error, I get a new error stating
|
@PantherTheCat : that error seems less mysterious, |
@tobiasboyd - I will see what happens when I try that modification. I have been working with another user who has made several code modifications that I was also going to attempt. |
@tobiasboyd yes same error. @jitto created a python 3 version that gets further. Although I still end with an error - Although the error is after the button is released, instead of on press - so that is progress 😸
https://bbs.nextthing.co/t/turning-the-chip-into-an-amazon-echo/1630/33?u=panther |
Figured it out, the TRRS jack mod was not scored deep enough, so it was not recording. Everything working now. |
@PantherTheCat I am getting the same error. I am using a USB microphone numb and the TRRS jack for audio output. I would prefer not to modify and score the CHIP board. Is there a way of not getting this error if you DON'T modify the board? Python3, etc installed... NOTE: I have audio capture working and audio output working with arecord/aplay, just get the same error when I run python main.py: Traceback (most recent call last): I don't want to modify the board unless I have to. Thanks |
I'm getting the same error with a bluetooth speaker/microphone, are there any progress? |
I was having the same UnboundLocalError, and for me, it didn't seem to be related to the bit rate or other of some of the solutions out there. So, in main.py, I just put it in a Try block to handle the error and prevent it from crashing. Seems to be working so far... (note: having trouble with the indents....try: and except are at the same indent, everything else is the same, but pushed forward one indent)
|
This project is now deprecated in favor of the new AlexaPi (https://github.com/alexa-pi/AlexaPi) which has all the features of this project and much more, such as:
Please switch over to the new project and if your issue persists there, file an issue in the new repo's issue tracker. Thank you. |
Hi,
I'm trying to get this working. I've done the hardware mod (is there a way to test if it's successful?). Every time I run
main.py
I hear "hello" and then when I connect together Pins 14 and 1 on U14 I get the following error:Any ideas would be appreciated. Also, I had problems installing alsa based on your instructions. I had to install mpg321 independently.
Thanks!
The text was updated successfully, but these errors were encountered: