2

I'm not using Ubuntu (I'm on Solus), so I can't do the PPA. I've followed all the install guides I can find for manual installation but none seem to be working.

I get the error:

x86_64-solus-linux-gcc: error trying to exec 'as': execvp: No such file or directory
/tmp/pip-build-utw792cs/kivy/kivy/graphics/scissor_instructions.c:4:20: fatal error: Python.h: No such file or directory
#include "Python.h"

                         ^
   compilation terminated.

  error: command 'x86_64-solus-linux-gcc' failed with exit status 1

\----------------------------------------  
Command "/usr/bin/python3.5 -u -c "import setuptools, tokenize;\__file__='/tmp/pip-build-utw792cs/kivy/setup.py';f=getattr(tokenize, 'open', open)(\__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, \__file__, 'exec'))" install --record /tmp/pip-rvj0_9sh-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-utw792cs/kivy/

I've searched around for install guides but they all end with the same error at some point. Does anyone know how to install Kivy because it seems like a really cool tool.

Peter Badida
  • 11,310
  • 10
  • 44
  • 90
crabcrabcam
  • 219
  • 1
  • 3
  • 15
  • it means your python is not properly installed, see the thread here: https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory – Jan Sila Aug 16 '17 at 10:50
  • What distribution *are* you using, then? – Roland Smith Aug 16 '17 at 10:51
  • @RolandSmith Solus currently, sorry. I forgot to add that in. – crabcrabcam Aug 16 '17 at 10:52
  • @JanSila That seems to have done something! Now I get suck here: https://pastebin.com/aDcXLh95 – crabcrabcam Aug 16 '17 at 10:55
  • *In general*, I would advise you to use the package system that your distribution provides, rather than doing everything by yourself. – Roland Smith Aug 16 '17 at 10:57
  • @RolandSmith Currently Solus doesn't provide a package for Kivy so I've got to. – crabcrabcam Aug 16 '17 at 11:03
  • @crabcrabcam Then I would suggest trying to use the available infrastructure and build a Solus package. In general such package building tools have solutions in place for expressing dependencies and adding the correct compiler flags et cetera. – Roland Smith Aug 16 '17 at 11:05

1 Answers1

0
sudo pip install kivy

Assuming you already installed pip and other dependencies like mesalib-devel

Shan Surat
  • 304
  • 4
  • 13