xuv's notebook

Side notes, howtos and random bits of information related to Julien Deswaef's projects

User Tools

Site Tools


os:raspbian:raspbian_on_pi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
os:raspbian:raspbian_on_pi [2026/08/22 11:50] – removed - external edit (Unknown date) 127.0.0.1os:raspbian:raspbian_on_pi [2026/08/22 11:50] (current) – ↷ Page moved from raspbian:raspbian_on_pi to os:raspbian:raspbian_on_pi Julien Deswaef
Line 1: Line 1:
 +====== Raspbian notes ======
 +
 +===== ujson =====
 +<code=bash>
 +pip install ujson
 +</code>
 +
 +Fightt hrow errors like this:
 +
 +<code>
 +  Running setup.py install for ujson
 +    building 'ujson' extension
 +    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I./python -I./lib -I/usr/include/python2.7 -c ./python/ujson.c -o build/temp.linux-armv7l-2.7/./python/ujson.o -D_GNU_SOURCE
 +    In file included from ./python/ujson.c:39:0:
 +    ./python/py_defines.h:39:20: fatal error: Python.h: No such file or directory
 +     #include <Python.h>
 +                        ^
 +    compilation terminated.
 +    error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
 +</code>
 +
 +In this case, it's because you also need python-dev package.
 +<code=bash>
 +sudo apt-get install python-dev
 +</code>