thomasweng15 / E.V.E.

a talking Jarvis program written in Python.
221 stars 27 forks source link

EVE crash on given command #1

Closed ShawnMcCool closed 11 years ago

ShawnMcCool commented 11 years ago

Ubuntu 13.04

I followed the install process and chose the python 2 version of pyAudio.

The log can be found here. https://gist.github.com/ShawnMcCool/5693245

It fires up, she talks. I say, "Okay computer" and she responds. Then, when I give any command I see the error.

thomasweng15 commented 11 years ago

Hey Shawn,

Thanks for trying it out and reporting the crash! I am out right now but will look into it more carefully when I return home. From a quick glance it seems the problem might be with the pydub module -- the module may be different from the one I installed or a specific version might be necessary. I'll keep you updated!

All the best, Thomas

On Sunday, June 2, 2013, Shawn McCool wrote:

Ubuntu 13.04

I followed the install process and chose the python 2 version of wave.

The log can be found here. https://gist.github.com/ShawnMcCool/5693245

It fires up, she talks. I say, "Okay computer" and she responds. Then, when I give any command I see the error.

— Reply to this email directly or view it on GitHubhttps://github.com/thomasweng15/E.V.E./issues/1 .

Thomas Weng Yale University TC'15 thomas.weng@yale.edu | 917.280.0039

ShawnMcCool commented 11 years ago

I'm very interested in this project and I would love to help you make it more robust and easier to use for other people. So, if I can help in any way please let me know.

I'll look into pydub in the meantime. But, while I have learned Python basics, I don't have much professional experience with it.

thomasweng15 commented 11 years ago

Hi Shawn,

Thank you for your interest! Your help is really appreciated. I'm looking forward to working with you!

Regarding pydub, the version I used was 0.6.3, and I listed 0.5.2 in the installation instructions by accident. After switching versions and testing, however, the program still worked fine for me. So, the problem doesn't seem to be related to the pydub version, but it still might be beneficial to install the new version.

After looking at the crash report a little more closely, the crash might be related to ffmpeg, a package that pydub depends on. Do you have ffmpeg installed?

On Sun, Jun 2, 2013 at 2:08 PM, Shawn McCool notifications@github.comwrote:

I'm very interested in this project and I would love to help you make it more robust and easier to use for other people. So, if I can help in any way please let me know.

I'll look into pydub in the meantime. But, while I have learned Python basics, I don't have much professional experience with it.

— Reply to this email directly or view it on GitHubhttps://github.com/thomasweng15/E.V.E./issues/1#issuecomment-18813897 .

Thomas Weng Yale University TC'15 thomas.weng@yale.edu | 917.280.0039

olanmatt commented 11 years ago

I too have a similar error running on Linux Mint. She will say "Hello" and then this:

https://gist.github.com/olanmatt/5699088

Great project... very excited to see it in action! :)

alduhoo commented 11 years ago

I have the exact same error olanmatt is having, but I'm running Fedora 18

thomasweng15 commented 11 years ago

@Shawn: could you try running 'pip install pydub' and then testing the program again? If that doesn't fix the issue you are seeing, let me know.

@olanmatt: I will open a new issue for this problem -- I have looked into it already but can't seem to reproduce it.

ShawnMcCool commented 11 years ago

sudo pip install pydub [sudo] password for shawn: Requirement already satisfied (use --upgrade to upgrade): pydub in /usr/local/lib/python2.7/dist-packages Cleaning up...

~ sudo pip install --upgrade pydub Downloading/unpacking pydub from https://pypi.python.org/packages/source/p/pydub/pydub-0.6.3.tar.gz#md5=78e35b2e751c91b816eaded7fa2976e0 Downloading pydub-0.6.3.tar.gz Running setup.py egg_info for package pydub

Installing collected packages: pydub Found existing installation: pydub 0.5.2 Uninstalling pydub: Successfully uninstalled pydub Running setup.py install for pydub

Successfully installed pydub Cleaning up...

Then the same error


/usr/local/lib/python2.7/dist-packages/update_checker.py:11: UserWarning: Module wave was already imported from /usr/lib/python2.7/wave.py, but /usr/local/lib/python2.7/dist-packages is being added to sys.path from pkg_resources import parse_version as V Loading... Loading brain from ./brain/standard.brn... done (93096 categories in 1.43 seconds) Kernel bootstrap completed in 1.43 seconds ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++ Welcome to E.V.E. ++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

thomasweng15 commented 11 years ago

Hey Shawn, Sorry I forgot to respond to your update. You were able to start recording which is good! The ALSA error messages do not affect the running of the program, and only the very last lines of the error message are ending the program. That being said, I haven't seen that error before and am looking into it.

@alduhoo: please take a look at issue #2 -- your problem may have been fixed! Let me know if it was and if you encounter any other issues. Thanks!

kkonrad commented 11 years ago

I was also affected by this issue (OSError after providing command). Installing ffmpeg solved it. (on Ubuntu: sudo apt-get install ffmpeg)

ShawnMcCool commented 11 years ago

@kkonrad that solution resolved my issue entirely.

Thank you.

I recommend adding FFMPEG to the instructions. Then, should work for many people.

thomasweng15 commented 11 years ago

Thanks Shawn and kkonrad! Closing the issue.

LuciferClark commented 8 years ago

Hi, when i run it this is what happens: screen shot 2016-06-01 at 10 05 12 pm I couldn't figure out how to solve 'sh: aplay: command not found' error. Please help.