nihal111 / J.A.R.V.I.S

A personal assistant with simple, rudimentary AI
317 stars 214 forks source link

Errors while installing pygame #6

Closed udiboy1209 closed 6 years ago

udiboy1209 commented 7 years ago
$ sudo apt-get build-dep python-pygame
Reading package lists... Done
E: You must put some 'source' URIs in your sources.list

and

$ pip install hg+https://bitbucket.org/pygame/pygame
Collecting hg+https://bitbucket.org/pygame/pygame
  Cloning hg https://bitbucket.org/pygame/pygame to /tmp/pip-6Xvpz3-build
    Complete output from command python setup.py egg_info:

    WARNING, No "Setup" File Exists, Running "config.py"
    Using UNIX configuration...

    sh: 1: sdl-config: not found
    sh: 1: sdl-config: not found
    sh: 1: sdl-config: not found

    Hunting dependencies...
    WARNING: "sdl-config" failed!
    Unable to run "sdl-config". Please make sure a development version of SDL is installed.

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-6Xvpz3-build/

Also, I get speech output even without pygame installed, so is it really necessary?

nihal111 commented 7 years ago

Currently I'm not using that part. I was using the mixer in pyGame to playback the audio generated by gTTS. The output you are receiving is from pyttsx (the offline TTS system). So, yeah, pyGame and gTTS should really be optional that way.

nihal111 commented 6 years ago

pip install pygame works just well now. Updated requirements, PyGame is required to play the audio generated by gTTS. Closing.