michael-lazar / hue-pad

Control Philips Hue Lights with a MIDI Pad Controller
MIT License
11 stars 2 forks source link

sdl-config not found #1

Open gimmel opened 6 years ago

gimmel commented 6 years ago

I tried to install hue-pad on raspbian, but I get error messages while compiling:

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!
WARNING: "pkg-config freetype2" 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-build-imXPdA/pygame/

I already installed SDL-1.2.14, python-dev and python-pygame, but that did not help.

michael-lazar commented 6 years ago

Definitely looks like a problem installing the pygame dependency.

My guess is that you have two python environments installed on your Pi (python and python3)? The one that the python-pygame package is linked to is probably different than the one that you're trying to install hue-pad into. Your python environment is tied to the version of Raspian that you're using, so unfortunately I can't give any specific advice. I would try something like this to explicitly use python 3:

$ sudo apt install python3-pygame
$ git clone https://github.com/michael-lazar/hue-pad.git
$ cd hue-pad
$ python3 -m pip install .